Ubuntu 在我的笔记本电脑上运行缓慢

Ubuntu 在我的笔记本电脑上运行缓慢

我需要一些帮助。几个月前,我在我的笔记本电脑(HP 15-CS1022NL)上安装了 Ubuntu,其规格如下:

英特尔 i7 第 8 代

16GB 内存

512GB 固态硬盘

Nvidia GeForce GTX 1050

自从第一次安装(Ubuntu 18.04 到现在的 Ubuntu 19.10)以来,我就遇到了问题。系统似乎在滚动、网页导航等简单操作中滞后。这种情况不是随时都会发生的。有时我启动我的电脑,它没有问题,没有滞后,一切都运行良好。我不知道为什么会这样。

另一件要与您分享的事情是:Ubuntu 安装在与 Windows 双启动的 SSD 上(我不知道这是否重要)并且我注意到,也许,在从系统挂起唤醒或关闭并重新打开盖子后似乎会出现滞后。

你能帮我吗?我能检查一下是否有问题吗?

如果需要的话我可以和你分享更多信息。谢谢。

编辑1:

free -h

total        used        free      shared  buff/cache   available
Mem:         15Gi       1,5Gi        11Gi       312Mi       2,6Gi        13Gi
Swap:       3,8Gi          0B       3,8Gi
sysctl vm.swappiness

vm.swappiness = 60
dpkg -l *nvidia* | grep ii

ii  libnvidia-cfg1-435:amd64         435.21-0ubuntu2 amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-430             430.50-0ubuntu2 all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-435             435.21-0ubuntu2 all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-435:amd64      435.21-0ubuntu2 amd64        NVIDIA libcompute package
ii  libnvidia-compute-435:i386       435.21-0ubuntu2 i386         NVIDIA libcompute package
ii  libnvidia-decode-435:amd64       435.21-0ubuntu2 amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-435:i386        435.21-0ubuntu2 i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-435:amd64       435.21-0ubuntu2 amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-435:i386        435.21-0ubuntu2 i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-435:amd64         435.21-0ubuntu2 amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-435:i386          435.21-0ubuntu2 i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-435:amd64           435.21-0ubuntu2 amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-435:i386            435.21-0ubuntu2 i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-435:amd64         435.21-0ubuntu2 amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-435:i386          435.21-0ubuntu2 i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-435         435.21-0ubuntu2 amd64        NVIDIA compute utilities
ii  nvidia-dkms-435                  435.21-0ubuntu2 amd64        NVIDIA DKMS package
ii  nvidia-driver-435                435.21-0ubuntu2 amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-435         435.21-0ubuntu2 amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-435         435.21-0ubuntu2 amd64        NVIDIA kernel source package
ii  nvidia-prime                     0.8.13          all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                  435.21-0ubuntu2 amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-435                 435.21-0ubuntu2 amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-435    435.21-0ubuntu2 amd64        NVIDIA binary Xorg driver

我不知道我的 SSD 固件是否是最新的。我可以检查一下吗?

sudo dmidecode -s bios-version

F.08

编辑2:

sudo blkid

/dev/nvme0n1p5: UUID="f14e8c9f-195b-4311-8c05-2c78ff9fe41f" TYPE="swap" PARTUUID="fa0c46ba-60d4-430c-a304-a2d5e87ba963"
/dev/nvme0n1p6: UUID="741f2223-7c95-4527-bf53-d57d98623914" TYPE="ext4" PARTUUID="eab21086-c1fe-43be-87ba-699ddff72743"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/nvme0n1p1: LABEL="SYSTEM" UUID="3E98-4934" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="3a3bb770-f12d-4e69-9155-4c8870fe9024"
/dev/nvme0n1p3: LABEL="Windows" UUID="E8A6AAE9A6AAB808" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="96ef921f-e645-4b3a-a843-92125ddb3dbe"
/dev/nvme0n1p4: LABEL="Windows RE tools" UUID="0EE83CEDE83CD4A5" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6dbe4e81-bcce-4f09-aff6-2e37a2668697"
/dev/nvme0n1p7: UUID="eeaa5a2b-c724-4bef-96b4-76940b098ba4" TYPE="ext4" PARTUUID="6f3dda6d-f838-4091-a15d-fcc073049d78"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="735fe8bb-bc65-44e6-8dc4-e529a78981a5"
cat /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p6 during installation
UUID=741f2223-7c95-4527-bf53-d57d98623914 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=3E98-4934  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/nvme0n1p7 during installation
UUID=eeaa5a2b-c724-4bef-96b4-76940b098ba4 /home           ext4    defaults        0       2
# swap was on /dev/nvme0n1p5 during installation
UUID=f14e8c9f-195b-4311-8c05-2c78ff9fe41f none            swap    sw              0       0
cat /etc/initramfs-tools/conf.d/resume

该文件不存在。

编辑3:

sudo sysctl vm.swappiness=10

这不管用。

top命令中我注意到有许多进程的 CPU 使用率很高:

  • 韓國:当我使用 Firefox 和 IntelliJ 等应用程序并快速(有意)滚动屏幕时,它会冻结 1 或 2 秒,我可以从 top 命令中看到 Xorg 的 CPU 平均使用率为 80%(最高为 100%)。
  • 网页内容:使用 Firefox 时很多时候会出现 CPU 使用率达到 70%(平均)的情况。

这可能是问题吗?

编辑4:

ls -al ~/.local/share/gnome-shell/extensions

totale 12
drwxr-xr-x 3 framan framan 4096 feb  3 16:18 .
drwx------ 3 framan framan 4096 feb 13 19:49 ..
drwxr-xr-x 5 framan framan 4096 feb  3 16:18 [email protected]

free -h我使用了。watch -n .5 free -h当系统滞后时,它是一样的,如下所示:

              total        used        free      shared  buff/cache   available
Mem:           15Gi       1,4Gi        12Gi       255Mi       1,7Gi        13Gi
Swap:         3,8Gi          0B       3,8Gi

答案1

我的问题没有解决,因为我没有找到原因。

但是我现在安装了 Ubuntu 18.04,它似乎没有出现延迟问题。

编辑1

从几天前开始,Ubuntu 18.04 也出现了延迟问题。有时候有,有时候没有。

相关内容