我的 CPU 使用率几乎是 90%+ 在调查了 htop 的输出后,我看到,有一个进程使用以下命令,占用了太多的 cpu 使用率
/usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.eEvrhpxBUl
看一下整个数据
alamin 1635 1634 31 06:12 tty1 00:35:13 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.eEvrhpxBUl
alamin 9081 26703 0 08:04 pts/0 00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn Xorg
lspci输出
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
06:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
08:00.0 3D controller: NVIDIA Corporation GK208M [GeForce 920M] (rev a1)
mpstat -P ALL 的输出
Linux 4.10.0-33-generic (laptop) 08/29/2017 _x86_64_ (4 CPU)
08:55:25 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
08:55:25 AM all 47.07 0.01 18.16 4.53 0.00 0.52 0.00 0.00 0.00 29.70
08:55:25 AM 0 48.75 0.01 17.76 4.44 0.00 0.18 0.00 0.00 0.00 28.87
08:55:25 AM 1 47.76 0.02 17.03 4.06 0.00 1.59 0.00 0.00 0.00 29.55
08:55:25 AM 2 47.95 0.01 18.64 5.16 0.00 0.22 0.00 0.00 0.00 28.02
08:55:25 AM 3 43.81 0.01 19.24 4.47 0.00 0.09 0.00 0.00 0.00 32.38
vmstat 的输出
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 0 0 5918180 57512 905904 0 0 202 28 1848 2469 48 19 29 4 0
如果您需要更多数据。就问....
请给我一个建议来解决它。
答案1
谢谢@德克特。问题出在另一个进程 - i3bar - 它一直试图显示很多内容。我对配置进行了一些研究并找出了瓶颈。