/usr/lib/deepin-daemon/dde-session-daemon cpu40% 这个是怎么回事?
Tofloor
poster avatar
sjtlqy
deepin
2018-01-10 01:13
Author
本帖最后由 sjtlqy 于 2018-1-9 17:18 编辑

/usr/lib/deepin-daemon/dde-session-daemon cpu40%  这个是怎么回事?


求老王解释

Reply Favorite View the author
All Replies
avatar
aida
deepin
2018-01-10 01:48
#1
你进行了什么操作?
你把整个Top截图发出来一下。
Reply View the author
avatar
sjtlqy
deepin
2018-01-10 01:52
#2
https://bbs.deepin.org/post/151482
你进行了什么操作?
你把整个Top截图发出来一下。

没任何操作,╮(╯▽╰)╭
Reply View the author
avatar
duanyao
deepin
2018-01-10 01:59
#3
https://bbs.deepin.org/post/151482
没任何操作,╮(╯▽╰)╭

执行这个看一下(如果进程号已经不是5041,请相应修改):
strace -p 5041
Reply View the author
avatar
sjtlqy
deepin
2018-01-10 02:17
#4
本帖最后由 sjtlqy 于 2018-1-9 18:19 编辑
  1. strace: Process 5883 attached
  2. ^Cstrace: Process 5883 detached
  3. % time     seconds  usecs/call     calls    errors syscall
  4. ------ ----------- ----------- --------- --------- ----------------
  5. 96.38    0.447642         199      2251        96 futex
  6.   2.46    0.011445           2      4983           write
  7.   0.54    0.002514           1      3827        60 recvmsg
  8.   0.45    0.002084           1      1407           epoll_wait
  9.   0.17    0.000789           1       918           pselect6
  10.   0.00    0.000000           0      1906         5 read
  11.   0.00    0.000000           0        80           sched_yield
  12. ------ ----------- ----------- --------- --------- ----------------
  13. 100.00    0.464474                 15372       161 total
Copy the Code
Reply View the author
avatar
sjtlqy
deepin
2018-01-10 02:24
#5
本帖最后由 sjtlqy 于 2018-1-9 18:25 编辑
  1. recvmsg(38, {msg_name={sa_family=AF_UNIX, sun_path="/var/run/dbus/system_bus_socket"}, msg_namelen=112->34, msg_iov=[{iov_base="l\2\1\1\6\0\0\0\252\263,\0/\0\0\0", iov_len=16}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 16
  2. recvmsg(38, {msg_name={sa_family=AF_UNIX, sun_path="/var/run/dbus/system_bus_socket"}, msg_namelen=112->34, msg_iov=[{iov_base="\1n\0\0\272\377", iov_len=6}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 6
  3. recvmsg(38, {msg_name={sa_family=AF_UNIX, sun_path="/var/run/dbus/system_bus_socket"}, msg_namelen=112->34, msg_iov=[{iov_base="l\2\1\1\6\0\0\0\261\263,\0/\0\0\0", iov_len=16}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 16
  4. ^Cstrace: Process 5883 detached
Copy the Code



sudo strace -e trace=network  -p 5883

为什么我怀疑像后门呢?
Reply View the author
avatar
yanbowen
deepin
Community Developer
2018-01-10 03:51
#6
https://bbs.deepin.org/post/151482
sudo strace -e trace=network  -p 5883

为什么我怀疑像后门呢?

看起来是dbus调用,使用 dbus-monitor 看下谁在调用
Reply View the author
avatar
sjtlqy
deepin
2018-01-10 05:22
#7
https://bbs.deepin.org/post/151482
看起来是dbus调用,使用 dbus-monitor 看下谁在调用

大佬们, 你们这bug 2017年一直有啊
Reply View the author
avatar
yanbowen
deepin
Community Developer
2018-01-10 17:23
#8
https://bbs.deepin.org/post/151482
大佬们, 你们这bug 2017年一直有啊

内部无法重现, 至今没有找到重现的方法
Reply View the author
avatar
37******07@qq.com
deepin
2018-01-10 22:37
#9
https://bbs.deepin.org/post/151482
你进行了什么操作?
你把整个Top截图发出来一下。

这个bug可真称得上历史悠久了,是不是有什么死循环之类的?建议把整个代码好好捋一下,实在不行重构吧
Reply View the author
avatar
37******07@qq.com
deepin
2018-01-10 22:42
#10
https://bbs.deepin.org/post/151482
你进行了什么操作?
你把整个Top截图发出来一下。

还有一件事,说了您别不爱听,不开任何程序的时候,咱们deepin比fedora上的kde桌面占用资源多,这个我以前也说过,
咱们这桌面还是要多做优化.
Reply View the author