Hi,
Sorry forgot to read the entire sentence...
If you want to attribute this per-thread, it gets harder
and I don't think you can do this using the PMU, at least
not on x86. I believe you could do it on IA-64, though.

If you think major page fault may be a good approximation,
I believe you can retrieve this via /proc/PID/stat (fields 10,12)
or even top.


On Thu, Jun 11, 2009 at 5:43 PM, stephane eranian <eran...@googlemail.com>wrote:

> Hi,
> Can't you get Disk IO with a tool such as iostat or vmstat?
> $ iostat
> Linux 2.6.30-rc7-tip (quad) 06/11/09
>
> avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>            0.16    0.00    0.43    0.03    0.00   99.38
>
> Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
> sda               0.65         5.94        21.69    2224333    8127432
> sda1              0.65         5.93        21.69    2221820    8127432
> sda2              0.00         0.00         0.00       1021          0
> sda3              0.00         0.00         0.00        600          0
> sda4              0.00         0.00         0.00        636          0
>
>
> On Thu, Jun 11, 2009 at 6:35 AM, Andrej van der Zee <
> andrejvander...@gmail.com> wrote:
>
>> Hi,
>>
>> Thanks for your reply.
>>
>> >
>> > 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).
>> >
>>
>> Do you think it is feasible to hack this distinction between minor and
>> major page faults into perfmon2 without to much effort? I am not much
>> of a kernel programmer, so sorry if it is a silly question. But if it
>> is possible, I could delegate the work to one of my coworkers. I am
>> targeting for Intel Dual Core / Xeon CPUs.
>>
>> Thank you,
>> Andrej
>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> perfmon2-devel mailing list
>> perfmon2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>>
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to