Configure Process Affinity for Snow Inventory Agent
The Snow Inventory Agent allows you to control which CPU cores it uses on a machine. This helps minimize the performance impact on other applications, particularly in environments with multiple cores.
This setting is called Process Affinity and is available in Windows Agent version 7.2.0 or later. It works by assigning the agent to specific cores using a decimal number that represents a bitmask. Each bit in the value represents a CPU core, beginning with core 0.
- Locate the configuration setting
Open the agent's configuration file (usuallysnowagent.config) and find the following line:
<Setting key="process_affinity" value=""/>
- Provide the correct value
Enter a number matching the core(s) you want the agent to use. - For example, to assign the agent only to core 14 (bit 14), use:
<Setting key="process_affinity" value="16384"/>
Do values change per machine?
Each machine may have a different number of cores. The appropriate value depends on the specific cores you want to assign on that machine.
Refer to the table below for binary and decimal values:
|
CPU Core # |
Core Index (Bit) |
Binary Bitmask |
Decimal Value |
|
CPU 1 |
0 |
0000000000000001 |
1 |
|
CPU 2 |
1 |
0000000000000010 |
2 |
|
CPU 3 |
2 |
0000000000000100 |
4 |
|
CPU 4 |
3 |
0000000000001000 |
8 |
|
CPU 5 |
4 |
0000000000010000 |
16 |
|
CPU 6 |
5 |
0000000000100000 |
32 |
|
CPU 7 |
6 |
0000000001000000 |
64 |
|
CPU 8 |
7 |
0000000010000000 |
128 |
|
CPU 9 |
8 |
0000000100000000 |
256 |
|
CPU 10 |
9 |
0000001000000000 |
512 |
|
CPU 11 |
10 |
0000010000000000 |
1024 |
|
CPU 12 |
11 |
0000100000000000 |
2048 |
|
CPU 13 |
12 |
0001000000000000 |
4096 |
|
CPU 14 |
13 |
0010000000000000 |
8192 |