systemd-logind.service系统占用率高该如何解决
发表于 : 2021-06-04 16:41
我当前使用的debian10的系统,看到系统内systemd-logind.service服务占用的cpu和硬盘资源都很高,查看服务状态,好像是有权限不够,导致一直在输出日志内容的感觉,需要如何设置将systemd-logind.service服务权限提升或者彻底禁用该服务?
我尝试使用systemctl stop systemd-logind.service 和systemctl disable systemd-logind.service禁用服务,不过我ssh远程登录后,服务还是会起来
系统内看到的日志如下:
(base) proust@debian:~$ sudo systemctl status systemd-logind.service
● systemd-logind.service - Login Service
Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor preset: enabled)
Active: active (running) since Fri 2021-06-04 14:54:35 CST; 1h 30min ago
Docs: man:systemd-logind.service(8)
man:logind.conf(5)
https://www.freedesktop.org/wiki/Softwa ... emd/logind
https://www.freedesktop.org/wiki/Softwa ... /multiseat
Main PID: 5137 (systemd-logind)
Status: "Processing requests..."
Tasks: 1 (limit: 4637)
Memory: 2.0M
CGroup: /system.slice/systemd-logind.service
└─5137 /lib/systemd/systemd-logind
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
6月 04 16:25:15 debian systemd-logind[5137]: Suspending...
6月 04 16:25:15 debian systemd-logind[5137]: Unit suspend.target is masked, refusing operation.
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
6月 04 16:25:15 debian systemd-logind[5137]: Suspending...
6月 04 16:25:15 debian systemd-logind[5137]: Unit suspend.target is masked, refusing operation.
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
6月 04 16:25:15 debian systemd-logind[5137]: Suspending...
6月 04 16:25:15 debian systemd-logind[5137]: Unit suspend.target is masked, refusing operation.
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
我尝试使用systemctl stop systemd-logind.service 和systemctl disable systemd-logind.service禁用服务,不过我ssh远程登录后,服务还是会起来
系统内看到的日志如下:
(base) proust@debian:~$ sudo systemctl status systemd-logind.service
● systemd-logind.service - Login Service
Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor preset: enabled)
Active: active (running) since Fri 2021-06-04 14:54:35 CST; 1h 30min ago
Docs: man:systemd-logind.service(8)
man:logind.conf(5)
https://www.freedesktop.org/wiki/Softwa ... emd/logind
https://www.freedesktop.org/wiki/Softwa ... /multiseat
Main PID: 5137 (systemd-logind)
Status: "Processing requests..."
Tasks: 1 (limit: 4637)
Memory: 2.0M
CGroup: /system.slice/systemd-logind.service
└─5137 /lib/systemd/systemd-logind
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
6月 04 16:25:15 debian systemd-logind[5137]: Suspending...
6月 04 16:25:15 debian systemd-logind[5137]: Unit suspend.target is masked, refusing operation.
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
6月 04 16:25:15 debian systemd-logind[5137]: Suspending...
6月 04 16:25:15 debian systemd-logind[5137]: Unit suspend.target is masked, refusing operation.
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied
6月 04 16:25:15 debian systemd-logind[5137]: Suspending...
6月 04 16:25:15 debian systemd-logind[5137]: Unit suspend.target is masked, refusing operation.
6月 04 16:25:15 debian systemd-logind[5137]: Failed to execute operation: Permission denied