Andrej van der Zee wrote:
> Hi,
> 
> I am looking for a way to count the number of disk IOs that is done on
> behalf of a specific process/thread. I was wondering if perfmon2 could
> be of help. My reasoning is that if I can count the number of hard
> page faults then this should correspond to the number of disk IOs,
> right? On modern CPUs, is it usually possible to count hard page
> faults with perfmon2?
> 
> Thank you,
> Andrej
> 
> 
> 

Hi Andrej,

The performance monitoring hardware isn't going to determine whether it is a
major or minor page fault. The software needs to do some examination of the data
structures to determine whether a simple fix up of the data structure if
required (minor) and an access to disk (major).

You might take a look at using SystemTap for getting this type of information.
One of the examples is pretty close to what you want:

http://sourceware.org/systemtap/examples/memory/pfaults.stp.

There is a description of it at:

http://sourceware.org/systemtap/examples/keyword-index.html#MEMORY

-Will

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to