Hi guys. I'm running libreelec 9.2.1 on raspberry pi 4b 4GB. I also have the docker addon installed with home assistant and nginx letsencrypt. when i run the top command, i get this results.
When idle, kodi.bin cpu usage is about 40 - 50%
Code
top - 09:51:45 up 1 day, 16:55, 2 users, load average: 1.02, 1.60, 1.20
Tasks: 140 total, 1 running, 139 sleeping, 0 stopped, 0 zombie
%Cpu(s): 11.1 us, 0.8 sy, 0.0 ni, 87.5 id, 0.6 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3662.4 total, 815.2 free, 499.6 used, 2347.5 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 2954.2 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
685 root 20 0 1127352 293188 50628 S 44.9 7.8 828:06.92 kodi.bin
511 root 20 0 2924 1728 1484 S 0.7 0.0 0:00.94 top
642 root 20 0 2948 1816 1400 R 0.7 0.0 0:00.09 top
1075 root 20 0 218416 100432 20432 S 0.7 2.7 39:18.39 python3
23 root 0 -20 0 0 0 I 0.3 0.0 0:04.91 kworker/2:0H-kblockd
84 root 1 -19 0 0 0 S 0.3 0.0 8:17.18 vchiq-slot/0
352 root 20 0 963768 48704 34436 S 0.3 1.3 10:39.87 dockerd
377 root 20 0 970832 25616 19492 S 0.3 0.7 8:05.82 containerd
501 root 20 0 5244 4004 3608 S 0.3 0.1 0:00.22 sshd
18736 root 20 0 24368 11128 4800 S 0.3 0.3 9:03.62 f2b/server
22626 root 20 0 0 0 0 I 0.3 0.0 0:05.04 kworker/2:1-events_power_efficient
31658 root 0 -20 0 0 0 I 0.3 0.0 0:00.18 kworker/0:2H-mmc_complete
32509 root 20 0 0 0 0 I 0.3 0.0 0:00.93 kworker/0:3-events
1 root 20 0 25572 5592 4656 S 0.0 0.1 0:04.34 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.12 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0.0 0.0 0:07.93 ksoftirqd/0
10 root 20 0 0 0 0 I 0.0 0.0 1:52.29 rcu_sched
11 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_bh
12 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
15 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/1
16 root 20 0 0 0 0 S 0.0 0.0 0:01.51 ksoftirqd/1
19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
20 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/2
21 root 20 0 0 0 0 S 0.0 0.0 0:01.49 ksoftirqd/2
24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/3
25 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/3
26 root 20 0 0 0 0 S 0.0 0.0 0:01.35 ksoftirqd/3
29 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
30 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
35 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
36 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback
37 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kcompactd0
38 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 crypto
39 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd
40 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd
41 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rpciod
42 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/u9:0-hci0
43 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 xprtiod
48 root 20 0 0 0 0 S 0.0 0.0 0:03.18 kswapd0
49 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 nfsiod
50 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cifsiod
51 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cifsoplockd
80 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 iscsi_eh
Display More
When playing a video from local library, the kodi.bin's cpu usage drops to about 20% - 30%
Code
top - 10:00:10 up 1 day, 17:03, 2 users, load average: 2.28, 1.80, 1.48
Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.4 us, 1.7 sy, 0.0 ni, 72.2 id, 22.7 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3662.4 total, 788.1 free, 511.3 used, 2363.0 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 2950.4 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
685 root 20 0 1198456 304212 50628 D 21.6 8.1 831:23.38 kodi.bin
84 root 1 -19 0 0 0 S 0.7 0.0 8:19.56 vchiq-slot/0
1075 root 20 0 218056 100280 20432 S 0.7 2.7 39:25.63 python3
10 root 20 0 0 0 0 I 0.3 0.0 1:53.54 rcu_sched
88 root 10 -10 0 0 0 S 0.3 0.0 1:04.18 SMIO
97 root -2 0 0 0 0 S 0.3 0.0 0:03.74 v3d_bin
98 root -2 0 0 0 0 S 0.3 0.0 0:04.96 v3d_render
352 root 20 0 963768 48704 34436 S 0.3 1.3 10:41.82 dockerd
377 root 20 0 970832 25616 19492 S 0.3 0.7 8:07.36 containerd
511 root 20 0 2924 1728 1484 S 0.3 0.0 0:04.53 top
1 root 20 0 25572 5592 4656 S 0.0 0.1 0:04.34 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.12 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0.0 0.0 0:07.98 ksoftirqd/0
11 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_bh
12 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
15 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/1
16 root 20 0 0 0 0 S 0.0 0.0 0:01.53 ksoftirqd/1
19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
20 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/2
21 root 20 0 0 0 0 S 0.0 0.0 0:01.51 ksoftirqd/2
23 root 0 -20 0 0 0 I 0.0 0.0 0:04.93 kworker/2:0H-kblockd
24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/3
25 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/3
26 root 20 0 0 0 0 S 0.0 0.0 0:01.35 ksoftirqd/3
29 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
30 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
35 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
36 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback
37 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kcompactd0
38 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 crypto
39 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd
40 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd
41 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rpciod
42 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/u9:0-hci0
43 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 xprtiod
48 root 20 0 0 0 0 S 0.0 0.0 0:03.18 kswapd0
49 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 nfsiod
50 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cifsiod
51 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cifsoplockd
80 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 iscsi_eh
83 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 DWC Notificatio
85 root 1 -19 0 0 0 S 0.0 0.0 0:08.22 vchiq-recy/0
86 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 vchiq-sync/0
Display More
When the video stops playing, it bumps back up to about 40 % ?
I'm not sure how this works. Is that how it should be? is 40% cpu usage on idle too high?
Best regards,
Anand