Page 1 of 1

CPU usage peak after RkLunch.sh

Posted: 2026-04-04 16:23
by nulon443
Hi,

I am using pico ultra w with buildroot. After boot CPU usage is around 7%.

top - 00:18:07 up 21 min, 1 user, load average: 10.19, 9.97, 7.55
Tasks: 93 total, 1 running, 92 sleeping, 0 stopped, 0 zombie
%Cpu0 : 2.9/2.9 6[|||| ]
GiB Mem : 20.6/0.2 [ ]
GiB Swap: 0.0/0.0 [ ]

PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND
473 root 20 0 74.5m 13.1m 7.2 7.6 1:31.48 S rkipc -a /oem/usr/share/iqfiles
262 root -91 0 0.0m 0.0m 2.6 0.0 0:32.02 S [vcodec_thread_0]
3870 root 20 0 3.1m 1.2m 2.0 0.7 0:00.34 R top
259 root -96 0 0.0m 0.0m 0.7 0.0 0:08.72 S [queue_work0]
276 root 20 0 0.0m 0.0m 0.7 0.0 0:01.22 D [rkisp-vir0]
5 root 20 0 0.0m 0.0m 0.0 0.0 0:00.02 I [kworker/u2:0-events_unbound]
1 root 20 0 1.6m 0.8m 0.0 0.5 0:00.56 S init
2 root 20 0 0.0m 0.0m 0.0 0.0 0:00.00 S [kthreadd]


when I execute RkLunch-stop.sh - it drops to 4-5, or stays the same (7%).

top - 00:19:13 up 22 min, 2 users, load average: 10.06, 9.97, 7.72
Tasks: 94 total, 1 running, 93 sleeping, 0 stopped, 0 zombie
%Cpu0 : 2.6/1.3 4[|| ]
GiB Mem : 16.8/0.2 [ ]
GiB Swap: 0.0/0.0 [ ]

PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND
488 root 20 0 3.1m 1.3m 1.3 0.7 0:00.14 R top
1 root 20 0 1.6m 0.8m 0.0 0.5 0:00.56 S init
2 root 20 0 0.0m 0.0m 0.0 0.0 0:00.00 S [kthreadd]
5 root 20 0 0.0m 0.0m 0.0 0.0 0:00.03 I [kworker/u2:0-events_unbound]
7 root 20 0 0.0m 0.0m 0.0 0.0 0:00.76 S [ksoftirqd/0]
8 root 20 0 0.0m 0.0m 0.0 0.0 0:00.00 S [kdevtmpfs]
9 root 20 0 0.0m 0.0m 0.0 0.0 0:00.00 S [oom_reaper]
6 root 0 -20 0.0m 0.0m 0.0 0.0 0:00.00 I [mm_percpu_wq]

Then after around 20s I run RkLunch.sh. And in most majority of time I am getting CPU usage around 30%

top - 00:20:33 up 23 min, 2 users, load average: 10.39, 10.08, 7.94
Tasks: 97 total, 1 running, 96 sleeping, 0 stopped, 0 zombie
%Cpu0 : 23.8/4.2 28[||||||||||||||| ]
GiB Mem : 21.0/0.2 [ ]
GiB Swap: 0.0/0.0 [ ]

PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND
929 root 20 0 74.5m 12.7m 7.2 7.4 0:02.58 S rkipc -a /oem/usr/share/iqfiles
262 root -91 0 0.0m 0.0m 2.6 0.0 0:34.18 S [vcodec_thread_0]
1146 root 20 0 3.1m 1.2m 2.0 0.7 0:00.36 R top
259 root -96 0 0.0m 0.0m 1.3 0.0 0:09.28 S [queue_work0]
3923 root 20 0 0.0m 0.0m 0.7 0.0 0:00.04 I [kworker/0:0-events_freezable]
1 root 20 0 1.6m 0.8m 0.0 0.5 0:00.56 S init
5 root 20 0 0.0m 0.0m 0.0 0.0 0:00.03 I [kworker/u2:0-events_unbound]
10 root 0 -20 0.0m 0.0m 0.0 0.0 0:00.00 I [writeback]

Why is it happening? Is there any explanation?

Maybe I should use pkill to stop rkipc and start it manually, not via RkLunch.sh script?

Re: CPU usage peak after RkLunch.sh

Posted: 2026-04-09 6:26
by nulon443
Some updates - this is happening randomly also when just rebooting device. Sometimes it uses 5-7% CPU, sometimes ~25-30.

After fresh restart (with reboot)

Tasks: 100 total, 2 running, 98 sleeping, 0 stopped, 0 zombie
%Cpu0 : 22.1/4.1 26[|||||||||||||| ]
GiB Mem : 20.1/0.2 [ ]
GiB Swap: 0.0/0.0 [ ]


when I am moving the camera:

%Cpu0 : 4.2/25.3 30[|||||||||||||||| ]
GiB Mem : 20.1/0.2 [ ]
GiB Swap: 0.0/0.0 [ ]

User time CPU switches with kernel time CPU. Are there any initialization conditions that may cause higher CPU usage in some cases? How to debug it?

Re: CPU usage peak after RkLunch.sh

Posted: 2026-04-13 3:41
by Crocodile
Many factors affect the CPU. At present, we can only confirm that the rkipc function is not affected.
Changes in CPU usage are mainly related to rkipc, which calls many Rockchip closed‑source libraries to drive various rkmpi components.However, Rockchip’s closed‑source libraries and rkmpi component drivers do not provide sufficient source code information, so there are no proper debugging methods available for now.