Intel's Patches Discussed For Exposing Hybrid CPU Topology Via Sysfs
Last week open-source developers at Intel began sending out Linux patches for supporting hybrid CPUs particularly ahead of 12th Gen "Alder Lake" coming to market with a mix of Golden Cove and Gracemont cores. Following that article last week, more patches hit the list in exposing the hybrid CPU topology to user-space.
These patches indicate how Intel plans to expose the hybrid CPU topology to user-space for software interested in the core make-up of the system. While Arm devices on Linux in big.LITTLE designs expose their details via /sys/devices/system/cpu/cpuX/cpu_capacity, Intel is planning to expose a separate and brand new interface via /sys/devices/system/cpu/types.
Within /sys/devices/system/cpu/types the plan is to have a separate sub-directory for each type of CPU core present on the system and within there will be a CPU list and map that user-space can query for finding out which cores are of what microarchitecture and any other pressing attributes. Intel engineers feel this interface is better as from one read it can then be determined what cores are of a given type compared to the cpu_capacity approach with Arm where a file needs to be read for each core. The proposed Intel hybrid sysfs patches can be found via the LKML.
However, Linux kernel veteran Greg Kroah-Hartman has so far had some critiques to the design as well as suggesting better cooperation with Arm engineers in related patches. So we'll see ahead how the patches evolve, but given Alder Lake won't be out until at least towards the end of next year, there still is plenty of time to revise this work.
These patches indicate how Intel plans to expose the hybrid CPU topology to user-space for software interested in the core make-up of the system. While Arm devices on Linux in big.LITTLE designs expose their details via /sys/devices/system/cpu/cpuX/cpu_capacity, Intel is planning to expose a separate and brand new interface via /sys/devices/system/cpu/types.
Within /sys/devices/system/cpu/types the plan is to have a separate sub-directory for each type of CPU core present on the system and within there will be a CPU list and map that user-space can query for finding out which cores are of what microarchitecture and any other pressing attributes. Intel engineers feel this interface is better as from one read it can then be determined what cores are of a given type compared to the cpu_capacity approach with Arm where a file needs to be read for each core. The proposed Intel hybrid sysfs patches can be found via the LKML.
However, Linux kernel veteran Greg Kroah-Hartman has so far had some critiques to the design as well as suggesting better cooperation with Arm engineers in related patches. So we'll see ahead how the patches evolve, but given Alder Lake won't be out until at least towards the end of next year, there still is plenty of time to revise this work.
5 Comments