我有一台运行 Linux Arch 的嵌入式机器,它的使用率始终为 50%(4 核 800mhz),除了一件奇怪的事情之外,基本上什么都不运行。我怎样才能消除它或减少这种闲置负载。
htop 与 K:
ps auxk-cputime 的输出 |头:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 16124 50.1 0.0 0 0 ? R 14:52 20:26 [irq/147-30be000]
root 34 10.2 0.0 0 0 ? I 14:43 5:03 [kworker/u8:2]
root 20389 13.7 0.0 0 0 ? I 15:07 3:29 [kworker/u8:3]
root 23144 11.8 0.0 0 0 ? I 15:16 1:54 [kworker/u8:1]
root 1 0.3 0.1 25096 5876 ? Ss 14:43 0:11 /sbin/init
猫/过程/中断
CPU0 CPU1 CPU2 CPU3
1: 0 0 0 0 GICv3 25 Level vgic
3: 328565 337345 428599 353346 GICv3 30 Level arch_timer
4: 0 0 0 0 GICv3 27 Level kvm guest timer
6: 11 18 11 15 GPC-PSCI 47 Edge iMX system counter timer
7: 0 0 0 0 GICv3 23 Level arm-pmu
8: 0 0 0 0 GPC-PSCI 102 Edge ddrc
9: 0 0 0 0 GPC-PSCI 109 Edge ddrc
10: 0 0 0 0 GPC-PSCI 110 Edge ddrc
11: 0 0 0 0 GPC-PSCI 111 Edge ddrc
24: 940 0 1 0 irqsteer 3 Edge dcss-dpr
25: 0 0 0 0 irqsteer 4 Edge dcss-dpr
26: 0 0 0 0 irqsteer 5 Edge dcss-dpr
27: 12 0 0 0 irqsteer 6 Edge dcss_ctxld
28: 974 0 1 0 irqsteer 8 Edge dcss_ctxld_kick
29: 942 0 1 0 irqsteer 9 Edge dcss_drm
30: 0 0 0 0 irqsteer 16 Edge dcss-dtrc
31: 0 0 0 0 irqsteer 17 Edge dcss-dtrc
32: 127 0 0 0 GPC-PSCI 34 Edge nwl-dsi
35: 0 0 0 0 GPC-PSCI 20 Edge caam-snvs
36: 0 0 0 0 GPC-PSCI 4 Edge 30370000.snvs:snvs-powerkey
39: 0 0 0 0 GPC-PSCI 31 Edge 30820000.ecspi
40: 0 0 0 0 GPC-PSCI 32 Edge 30830000.ecspi
41: 23020 0 0 0 GPC-PSCI 26 Edge 30860000.serial
42: 0 0 0 0 GPC-PSCI 28 Edge 30880000.serial
43: 0 0 0 0 GPC-PSCI 27 Edge 30890000.serial
45: 46966 0 0 0 GPC-PSCI 22 Edge mmc0
46: 0 0 0 0 GPC-PSCI 23 Edge mmc1
47: 449 0 0 0 GPC-PSCI 2 Edge sdma
48: 0 0 0 0 GPC-PSCI 103 Edge sdma
49: 0 0 0 0 GPC-PSCI 118 Edge 30be0000.ethernet
50: 0 0 0 0 GPC-PSCI 119 Edge 30be0000.ethernet
51: 27380157 0 0 0 GPC-PSCI 120 Edge 30be0000.ethernet
52: 314 0 0 0 GPC-PSCI 35 Edge 30a20000.i2c
53: 142955 0 0 0 GPC-PSCI 36 Edge 30a30000.i2c
54: 10 0 0 0 GPC-PSCI 38 Edge 30a50000.i2c
55: 0 0 0 0 GPC-PSCI 78 Edge 30280000.wdog
56: 126 0 0 0 GPC-PSCI 122 Edge mx6-pcie-msi
58: 60470 0 0 0 GPC-PSCI 74 Edge mx6-pcie-msi
60: 0 0 0 0 GPC-PSCI 98 Edge ddr_perf
72: 0 0 0 0 gpio-mxc 9 Level fsc_interrupt_int_n
107: 0 0 0 0 gpio-mxc 12 Edge 30b50000.usdhc cd
147: 2107008 0 0 0 gpio-mxc 20 Level 30be0000.ethernet-1:04
224: 30 0 0 0 GPC-PSCI 41 Edge xhci-hcd:usb1
225: 2 0 0 0 GPC-PSCI 105 Edge 30901000.jr0
226: 12 0 0 0 GPC-PSCI 106 Edge 30902000.jr1
227: 0 0 0 0 GPC-PSCI 114 Edge 30903000.jr2
228: 0 0 0 0 PCI-MSI 0 Edge PCIe PME, aerdrv
229: 126 0 0 0 PCI-MSI 1 Edge eth1
261: 0 0 0 0 PCI-MSI 0 Edge PCIe PME, aerdrv
262: 60470 0 0 0 PCI-MSI 1 Edge eth2
IPI0: 3381139 7659801 19085661 7943330 Rescheduling interrupts
IPI1: 120 606 594 528 Function call interrupts
IPI2: 0 0 0 0 CPU stop interrupts
IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts
IPI4: 0 4 6 5 Timer broadcast interrupts
IPI5: 13376 11413 245140 11958 IRQ work interrupts
IPI6: 0 0 0 0 CPU wake-up interrupts
Err: 0
cat /proc/中断| grep 30be000
root@imx6qpsabresd:/# cat /proc/interrupts | grep 30be000
49: 0 0 0 0 GPC-PSCI 118 Edge 30be0000.ethernet
50: 0 0 0 0 GPC-PSCI 119 Edge 30be0000.ethernet
51: 30549322 0 0 0 GPC-PSCI 120 Edge 30be0000.ethernet
147: 2350920 0 0 0 gpio-mxc 20 Level 30be0000.ethernet-1:04
答案1
你有一个所谓的中断风暴。这通常是硬件错误。请检查Linux 5.19.1是否修复了该问题,如果没有,请在以下位置提交错误报告:https://bugzilla.kernel.org/enter_bug.cgi?product=驱动程序-> 网络
也有可能(虽然不要引用我的话)你的网卡处于混杂模式,所以你的内核正在监听 LAN 上的任何垃圾流量。
sudo ethtool $interface
可以向您展示更多信息。