[Seek Help] deepin-anything-tool --dbus 的cpu使用率100%
Tofloor
poster avatar
fedora
deepin
2022-07-23 22:53
Author

deepin-anything-tool --dbus 的cpu使用率100%

无法截图上传,提示(图片有违法违规内容)


song@song-PC:~$ top

top - 14:50:07 up 24 min, 1 user, load average: 1.39, 1.58, 1.31
Tasks: 351 total, 2 running, 349 sleeping, 0 stopped, 0 zombie
%Cpu(s): 13.7 us, 1.9 sy, 0.0 ni, 84.2 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
MiB Mem : 15710.1 total, 8358.3 free, 2609.4 used, 4742.4 buff/cache
MiB Swap: 33792.0 total, 33792.0 free, 0.0 used. 12558.4 avail Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                              

5112 root 20 0 234292 114304 14524 R 100.0 0.7 23:54.54 deepin-anything-tool --dbus
519 root -51 0 0 0 0 D 11.3 0.0 0:15.24 [irq/166-elan_i2]
32571 song 20 0 1918092 122136 89044 S 6.0 0.8 0:04.77 /usr/bin/deepin-system-monitor

Reply Favorite View the author
All Replies
心平气和
deepin
2022-07-23 23:51
#1

老毛病了

Reply View the author
depend
deepin
2022-07-23 23:56
#2

老毛病了

Reply View the author
xuqi
deepin testing team
2022-07-24 16:03
#3

confused

Reply View the author
wangr1069
deepin
2022-07-26 18:02
#4
deepin-anything 是用来搜索文件的,所以有时候会创建和更新文件索引,在系统空闲的时候,这会导致 CPU% 达到 100%,正常情况下过一段时间后就会下降至 0% 左右。
 
后面系统更新会限制服务的资源使用(包括 CPU),应该会有所改善。
 
如果 deepin-anything 影响到正常使用,可采用以下方法限制 deepin-anything 运行
方法1 调低 nice 值,降低运行优先级
    sudo renice +19 -p `pgrep -f "deepin-anything-tool --dbus"`
方法2 使用 cgroups,限制 CPU 使用
    sudo vim /lib/systemd/system/deepin-anything-tool.service
        在 [Service] 下一行添加 CPUWeight=25
    重启服务
        sudo systemctl daemon-reload
        sudo systemctl restart deepin-anything-tool.service
 
Reply View the author
༺ཌༀཉི程汝恩༃ༀད༻
deepin
2023-11-30 17:19
#5
wangr1069
deepin-anything 是用来搜索文件的,所以有时候会创建和更新文件索引,在系统空闲的时候,这会导致 CPU% 达到 100%,正常情况下过一段时间后就会下降至 0% 左右。
 
后面系统更新会限制服务的资源使用(包括 CPU),应该会有所改善。
 
如果 deepin-anything 影响到正常使用,可采用以下方法限制 deepin-anything 运行
方法1 调低 nice 值,降低运行优先级
    sudo renice +19 -p `pgrep -f "deepin-anything-tool --dbus"`
方法2 使用 cgroups,限制 CPU 使用
    sudo vim /lib/systemd/system/deepin-anything-tool.service
        在 [Service] 下一行添加 CPUWeight=25
    重启服务
        sudo systemctl daemon-reload
        sudo systemctl restart deepin-anything-tool.service
 

两个方法都试了,立马见效,好药好药agree

Reply View the author