Linux Kernel Performance Counter Subsystem

Written by Michael Larabel in Linux Kernel on 8 December 2008 at 09:55 AM EST. 8 Comments
LINUX KERNEL
Thomas Gleixner has proposed a series of patches to the Linux kernel that would (finally) introduced a performance counter sub-system. This sub-system would make it possible to read performance-oriented data off special registers on modern processors such as the number of CPU instructions executed, cache misses, branches mis-predicted, etc.

Thomas describes this proposed performance counter subsystem as being very simple (it only takes a few lines of user-space code to read the counters) but still an extensible design that can implement a full range of features. Also posted on the Linux Kernel Mailing List was a simple monitoring demo. Thomas believes that the design of this subsystem is superior to that of some of the other recent patch sets that add similar functionality. However, there still is quite a bit of work left to be accomplished for this performance counter subsystem. Right now Intel Core 2 and newer CPUs are supported with their performance counting registers, but beyond that there isn't any non-Intel CPU support.

Of course, being the Linux benchmarking fanatics that we are, we'd love for this to enter the mainline Linux kernel soon. It would also be fun to add a module to read these counters for the Phoronix Test Suite. To find out more about the performance counter subsystem, checkout this LKML thread.
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