例えば、マシンのチューニングのために、割り込みチェックをしたい場合、/proc/interruptsを定点観測する。そんな場合は、以下のようにする。sleep は1秒にしたけど、適当。
# while :; do sleep 1; cat /proc/interrupts; done
CPU0
0: 67 IO-APIC-edge timer
1: 2 IO-APIC-edge i8042
6: 3 IO-APIC-edge floppy
7: 0 IO-APIC-edge parport0
8: 2 IO-APIC-edge rtc0
9: 0 IO-APIC-fasteoi acpi
11: 3459493 IO-APIC-fasteoi uhci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3
14: 151611 IO-APIC-edge ide0
15: 134289 IO-APIC-edge ide1
16: 48729627 IO-APIC-fasteoi eth2
17: 2080776 IO-APIC-fasteoi eth3
18: 162201 IO-APIC-fasteoi ide2, ide3, eth4
19: 3468111 IO-APIC-fasteoi eth0, eth1
NMI: 0 Non-maskable interrupts
LOC: 3608735 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
SPU: 0 Spurious interrupts
ERR: 0
MIS: 0
CPU0
0: 67 IO-APIC-edge timer
1: 2 IO-APIC-edge i8042
6: 3 IO-APIC-edge floppy
7: 0 IO-APIC-edge parport0
8: 2 IO-APIC-edge rtc0
9: 0 IO-APIC-fasteoi acpi
11: 3459493 IO-APIC-fasteoi uhci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3
14: 151611 IO-APIC-edge ide0
15: 134289 IO-APIC-edge ide1
16: 48729627 IO-APIC-fasteoi eth2
17: 2080803 IO-APIC-fasteoi eth3
18: 162201 IO-APIC-fasteoi ide2, ide3, eth4
19: 3468111 IO-APIC-fasteoi eth0, eth1
NMI: 0 Non-maskable interrupts
LOC: 3608759 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
SPU: 0 Spurious interrupts
ERR: 0
MIS: 0
^C