Wednesday 26 October 2011

Dtrace release 20111026

This release is an interim release. It fixes the issue I wrote about
earlier, but likely will not compile on kernels earlier than 2.6.39.

It is the first working example of the vminfo provider. Heres a small
sample of the vminfo probes:


48 vminfo pgmajfault
49 vminfo unevictable_mlockfreed
50 vminfo pgfree
51 vminfo unevictable_mlockfreed
52 vminfo compactsuccess
53 vminfo compactfail
54 vminfo pgdeactivate
55 vminfo pgrotated
56 vminfo pgactivate
57 vminfo kswapd_low_wmark_hit_quickly
58 vminfo kswapd_high_wmark_hit_quickly


These correspond to the entries in /proc/vmstat and you can now intercept
calls to them, e.g.


$ dtrace -n pgmajfault
...


I will attempt to update the release to fix the broken earlier kernels
shortly.

(Getting the /proc/vmstats stuff involves examining an enum and isnt amenable
to #ifdef coding practise, so I may need to autodetect which ones are
available for the current kernel).

Post created by CRiSP v10.0.17a-b6101


No comments:

Post a Comment