Viewing interrupts in Solaris and Linux


While the days of conflicting IRQ lines are almost behind us, it is still useful to see the interrupt request lines associated with the devices in a given system. To view IRQ to device mappings on Solaris systems, the mdb ::interrupts DCMD (requires a recent build of Nevada) can be used:

$ mdb -k

Loading modules: [ unix krtld genunix specfs ufs pcipsy ip sctp fctl nca md sd zfs
random logindmux ptm cpc fcip sppp nfs ]
> ::interrupts

Device Shared Type MSG # State INO Mondo Pil CPU
glm#0 no Fixed --- enbl 0x14 0x7d4 4 0
hme#0 no Fixed --- enbl 0x21 0x7e1 6 0
su#1 no Fixed --- enbl 0x2a 0x7ea 12 0
su#0 no Fixed --- enbl 0x29 0x7e9 12 0
se#0 no Fixed --- enbl 0x2b 0x7eb 12 0
m64#0 no Fixed --- enbl 0xf 0x7cf 9 0
power#0 no Fixed --- enbl 0x25 0x7e5 14 0
uata#0 no Fixed --- enbl 0x20 0x7e0 4 0

On Linux systems you can cat /proc/interrupts to get IRQ information:

$ cat /proc/interrupts

CPU0
0: 162248 XT-PIC timer
1: 335 XT-PIC i8042
2: 0 XT-PIC cascade
5: 31561 XT-PIC eth0
6: 1 XT-PIC uhci_hcd:usb1
7: 1 XT-PIC parport0
8: 1 XT-PIC rtc
9: 165 XT-PIC acpi, ide2, uhci_hcd:usb2
12: 278 XT-PIC i8042
14: 8285 XT-PIC ide0
15: 5596 XT-PIC ide1
NMI: 0
LOC: 0
ERR: 0
MIS: 0
This article was posted by Matty on 2006-04-16 11:31:00 -0400 -0400