To activate or deactivate a core using operating system commands, you must know the number or numbers of the virtual or logical processors associated with that core. This task provides instructions for calculating those numbers.
Your server has two, four, or eight sockets numbered 0 through 1, 3, or 7.
Each socket has 15 cores numbered 0 through 14.
Each core has one or two virtual processors associated with it, depending on whether hyperthreading is enabled or not. To deactivate a core, you must deactivate both virtual processors associated with that core.
You can also use operating system commands to display virtual processor numbers. See:
For example, to calculate the number of the first virtual processor for core 2 on socket 2:
2 x 15 +2 = 32
For example: 2 x 15 +2 = 32
For example, in an 8 socket system: 8 x 15 = 120
For example: 120 + 32 = 152
The quotient is the socket number.
The remainder is the core number.
For example 32 / 15 = 2 with a remainder of 2. Virtual processor 32 runs on socket 2, core 2.
Divide the core number by the number of processors per core. This produces a whole number and a decimal. For example:
32 / 15 = 2.133333333333333
The whole number is the socket. Subtract it from the total. For example:
2.133333333333333 - 2 = .133333333333333
Multiply the decimal by 15 to find the remainder, which is the core number on this socket. For example:
.133333333333333 X 15 = 2.
Core 32 is processor 2, core 2.