From: William C. <wc...@re...> - 2011-09-20 13:42:54
|
On 09/20/2011 02:57 AM, Jonathan Kukin wrote: > Hi William > > I'm using kernel 2.6.18... > Do I have another possibility to collect context switches and page faults? > > Thanks, > Jonathan > Hi Jonathan, You might take a look at SystemTap, http://sourceware.org/systemtap/. It has probe points for context switches and page faults. Look at the the profiling/sched_switch.stp and memory/pfaults.stp for example probing for context switches and page faults at: http://sourceware.org/systemtap/examples/ You didn't mention whether this is a Red Hat Enterprise Linux 5 kernel you are using. If it is, there are also "kernel.trace("*")" probe points available. The are some examples using those on http://sourceware.org/systemtap/examples/. You systemtap can list whether those are available with: stap -L 'kernel.trace("*")' Hope that helps. -Will |