This article is mainly about how to view Linux soft interrupt information in detail.
About Linux Soft interrupt principle part please refer to: http://book.51cto.com/art/200912/168622.htm
First, the use of Sysstat in the toolkit Mpstat
PS: The picture is to intercept the PC, so there is no pressure:
16:32 48 sec CPU%usr%nice%sys%iowait%irq%soft%steal%guest%idle
16:32 49 sec All 4.52 0.00 1.26 0.00 0.00 0.00 0.00 0.00 94.22
16:32 49 sec 0 5.88 0.00 2.94 0.00 0.00 0.00 0.00 0.00 91.18
16:32 49 seconds 1 11.11 0.00 1.01 0.00 0.00 0.00 0. 0.00 87.88
16:32 49 sec 2 1.00 0.00 2.00 0.00 0.00 0.00 0.00 0.00 97.00
16:32 49 sec 3 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 98.00
Where%IRP indicates how many interrupt requests occur,%soft indicates that the actual CPU is processing the interrupt request in the production environment, you can keep these records in the normal time, in the case of high load, take out the contrast!
Second, view file/proc/interrupts (this is mainly hardware interruption)
The title of the file is:
Serial number of the IRP the number of interrupts that occurred on the respective CPUs programmable Interrupt Controller device name (REQUEST_IRQ dev_name field)
CPU0 CPU1 CPU2 CPU3 0:42 0 2 io-apic- Edge Timer 1:752 3482 3 Io-apic-edge i8042 8:1 0 0 0 Io-apic-edge rtc0 9:0 4 0 0 io-apic-fasteoi ACPI 12: 2161987 Io-apic-edge i8042 14:75884 2900 2898 2877 I O-apic-edge ata_piix 15:83 9438 9104 Io-apic-edge 16:159 178 Io-apic-fasteoi ehci_hcd:usb1, Snd_hda_intel 17:682,317 17 16 Io-apic-fasteoi eth1 18:0 0 0 0 io-apic-fasteoi IPs 19:0 0 0 0 io-apic-fasteoi ata_piix 23:34 io-apic-fa Steoi EHCI_HCD:USB2 44:0 0 0 0 Pci-msi-edge pciehp 45:0 0 0 0 Pci-msi-edge eth0 46:3 4 3 3 Pci-msi-edge Mei 47:48,497 7 6 6 Pci-msi-edge i915 48:63 Pci-msi-edge SN D_hda_intel nmi:972 930 262 258 non-maskable interrupts loc:1092994 969807 8945 872319 Local timer interrupts spu:0 0 0 0 spurious interrupts PMI: 972 930 262 258 performance monitoring interrupts iwi:0 0 0 0 IRQ work interrupts res:3557255 3651095 658468 682760 rescheduling interrupts cal:579 54 2 625 601 Function call interrupts tlb:10116 25398 8181 11007 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts thr:0 0 0 0 Threshold APIC Interrupt S mce:0 0 0 0 Machine Check exceptions mcp:66 66 66
Machine Check Polls err:0 mis:0
Third, view/proc/softirqs (mainly soft interrupts)
CPU0 CPU1 CPU2 CPU3
HI: 0 0 0 0
TIMER: 5455311 39758805 357638 451879
net_tx: 5
Net_rx: 118170 1220 1370 993 block
: 86329
3305 14438 2936 block_ Iopoll: 0 0 0 0
tasklet: 877029 5632
SCHED: 344191 308721 186694 191592
hrtimer: 4081
3910 1393 1198 RCU: 400523 362823 188456 192853
welcome you to discuss!
actual Combat reference address:
http://blog.netzhou.net/?p=152
http://blog.yufeng.info/archives/2037
This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://weipengfei.blog.51cto.com/1511707/1032507
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/