观察实时中断
发表于 2009年6月22日
要查看系统上发生的中断,请运行命令
# 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 ...
watch命令定期执行另一个命令,在本例中为“cat /proc/interrupts”。 -n1 选项告诉watch每秒执行一次该命令。