Results 1 to 9 of 9

Thread: Linux Kernel Performance Counter Subsystem

  1. #1
    Join Date
    Jan 2007
    Posts
    13,417

    Default Linux Kernel Performance Counter Subsystem

    Phoronix: Linux Kernel Performance Counter Subsystem

    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...

    http://www.phoronix.com/vr.php?view=NjkxMQ

  2. #2
    Join Date
    Jun 2007
    Posts
    145

    Default

    isn't that also possible with systemtap?

  3. #3
    Join Date
    May 2008
    Posts
    598

    Default

    I have been told that IBM mainframes can do this. I.e. count how many cycles a process have taken, how much ram was used and all sorts of things that can be used to write a bill to the person that have ordered the process to run.

    Perhaps it is an IRIX feature? I don't know.

  4. #4
    Join Date
    Jan 2008
    Posts
    772

    Default

    Quote Originally Posted by Louise View Post
    I have been told that IBM mainframes can do this. I.e. count how many cycles a process have taken, how much ram was used and all sorts of things that can be used to write a bill to the person that have ordered the process to run.

    Perhaps it is an IRIX feature? I don't know.
    Do you mean AIX? IRIX is an SGI operating system (though probably just as concerned with measuring performance, for completely different reasons).

  5. #5
    Join Date
    May 2008
    Posts
    598

    Default

    Quote Originally Posted by Ex-Cyber View Post
    Do you mean AIX?
    Sorry, yes it was AIX I tought of

    Quote Originally Posted by Ex-Cyber View Post
    IRIX is an SGI operating system (though probably just as concerned with measuring performance, for completely different reasons).
    Why is that???

  6. #6
    Join Date
    Jan 2008
    Posts
    772

    Default

    For a while, SGI was the leader in real-time CGI (e.g. OpenGL has its roots in SGI's proprietary 3D API).

  7. #7
    Join Date
    Apr 2007
    Location
    Mexico City, Mexico
    Posts
    899

    Default

    Quote Originally Posted by Ex-Cyber View Post
    For a while, SGI was the leader in real-time CGI (e.g. OpenGL has its roots in SGI's proprietary 3D API).
    I thought OpenGL was actually their proprietary 3D Graphics API, which then they released as a royalty free open standard. I don't quite remember what name did it have before becoming OpenGL, IRIS GL was the name... For more info see this and this

  8. #8
    Join Date
    Dec 2008
    Location
    Halifax, NS, Canada
    Posts
    63

    Default

    The Core 2 performance counters are the same ones oprofile uses, right? So this would be a new infrastructure for collecting the same data you could get by leaving oprofile running long-term?

    oprofile can use Core 2's two performance counters to count cache misses, pipeline stalls, uops dispatched or retired, clock cycles taken, and various other events. So yeah, perf counters are really handy. This easy-to-use interface to them might make it easier to profile some things... Esp. if it can be done without root. That would be a huge advantage, because it's easy to lock up a machine with oprofile (set a counter to trigger too often and the machine is stuck in an interrupt loop), so I wouldn't give users of a cluster the ability to run oprofile. If this is a safe way to let users use perf counters, it would be great for people optimizing code on machines they have access to but aren't root on.

  9. #9
    Join Date
    Jul 2008
    Posts
    314

    Default

    Quote Originally Posted by Louise View Post
    Sorry, yes it was AIX I tought of
    To answer your original question: yes, AIX has advanced accounting, which is based on the accounting technology features in IBM's mainframes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •