linux下查看中断请求记录 IRQ

linux下查看中断请求记录。通过cpu的中断请求的响应,可以看出cpu都在为哪些设备干活,干的活有多少量等信息。

 
  1. [~]$ cat /proc/interrupts    
  2.            CPU0       CPU1       CPU2       CPU3          
  3.   01383283707          0          0          0    IO-APIC-edge  timer   
  4.   1:          3          0          0          0    IO-APIC-edge  i8042   
  5.   3:         11          0          0          0    IO-APIC-edge  serial   
  6.   8:          1          0          0          0    IO-APIC-edge  rtc   
  7.   9:          0          0          0          0   IO-APIC-level  acpi   
  8.  12:          4          0          0          0    IO-APIC-edge  i8042   
  9.  14:         25          0          0          0    IO-APIC-edge  ide0   
  10.  82:         85          0          0          0   IO-APIC-level  uhci_hcd:usb5   
  11.  90:         96          0          0          0   IO-APIC-level  uhci_hcd:usb6   
  12. 114:    1067499          0          0          0       PCI-MSI-X  cciss0   
  13. 130:   96508322          0          0          0         PCI-MSI  eth0   
  14. 138:     384295          0          0          0         PCI-MSI  eth1   
  15. 169:          0          0          0          0   IO-APIC-level  ehci_hcd:usb1, uhci_hcd:usb2   
  16. 177:          0          0          0          0   IO-APIC-level  uhci_hcd:usb3   
  17. 185:          0          0          0          0   IO-APIC-level  uhci_hcd:usb4   
  18. NMI:      11370       6399       6845       6300    
  19. LOC: 1383174675 1383278112 1383174810 1383277705    
  20. ERR:          0  
  21. MIS:          0  
[~]$ cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 0: 1383283707 0 0 0 IO-APIC-edge timer 1: 3 0 0 0 IO-APIC-edge i8042 3: 11 0 0 0 IO-APIC-edge serial 8: 1 0 0 0 IO-APIC-edge rtc 9: 0 0 0 0 IO-APIC-level acpi 12: 4 0 0 0 IO-APIC-edge i8042 14: 25 0 0 0 IO-APIC-edge ide0 82: 85 0 0 0 IO-APIC-level uhci_hcd:usb5 90: 96 0 0 0 IO-APIC-level uhci_hcd:usb6 114: 1067499 0 0 0 PCI-MSI-X cciss0 130: 96508322 0 0 0 PCI-MSI eth0 138: 384295 0 0 0 PCI-MSI eth1 169: 0 0 0 0 IO-APIC-level ehci_hcd:usb1, uhci_hcd:usb2 177: 0 0 0 0 IO-APIC-level uhci_hcd:usb3 185: 0 0 0 0 IO-APIC-level uhci_hcd:usb4 NMI: 11370 6399 6845 6300 LOC: 1383174675 1383278112 1383174810 1383277705 ERR: 0 MIS: 0 

---------------------------------------------------------------------------------------------------------

注释:

1. 对部分IRQ标识的解释

Interrupt as in /proc/interrupts        Name as it appears in ftrace log
NMI: Non-maskable interrupts           : NMI_VECTOR
LOC: Local timer interrupts            : LOCAL_TIMER_VECTOR
SPU: Spurious interrupts               : SPURIOUS_APIC_VECTOR
PMI: Performance monitoring interrupts : <not added>
PND: Performance pending work          : LOCAL_PENDING_VECTOR
RES: Rescheduling interrupts           : RESCHEDULE_VECTOR
CAL: Function call interrupts          : CALL_FUNCTION_VECTOR or
                                         CALL_FUNCTION_SINGLE_VECTOR
TLB: TLB shootdowns                    : INVALIDATE_TLB_VECTOR_START to
                                         INVALIDATE_TLB_VECTOR_END
TRM: Thermal event interrupts          : THERMAL_APIC_VECTOR
THR: Threshold APIC interrupts         : THRESHOLD_APIC_VECTOR
MCE: Machine check exceptions          : <not added>
MCP: Machine check polls               : <not added>
ERR:                                   : ERROR_APIC_VECTOR
MIS:                                   : <not added>
PLT: Platform interrupts               : X86_PLATFORM_IPI_VECTOR

2. IO-APIC-edge  timer

此处的timer为系统定时器.

你可能感兴趣的:(linux,timer,vector,function,performance,polls)