Watch Live Interrupts
June 22nd, 2009 by Chilaka Kumar in
To see the interrupts occurring on your system, run the command:
# watch -n1 "cat /proc/interrupts"
CPU0 CPU1
0: 330 0 IO-APIC-edge timer
1: 11336 0 IO-APIC-edge i8042
4: 2 0 IO-APIC-edge
6: 3 0 IO-APIC-edge floppy
...
NMI: 0 0 Non-maskable interrupts
LOC: 5806923 6239132 Local timer interrupts
...
The watch command executes another command periodically, in this case "cat /proc/interrups". The -n1 option tells watch to execute the command every second.
__________________________
Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Subscribe now!
The Latest
Newsletter
Tech Tip Videos
- Nov-04-09
- Oct-29-09
- Oct-26-09
Recently Popular
From the Magazine
December 2009, #188
If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.
Delicious
Digg
StumbleUpon
Reddit
Facebook








Should have at least defined
On June 29th, 2009 Anonymous (not verified) says:
Should have at least defined each definition of all the interrupts and what they correlate to. There's no interrupts man page either. Which means it's slightly useless for the average user. Maybe I'm look in the wrong place for a man page, I don't know.
"-d" option.
On June 29th, 2009 vinit dilip dhatrak (not verified) says:
Try -d option of watch command for fancy output with highlights.
e.g.
# watch -d -n1 "cat /proc/interrupts"
saves a lot of time..
On June 25th, 2009 kasi says:
this command will save a lot of time while we have to run a single command many times.
Thanks.
cool command
On June 22nd, 2009 Anonymous (not verified) says:
I didn't know about the 'watch' command. Sure beats doing a loop with sleep :).
Thanks for the tip!
Post new comment