Seeing what process and interrupts are competing with a process for the cpu

William Cohen wcohen@redhat.com
Fri Apr 16 20:30:00 GMT 2010


This week I was playing with the tracepoints for the scheduler and interrupts to see if I could generate a couple scripts to give people an idea what other processes and irq are using the processor (and competing for the processor). Both scripts show the number of times the process has migrated between cpus and the distribution of time on and off the cpu. The cycle_thief.stp script shows the pid for the processes and the number of times those processes run while the process of interest is not running on the particular cpu. The irq_thief_new.stp shows statistics on the irq that interrupt the running cpu.

Any comments on the scripts would be appreciated.

-Will
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cycle_thief.stp
URL: <http://sourceware.org/pipermail/systemtap/attachments/20100416/52fab1da/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: irq_thief_new.stp
URL: <http://sourceware.org/pipermail/systemtap/attachments/20100416/52fab1da/attachment-0001.ksh>


More information about the Systemtap mailing list