[uClinux-dev] Interrupt resource usage

Greg Ungerer gerg at snapgear.com
Sun Jun 22 23:47:04 EDT 2008


Hi Vitaly,

Vitaly Demyanec wrote:
>> Hi all,
>>
>> How can I determine the load on the CPU caused by interrupts? The build
>> in ps command only provides me with very sparse information.
>> Thanks in advance.
>>
>> Kind regards,
>>
>> Remco Poelstra
>>
> 
> Hello!
> For getting overall interrupt usage info I am using "cpu" utility with a 
> small patch (see it in attachment).
> 
> Notes:
> 1) It gives only overall info - just as it appears in /proc/stat. If you 
> need per-interrupt info - than this will not help you.
> 2) It seems that somewhen there were only 4 usage counters in 
> /proc/stat. Now in my kernel (2.6.19-uc1) there are 8. I am not sure in 
> which kernel the number has changed. Maybe your kernel still has only 4 
> - than this will not help you.
> 3) The "-i" option seems broken - at least it never worked for me...

The newest uClinux-dist test release has an update cpu program
that has all these extra fields...

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com


More information about the uClinux-dev mailing list