You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get eight percentages on machine, one for each thread. (My machine has four cores with two threads each.)
I would like to know which thread belongs to which core to be able to associate temperatures (psutil.sensors_temperatures()["coretemp"]) accordingly.
This becomes increasingly interesting with the advent of machines where only a number of cores have multiple threads, and others don't (efficiency cores).
On Linux (Unix?), this information is given in /proc/cpuinfo as core id:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
stepping : 10
microcode : 0xf0
cpu MHz : 3100.396
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
[...]
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
stepping : 10
microcode : 0xf0
cpu MHz : 3099.999
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 2
initial apicid : 2
[...]
The text was updated successfully, but these errors were encountered:
Summary
Description
With
I get eight percentages on machine, one for each thread. (My machine has four cores with two threads each.)
I would like to know which thread belongs to which core to be able to associate temperatures (
psutil.sensors_temperatures()["coretemp"]
) accordingly.This becomes increasingly interesting with the advent of machines where only a number of cores have multiple threads, and others don't (efficiency cores).
On Linux (Unix?), this information is given in
/proc/cpuinfo
ascore id
:The text was updated successfully, but these errors were encountered: