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
{{ message }}
Repository navigation
Add support for modular/hybrid processor topology #1571
Intel will soon be releasing new hybrid core / SOC chips. The Apple M1 chip has already been released (with M1X and M2 coming soon).
Windows will soon be updating code defining CPU topology to recognize the new chips, and information is available in the macOS registry to piece it together for Apple silicon. I haven't looked at Linux yet but I expect something in /proc/cpuinfo will probably identify logical processors as high performance or low power.
OSHI should add something to its LogicalProcessor API to permit users to deduce these topology details.
Spent some time trying to scope this out. What I've gathered:
Hybrid/modular CPUs all share the same instruction set, but mainly have a difference in performance, with "big" (high computational power) and "little" (low energy consumption) cores.
Proposed class: ProcessorCore. The CentralProcessor interface will have a getCores() function that returns a list of these. Class fields:
Efficiency Class (taken from windows; higher number means higher performance/less efficiency; current chips just have 0 and 1). Store the Windows value directly. Hardcode macOS values based on "firestorm" and "icestorm".
Number of threads (hyperthreading). Just count logical processors. 1 or 2.
Identification. Free form string the user has to further parse. For Windows, the CPUID, possibly any other column relevant in WMI. For macOS, the IOReg description of the processor compatibility.
Any thoughts on anything I'm missing or a better idea on how to do this?
Activity
dbwiddis commentedon Jan 13, 2022
Spent some time trying to scope this out. What I've gathered:
Windows:
macOS:
Linux:
/sys/devices/system/cpu/cpuX/cpu_capacityBSD (and possibly all Unix):
Proposed class:
ProcessorCore. TheCentralProcessorinterface will have agetCores()function that returns a list of these. Class fields:Any thoughts on anything I'm missing or a better idea on how to do this?
dbwiddis commentedon Mar 11, 2022
GCC Compile farm has an M1 Linux build available so I finally got to test this! Here's 4 "efficiency" and 4 "performance" cores.