[Freezing/Lagging] 系统每次进入休眠再次打开,就会有两个进程占用很高导致系统卡死
Tofloor
poster avatar
王大海
deepin
2022-12-18 18:01
Author

【系统环境】
镜像版本:社区版20.7.1
CPU:i5-9300H
GPU:GH630,GTX1650

【操作步骤】
在日常工作情况下突然临时有事需要离开一下,也不知道多会回来,索性就让他休眠,等下次在打开的时候,电脑就变得非常卡,用top看了下进程管理,发现有两个进程占用率非常高,负载也越来越高,刚开始还能操作,再等一会就完全卡死,论怎么操作都没用,只能强制关机。

【问题现象】

这俩进程都是root用户的,只在休眠后再次开机就会出现这两个进程。

截图_选择区域_20221218095744.png

Reply Favorite View the author
All Replies
晚秋(lateautumn)
Moderator
2022-12-18 18:07
#1

看不懂,得需要坛神来把脉,我还没出现过这类问题,V20.6时,经常因为过热死机,但现在无论V20.8还是V23都没问题了。

Reply View the author
zhangn1985
deepin
2022-12-18 19:24
#2

rsyslogd这个软件包可以删掉

cat /etc/systemd/journald.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the journald.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
#
# See journald.conf(5) for details.

[Journal]
Storage=volatile  #<< 这行改成这个,不把日志写入磁盘。
#Compress=yes
#Seal=yes
Reply View the author
王大海
deepin
2022-12-23 19:13
#3

我的电脑用了上面兄弟的方法还是不行,休眠在启动依然占用高,不过我在网上找到一个永久解决systemd-journald cpu占用高的问题

Linux系统中 systemd-journaldCPU占用异常的解决方法

这里总结一下:

只需要禁用日志就好了:systemctl mask systemd-journald

Reply View the author