18.04 - Ubuntu内核更新后,系统性能下降

分享于 

13分钟阅读

ubuntu

  繁體

问题:

昨天,我使用Software Updater安装了最新的内核更新。运行flightgear后整个系统性能降低了不少,回到先前的内核5.3.0 -45,问题消失了。


 Linux HP 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux



命令


 cat /var/log/dpkg.log



结果


2020-04-06 21:08:43 startup archives unpack


2020-04-06 21:08:44 install linux-modules-5.3.0-46-generic:amd64 <none> 5.3.0-46.38~18.04.1


2020-04-06 21:08:44 status half-installed linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:45 status unpacked linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:45 status unpacked linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:45 install linux-image-5.3.0-46-generic:amd64 <none> 5.3.0-46.38~18.04.1


2020-04-06 21:08:45 status half-installed linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:46 status unpacked linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:46 status unpacked linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:46 install linux-modules-extra-5.3.0-46-generic:amd64 <none> 5.3.0-46.38~18.04.1


2020-04-06 21:08:46 status half-installed linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:49 status unpacked linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:49 status unpacked linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:49 upgrade linux-generic-hwe-18.04:amd64 5.3.0.45.101 5.3.0.46.102


2020-04-06 21:08:49 status half-configured linux-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status unpacked linux-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status half-installed linux-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status half-installed linux-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status unpacked linux-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:49 status unpacked linux-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:49 upgrade linux-image-generic-hwe-18.04:amd64 5.3.0.45.101 5.3.0.46.102


2020-04-06 21:08:49 status half-configured linux-image-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status unpacked linux-image-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status half-installed linux-image-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status half-installed linux-image-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:49 status unpacked linux-image-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:49 status unpacked linux-image-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:49 install linux-headers-5.3.0-46:all <none> 5.3.0-46.38~18.04.1


2020-04-06 21:08:49 status half-installed linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1


2020-04-06 21:08:51 status unpacked linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1


2020-04-06 21:08:51 status unpacked linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1


2020-04-06 21:08:51 install linux-headers-5.3.0-46-generic:amd64 <none> 5.3.0-46.38~18.04.1


2020-04-06 21:08:51 status half-installed linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:52 status unpacked linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:52 status unpacked linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:52 upgrade linux-headers-generic-hwe-18.04:amd64 5.3.0.45.101 5.3.0.46.102


2020-04-06 21:08:52 status half-configured linux-headers-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:52 status unpacked linux-headers-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:52 status half-installed linux-headers-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:52 status half-installed linux-headers-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:52 status unpacked linux-headers-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:52 status unpacked linux-headers-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:52 upgrade linux-libc-dev:amd64 4.15.0-91.92 4.15.0-96.97


2020-04-06 21:08:52 status half-configured linux-libc-dev:amd64 4.15.0-91.92


2020-04-06 21:08:52 status unpacked linux-libc-dev:amd64 4.15.0-91.92


2020-04-06 21:08:53 status half-installed linux-libc-dev:amd64 4.15.0-91.92


2020-04-06 21:08:53 status half-installed linux-libc-dev:amd64 4.15.0-91.92


2020-04-06 21:08:53 status unpacked linux-libc-dev:amd64 4.15.0-96.97


2020-04-06 21:08:53 status unpacked linux-libc-dev:amd64 4.15.0-96.97


2020-04-06 21:08:53 upgrade linux-signed-generic-hwe-18.04:amd64 5.3.0.45.101 5.3.0.46.102


2020-04-06 21:08:53 status half-configured linux-signed-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:53 status unpacked linux-signed-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:53 status half-installed linux-signed-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:53 status half-installed linux-signed-generic-hwe-18.04:amd64 5.3.0.45.101


2020-04-06 21:08:53 status unpacked linux-signed-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:53 status unpacked linux-signed-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:08:53 startup packages configure


2020-04-06 21:08:53 configure linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1 <none>


2020-04-06 21:08:53 status unpacked linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 status half-configured linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 status installed linux-modules-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 configure linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1 <none>


2020-04-06 21:08:53 status unpacked linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 status half-configured linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 status installed linux-headers-5.3.0-46:all 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 configure linux-libc-dev:amd64 4.15.0-96.97 <none>


2020-04-06 21:08:53 status unpacked linux-libc-dev:amd64 4.15.0-96.97


2020-04-06 21:08:53 status half-configured linux-libc-dev:amd64 4.15.0-96.97


2020-04-06 21:08:53 status installed linux-libc-dev:amd64 4.15.0-96.97


2020-04-06 21:08:53 configure linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1 <none>


2020-04-06 21:08:53 status unpacked linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:53 status half-configured linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 status installed linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 status triggers-pending linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 configure linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1 <none>


2020-04-06 21:08:54 status unpacked linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 status half-configured linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 status installed linux-modules-extra-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 configure linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1 <none>


2020-04-06 21:08:54 status unpacked linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:08:54 status half-configured linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:09:45 status installed linux-headers-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:09:45 configure linux-headers-generic-hwe-18.04:amd64 5.3.0.46.102 <none>


2020-04-06 21:09:45 status unpacked linux-headers-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status half-configured linux-headers-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status installed linux-headers-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 configure linux-image-generic-hwe-18.04:amd64 5.3.0.46.102 <none>


2020-04-06 21:09:45 status unpacked linux-image-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status half-configured linux-image-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status installed linux-image-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 configure linux-generic-hwe-18.04:amd64 5.3.0.46.102 <none>


2020-04-06 21:09:45 status unpacked linux-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status half-configured linux-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status installed linux-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 configure linux-signed-generic-hwe-18.04:amd64 5.3.0.46.102 <none>


2020-04-06 21:09:45 status unpacked linux-signed-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status half-configured linux-signed-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 status installed linux-signed-generic-hwe-18.04:amd64 5.3.0.46.102


2020-04-06 21:09:45 trigproc linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1 <none>


2020-04-06 21:09:45 status half-configured linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1


2020-04-06 21:10:33 status installed linux-image-5.3.0-46-generic:amd64 5.3.0-46.38~18.04.1



更新之后,每当我运行Flightgear时,整个系统都会在几秒钟后卡住,每次大约5秒钟。

在运行flightgear之前编辑


$ sysctl vm.swappiness


vm.swappiness = 60



$ free -h


 total used free shared buff/cache available


Mem: 7,7G 2,3G 1,8G 427M 3,6G 4,7G


Swap: 4,0G 0B 4,0G



运行flightgear时


$ sysctl vm.swappiness


vm.swappiness = 60



$ free -h


 total used free shared buff/cache available


Mem: 7,7G 4,2G 452M 618M 3,0G 2,6G


Swap: 4,0G 218M 3,8G





答案1:

这绝对与更新有关:linux-image-5.3.0-46-generic,因为如果我重新启动计算机,到grub菜单并选择上一个内核:linux-image-5.3.0-42-generic,一切恢复正常,我可以玩Flightgear。


答案2:

我可以确认有同样的内核问题。5.3.0 -46切换回x.45恢复正常。



SYS  系统  PERF  Ubuntu  性能  内核  
相关文章