Loading
Home ›
Watch Live Interrupts
Jun 22, 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.
______________________
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Well spotted. I've corrected
57 min 56 sec ago - This is a great program. We
3 hours 58 min ago - No Air for Linux
5 hours 47 min ago - HEWLETT PACKARD created
5 hours 57 min ago - HEWLETT PACKARD created
6 hours 18 sec ago - very helpful :)
6 hours 21 min ago - I'll give it a whirl
14 hours 56 min ago - TFPT, don't you mean TFTP!? I
23 hours 24 min ago - wunderbar!!
23 hours 43 min ago - Lubuntu on a USB key
1 day 13 hours ago





Comments
Should have at least defined
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.
Try -d option of watch command for fancy output with highlights.
e.g.
# watch -d -n1 "cat /proc/interrupts"
saves a lot of time..
this command will save a lot of time while we have to run a single command many times.
Thanks.
cool command
I didn't know about the 'watch' command. Sure beats doing a loop with sleep :).
Thanks for the tip!