Есть мощный API, через который можно вытащить любую информацию о железе и системе:
Materialize mapping of partition processors (Hex 1B ):
Dec Hex Field Name Data Type and Length
16 10 Number of processors for which information is being materialized UBin(2)
18 12 Reserved (binary 0) Char(6)
24 18 Physical processor token [*] UBin(2)
— End —
Number of processors for which information is being materialized is the number of the virtual processors that are currently active in the partition. Number of processors for which information is being materialized is less than or equal to the number of processors configured on the machine returned by MATRMD option hex 13.
Physical processor token provides an index that can be used to correlate the virtual processor to its vital product data returned by MATMATR option hex 012C for a system with a maximum of 16 processors. Physical processor token is the index of the physical machine processor (starting from 1) that a partition virtual processor is currently mapped to.
For a partition sharing physical processors, this mapping only provides a snapshot. At a given instance, a partition processor may be mapped to any of the physical processors in the shared pool in which the partition is running.
Очень полезная штука.