我买了一台新的笔记本电脑,该笔记本电脑运行了大约一两个星期。我无法确切地回忆起某个触发器,但现在遇到的问题是,一个CPU内核几乎总是在接近100%的速度运行,并且计算机处于滞后状态。
我从一开始就使用双重引导,但是Windows 10运行良好。
眼镜:
Ubuntu 18.04.4 LTS
英特尔®酷睿TM i7-8565U
GeForce GTX 1050 Ti Mobile
16GB内存
我看了其他一些帖子,但是到目前为止,建议的修复对我而言不起作用。我确保计算机使用NVidia图形卡,并据我所知安装了最新的驱动程序。我也尝试过切换到Kubuntu Desktop,但问题仍然存在。
我的主要问题是,我找不到导致永久使用CPU的进程。我重新启动计算机,使其闲置了几分钟,偶尔CPU使用率下降了,但通常还是很高。(见附图2)
当我运行任何其他程序时,滞后也会变得更糟,播放youtube视频会使鼠标本身滞后严重,并且CPU几乎始终以100%的速度运行(参见图片)
我很感谢您的帮助,并很乐意提供所需命令的任何数据/输出,因为我想解决此问题。
非常感谢你
编辑:的输出
ps aux --sort=-pcpu | head
是
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1602 15.0 0.7 576228 129056 tty2 Sl+ 10:24 6:20 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
lars 5880 13.5 2.2 3817104 365864 tty2 Sl+ 10:46 2:47 /usr/lib/firefox/firefox -new-window
lars 1780 12.4 2.9 4400160 486128 tty2 Rl+ 10:24 5:13 /usr/bin/gnome-shell
lars 6139 10.0 1.2 2760008 209576 tty2 Sl+ 10:47 2:00 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 7500 -prefMapSize 217531 -parentBuildID 20200403170909 -appdir /usr/lib/firefox/browser 5880 true tab
lars 2159 5.4 0.2 656356 47904 tty2 Sl+ 10:24 2:16 gnome-system-monitor
lars 6776 4.7 1.0 2663220 170720 tty2 Sl+ 11:02 0:13 /usr/lib/firefox/firefox -contentproc -childID 13 -isForBrowser -prefsLen 7823 -prefMapSize 217531 -parentBuildID 20200403170909 -appdir /usr/lib/firefox/browser 5880 true tab
root 1386 2.2 0.0 0 0 ? S 10:24 0:56 [irq/152-nvidia]
lars 6730 1.2 1.2 2710580 202384 tty2 Sl+ 11:01 0:04 /usr/lib/firefox/firefox -contentproc -childID 12 -isForBrowser -prefsLen 7752 -prefMapSize 217531 -parentBuildID 20200403170909 -appdir /usr/lib/firefox/browser 5880 true tab
lars 6003 1.0 1.1 34232032 191064 tty2 Sl+ 10:46 0:13 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 6684 -prefMapSize 217531 -parentBuildID 20200403170909 -appdir /usr/lib/firefox/browser 5880 true tab
我尝试拔出所有USB设备,但没有任何改变
编辑2:
EDIT3:输出 pstree -l
systemd─┬─ModemManager───2*[{ModemManager}]
├─NetworkManager─┬─dhclient
│ └─2*[{NetworkManager}]
├─accounts-daemon───2*[{accounts-daemon}]
├─acpid
├─anacron
├─avahi-daemon───avahi-daemon
├─bluetoothd
├─boltd───2*[{boltd}]
├─colord───2*[{colord}]
├─cron
├─cups-browsed───2*[{cups-browsed}]
├─cupsd
├─dbus-daemon
├─deja-dup-monito───3*[{deja-dup-monito}]
├─gdm3─┬─gdm-session-wor─┬─gdm-wayland-ses─┬─gnome-session-b─┬─gnome-shell─┬─Xwayland───9*[{Xwayland}]
│ │ │ │ │ ├─ibus-daemon─┬─ibus-dconf───3*[{ibus-dconf}]
│ │ │ │ │ │ ├─ibus-engine-sim───2*[{ibus-engine-sim}]
│ │ │ │ │ │ └─2*[{ibus-daemon}]
│ │ │ │ │ └─26*[{gnome-shell}]
│ │ │ │ ├─gsd-a11y-settin───3*[{gsd-a11y-settin}]
│ │ │ │ ├─gsd-clipboard───3*[{gsd-clipboard}]
│ │ │ │ ├─gsd-color───4*[{gsd-color}]
│ │ │ │ ├─gsd-datetime───2*[{gsd-datetime}]
│ │ │ │ ├─gsd-housekeepin───2*[{gsd-housekeepin}]
│ │ │ │ ├─gsd-keyboard───4*[{gsd-keyboard}]
│ │ │ │ ├─gsd-media-keys───4*[{gsd-media-keys}]
│ │ │ │ ├─gsd-mouse───2*[{gsd-mouse}]
│ │ │ │ ├─gsd-power───4*[{gsd-power}]
│ │ │ │ ├─gsd-print-notif───2*[{gsd-print-notif}]
│ │ │ │ ├─gsd-rfkill───2*[{gsd-rfkill}]
│ │ │ │ ├─gsd-screensaver───2*[{gsd-screensaver}]
│ │ │ │ ├─gsd-sharing───3*[{gsd-sharing}]
│ │ │ │ ├─gsd-smartcard───4*[{gsd-smartcard}]
│ │ │ │ ├─gsd-sound───3*[{gsd-sound}]
│ │ │ │ ├─gsd-wacom───3*[{gsd-wacom}]
│ │ │ │ ├─gsd-xsettings───4*[{gsd-xsettings}]
│ │ │ │ └─3*[{gnome-session-b}]
│ │ │ └─2*[{gdm-wayland-ses}]
│ │ └─2*[{gdm-session-wor}]
│ ├─gdm-session-wor─┬─gdm-x-session─┬─Xorg───2*[{Xorg}]
│ │ │ ├─lxsession─┬─lxpanel─┬─firefox─┬─RDD Process───3*[{RDD Process}]
│ │ │ │ │ │ ├─2*[Web Content───33*[{Web Content}]]
│ │ │ │ │ │ ├─Web Content───35*[{Web Content}]
│ │ │ │ │ │ ├─4*[Web Content───34*[{Web Content}]]
│ │ │ │ │ │ ├─Web Content───47*[{Web Content}]
│ │ │ │ │ │ ├─WebExtensions───29*[{WebExtensions}]
│ │ │ │ │ │ └─85*[{firefox}]
│ │ │ │ │ └─4*[{lxpanel}]
│ │ │ │ ├─lxpolkit───2*[{lxpolkit}]
│ │ │ │ ├─openbox───2*[{openbox}]
│ │ │ │ ├─pcmanfm───2*[{pcmanfm}]
│ │ │ │ ├─ssh-agent
│ │ │ │ └─2*[{lxsession}]
│ │ │ └─2*[{gdm-x-session}]
│ │ └─2*[{gdm-session-wor}]
│ └─2*[{gdm3}]
├─ibus-x11───3*[{ibus-x11}]
├─irqbalance───{irqbalance}
├─2*[kerneloops]
├─menu-cached───2*[{menu-cached}]
├─networkd-dispat───{networkd-dispat}
├─nm-applet───3*[{nm-applet}]
├─nvidia-persiste
├─packagekitd───2*[{packagekitd}]
├─polkitd───2*[{polkitd}]
├─pulseaudio───2*[{pulseaudio}]
├─rsyslogd───3*[{rsyslogd}]
├─rtkit-daemon───2*[{rtkit-daemon}]
├─snapd───17*[{snapd}]
├─ssh-agent
├─systemd─┬─(sd-pam)
│ ├─at-spi-bus-laun─┬─dbus-daemon
│ │ └─3*[{at-spi-bus-laun}]
│ ├─at-spi2-registr───2*[{at-spi2-registr}]
│ ├─dbus-daemon
│ ├─ibus-portal───2*[{ibus-portal}]
│ ├─pulseaudio───2*[{pulseaudio}]
│ └─xdg-permission-───2*[{xdg-permission-}]
├─systemd─┬─(sd-pam)
│ ├─at-spi-bus-laun─┬─dbus-daemon
│ │ └─3*[{at-spi-bus-laun}]
│ ├─at-spi2-registr───2*[{at-spi2-registr}]
│ ├─dbus-daemon
│ ├─dconf-service───2*[{dconf-service}]
│ ├─gnome-screensav───3*[{gnome-screensav}]
│ ├─gnome-terminal-─┬─bash───htop
│ │ ├─bash───pstree
│ │ └─4*[{gnome-terminal-}]
│ ├─goa-daemon───3*[{goa-daemon}]
│ ├─goa-identity-se───3*[{goa-identity-se}]
│ ├─gvfs-afc-volume───3*[{gvfs-afc-volume}]
│ ├─gvfs-goa-volume───2*[{gvfs-goa-volume}]
│ ├─gvfs-gphoto2-vo───2*[{gvfs-gphoto2-vo}]
│ ├─gvfs-mtp-volume───2*[{gvfs-mtp-volume}]
│ ├─gvfs-udisks2-vo───2*[{gvfs-udisks2-vo}]
│ ├─gvfsd─┬─gvfsd-trash───2*[{gvfsd-trash}]
│ │ └─2*[{gvfsd}]
│ ├─gvfsd-fuse───5*[{gvfsd-fuse}]
│ ├─indicator-appli───2*[{indicator-appli}]
│ ├─indicator-sound───3*[{indicator-sound}]
│ ├─xdg-desktop-por───4*[{xdg-desktop-por}]
│ ├─xdg-desktop-por───2*[{xdg-desktop-por}]
│ ├─xdg-document-po───5*[{xdg-document-po}]
│ ├─xdg-permission-───2*[{xdg-permission-}]
│ ├─xfce4-notifyd───2*[{xfce4-notifyd}]
│ └─xfconfd
├─systemd-journal
├─systemd-logind
├─systemd-resolve
├─systemd-timesyn───{systemd-timesyn}
├─systemd-udevd
├─thermald───{thermald}
├─udisksd───4*[{udisksd}]
├─unattended-upgr───{unattended-upgr}
├─update-notifier───3*[{update-notifier}]
├─upowerd───2*[{upowerd}]
├─whoopsie───2*[{whoopsie}]
├─wpa_supplicant
└─xfce4-power-man───2*[{xfce4-power-man}]
输出 journalctl -f
-- Logs begin at Thu 2020-04-16 14:32:57 CEST. --
Apr 16 18:03:57 yoshua systemd[1]: Starting Hostname Service...
Apr 16 18:03:57 yoshua dbus-daemon[885]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 16 18:03:57 yoshua systemd[1]: Started Hostname Service.
Apr 16 18:03:57 yoshua nautilus[2465]: Called "net usershare info" but it failed: Failed to execute child process “net” (No such file or directory)
Apr 16 18:04:06 yoshua eog[2493]: Failed to open file '/home/lars/.cache/thumbnails/normal/bd89ad6e4e39e613a580a0a13dc30c75.png': No such file or directory
Apr 16 18:04:16 yoshua org.gnome.Shell.desktop[1512]: libinput error: client bug: timer event11 debounce: offset negative (-234ms)
Apr 16 18:04:16 yoshua org.gnome.Shell.desktop[1512]: libinput error: client bug: timer event11 debounce: offset negative (-170ms)
Apr 16 18:04:16 yoshua org.gnome.Shell.desktop[1512]: libinput error: client bug: timer event11 debounce short: offset negative (-183ms)
Apr 16 18:04:20 yoshua org.gnome.Shell.desktop[1512]: libinput error: client bug: timer event11 debounce: offset negative (-1ms)
Apr 16 18:04:20 yoshua org.gnome.Shell.desktop[1512]: libinput error: client bug: timer event11 debounce short: offset negative (-15ms)
Apr 16 18:05:55 yoshua dbus-daemon[885]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.121' (uid=1000 pid=2149 comm="/usr/lib/firefox/firefox -new-window " label="unconfined")
Apr 16 18:05:55 yoshua systemd[1]: Starting Hostname Service...
Apr 16 18:05:55 yoshua dbus-daemon[885]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 16 18:05:55 yoshua systemd[1]: Started Hostname Service.
Apr 16 18:05:55 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:05:56 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:05:57 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:05:58 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:05:59 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:05:59 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:06:00 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:06:00 yoshua gvfsd[1528]: mkdir failed on directory /var/cache/samba: Permission denied
Apr 16 18:06:10 yoshua kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=22662 end=22663) time 111 us, min 1073, max 1079, scanline start 1072, end 1080
Apr 16 18:06:13 yoshua kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=22830 end=22831) time 357 us, min 1073, max 1079, scanline start 1072, end 1096
Apr 16 18:06:45 yoshua kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=24753 end=24754) time 239 us, min 1073, max 1079, scanline start 1066, end 1079
Apr 16 18:06:51 yoshua gnome-shell[1512]: Some code accessed the property 'WindowPreviewMenu' on the module 'windowPreview'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
EDIT: It is working fine now. No more peaks from one core, all are continuously working on a small level. The last thing I did was what @Gryu recommended: I switched into tty. Switched to lightdm sudo dpkg-reconfigure lightdm
which didn't change anything. I restarted and switched back to gdm3 via the same command.
I don't understand how this helped, but I am happy. Thanks you very much!
EDIT: The way I see it, I can avoid the problem if I shutdown using the physical power-off button. I don't know what to think about it, I just leave the info here.
You could try one or few of:
htop
to see what processes load your system and kill them to see what will happen: killall processname
or killall -9 processname
to kill it forcefully.sudo apt purge package_name && sudo apt autoremove && sudo apt install package_name
sudo apt update && sudo apt install intel-microcode microcode.ctl
gdm3
instead of lightdm
or vice versa, purging previous: sudo apt install gdm3 && sudo apt purge lightdm
sudo apt install lubuntu-desktop
and try it.xubuntu-desktop
or xfce4
as I was noticing that system lags when it is installed, however, not used: sudo apt purge xubuntu-desktop && sudo apt purge xfce*
My pstree -l
on 19.10 with gdm3:
├─gdm3─┬─gdm-session-wor─┬─gdm-x-session─┬─Xorg───{Xorg}
│ │ │ ├─gnome-session-b───3*[{gnome-session-b}]
│ │ │ └─2*[{gdm-x-session}]
│ │ └─2*[{gdm-session-wor}]
│ ├─gdm-session-wor─┬─gdm-x-session─┬─Xorg───{Xorg}
│ │ │ ├─gnome-session-b─┬─ssh-agent
│ │ │ │ └─2*[{gnome-session-b}]
│ │ │ └─2*[{gdm-x-session}]
│ │ └─2*[{gdm-session-wor}]
│ └─2*[{gdm3}]
My pstree -l
on 18.04 VM:
├─lightdm─┬─Xorg───5*[{Xorg}]
│ ├─lightdm─┬─lxsession─┬─lxpanel─┬─lxterminal─┬─bash───pstree
│ │ │ │ │ ├─bash
│ │ │ │ │ └─2*[{lxterminal}]
│ │ │ │ └─4*[{lxpanel}]
│ │ │ ├─lxpolkit───2*[{lxpolkit}]
│ │ │ ├─openbox───2*[{openbox}]
│ │ │ ├─pcmanfm───2*[{pcmanfm}]
│ │ │ ├─ssh-agent
│ │ │ └─2*[{lxsession}]
│ │ └─2*[{lightdm}]
│ └─2*[{lightdm}]
Run also journalctl -f
in a terminal to see what happens. Maybe some gnome-settings-daemon (gsd) constantly trying to do something and fails throwing errors and it takes the whole core.
切换到lightdm,看看事情会改变,但做一些TTY:Alt+ Ctrl+ F3:sudo apt purge gdm3 && sudo apt install lightdm
。您也可以在不删除gdm3的情况下执行此操作:sudo dpkg-reconfigure lightdm
如果已安装它。
sudo dpkg-reconfigure lightdm
reboot
sudo dpkg-reconfigure gdm3
也许切换到lightdm第四和gdm3,以某种方式更改了以前由不同的图形配置工具修改的gdm3配置。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句