Quantcast
Username/Email:  Password: 

Watch Live Interrupts

 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.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Should have at least defined

Anonymous's picture

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.

vinit dilip dhatrak's picture

Try -d option of watch command for fancy output with highlights.

e.g.
# watch -d -n1 "cat /proc/interrupts"

saves a lot of time..

kasi's picture

this command will save a lot of time while we have to run a single command many times.
Thanks.

cool command

Anonymous's picture

I didn't know about the 'watch' command. Sure beats doing a loop with sleep :).

Thanks for the tip!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.
  • Use to create page breaks.

More information about formatting options