SUSE Revives Patches For Exposing /proc/cpuinfo Data Over Sysfs

Written by Michael Larabel in Linux Kernel on 7 December 2019 at 06:09 PM EST. 14 Comments
LINUX KERNEL
Back in 2017 were patches for exposing /proc/cpuinfo data via sysfs for more easily parsing selected bits of information from the CPU information output. That work never made it into the mainline kernel but now SUSE's Thomas Renninger is taking over and trying to get revised patches into the kernel.

Renninger sent out revised versions of the "sysfs-based cpuinfo" on Friday that within /sys/devices/system/cpu/cpuX/info/ would expose nodes to easily parse pieces of cpuinfo like bogomips, cpu_family, flags, model, model_name, stepping, vendor_id, and more. Reading the information via sysfs with a single-value-per-file makes it much easier for parsing compared to having to parse the entire /proc/cpuinfo output and complements other CPU information already accessible via the very convenient sysfs.

The new patches have found some flaws under the review so far but hopefully this SUSE engineer will get the work cleaned up and merged potentially for Linux 5.6 next year for easier parsing by scripts/programs than the full /proc/cpuinfo output. For those preferring the complete /proc/cpuinfo output, fear not that no changes are expected there.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week