查看cpu在干嘛
[root@zwserver ~]# mpstat -P ALL 1
Linux 3.10.0-693.el7.x86_64 (zwserver) 2018年04月10日 _x86_64_ (4 CPU)
19时43分23秒 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
19时43分24秒 all 1.52 0.00 0.51 1.77 0.00 0.00 0.00 0.00 0.00 96.21
19时43分24秒 0 1.02 0.00 0.00 2.04 0.00 0.00 0.00 0.00 0.00 96.94
19时43分24秒 1 1.03 0.00 0.00 4.12 0.00 0.00 0.00 0.00 0.00 94.85
19时43分24秒 2 1.98 0.00 0.99 0.00 0.00 0.00 0.00 0.00 0.00 97.03
19时43分24秒 3 2.04 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 97.96
开机以来每个核处理的中断数
[root@zwserver ~]# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 29 0 0 0 IO-APIC-edge timer
1: 1 1 0 1 IO-APIC-edge i8042
4: 6 10 0 0 IO-APIC-edge
8: 1 0 0 0 IO-APIC-edge rtc0
9: 3 1 0 0 IO-APIC-fasteoi acpi
12: 3 1 0 0 IO-APIC-edge i8042
23: 38 17 7 0 IO-APIC-fasteoi ehci_hcd:usb1, ehci_hcd:usb2
25: 0 0 0 0 PCI-MSI-edge xhci_hcd
26: 0 0 0 0 PCI-MSI-edge xhci_hcd
27: 0 0 0 0 PCI-MSI-edge xhci_hcd
28: 0 0 0 0 PCI-MSI-edge xhci_hcd
29: 0 0 0 0 PCI-MSI-edge xhci_hcd
30: 0 0 0 0 PCI-MSI-edge xhci_hcd
31: 53 24 14 98241678 PCI-MSI-edge enp3s0
32: 8148 1251 76956018 811 PCI-MSI-edge 0000:00:1f.2
33: 0 0 0 0 PCI-MSI-edge 0000:05:00.0
34: 27 68 24 16 PCI-MSI-edge i915
35: 11 0 0 2 PCI-MSI-edge mei_me
36: 2052 550 963 449 PCI-MSI-edge snd_hda_intel
NMI: 47 44 70 63 Non-maskable interrupts
LOC: 180304042 173658741 177585128 265738389 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 47 44 70 63 Performance monitoring interrupts
IWI: 3816198 4088246 3907519 11878402 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 2349853 2011657 2028842 3954050 Rescheduling interrupts
CAL: 806796 909229 955708 719201 Function call interrupts
TLB: 1934363 1820010 2060402 1795831 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
DFR: 0 0 0 0 Deferred Error APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 1276 1276 1276 1276 Machine check polls
ERR: 0
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
PIW: 0 0 0 0 Posted-interrupt wakeup event
参考文章: [Linux 性能调优] 网卡中断与CPU的绑定问题 https://www.cnblogs.com/bamanzi/p/linux-irq-and-cpu-affinity.html