2019-12-20, 15:59
I have Kodi running on 3 boxes, all running Ubuntu & all are updated with latest packages etc. All run Kodi 18.5. One of them has started to experience high CPU whenever Kodi is running, even when it's not really doing anything. By "high", I mean the kodi-x11 process uses 130% CPU on my 2-CPU machine.
This machine was running Ubuntu 16.04, and everything was fine until a few days ago. I became aware of excessive fan noise and found that the CPU was always at this high level, even when Kodi was idle. This problem started "fairly recently", but unfortunately I cannot pinpoint anything that might have happened on the system to cause it. I am pretty certain it did not occur on Kodi 18.4, but cannot be certain that the problem started right after upgrading to 18.5. I upgraded the system to Ubuntu 18.04 in an attempt to resolve, but no luck.
Other boxes are running Ubuntu, 18.04 or 19.10, and Kodi 18.5, with no problems.
I ran "strace" on the Kodi process in an attempt to get more details on what exactly is causing the high CPU. Output of that is as follows:
"poll" appears to be the culprit.
I've enabled debug logging, and turned on verbose logging for all the various components, but I don't get any information that would immediately point to a problem.
Can anyone suggest what might be going on or how I could troubleshoot this further?
Can anyone suggest
This machine was running Ubuntu 16.04, and everything was fine until a few days ago. I became aware of excessive fan noise and found that the CPU was always at this high level, even when Kodi was idle. This problem started "fairly recently", but unfortunately I cannot pinpoint anything that might have happened on the system to cause it. I am pretty certain it did not occur on Kodi 18.4, but cannot be certain that the problem started right after upgrading to 18.5. I upgraded the system to Ubuntu 18.04 in an attempt to resolve, but no luck.
Other boxes are running Ubuntu, 18.04 or 19.10, and Kodi 18.5, with no problems.
I ran "strace" on the Kodi process in an attempt to get more details on what exactly is causing the high CPU. Output of that is as follows:
Code:
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
73.41 0.131024 339 386 poll
15.92 0.028415 19 1534 nanosleep
4.45 0.007948 0 17491 clock_gettime
2.65 0.004729 13 371 ioctl
1.52 0.002717 679 4 munmap
1.24 0.002206 2 1460 read
0.23 0.000406 1 374 lseek
0.23 0.000403 2 227 12 futex
0.20 0.000349 1 362 362 recvmsg
0.11 0.000203 0 722 getpid
0.04 0.000074 37 2 mmap
0.00 0.000005 3 2 fstat
0.00 0.000001 1 1 writev
0.00 0.000000 0 2 getrusage
0.00 0.000000 0 1 restart_syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.178480 22939 374 total
I've enabled debug logging, and turned on verbose logging for all the various components, but I don't get any information that would immediately point to a problem.
Can anyone suggest what might be going on or how I could troubleshoot this further?
Can anyone suggest