default NPU frequence is 600Mhz( can be checked in /sys/class/devfreq/fde40000.npu/cur_freq), and it takes around 50ms with one 480x480 picture inference. I changed the governor to “userspace”, and set the frequency in /sys/class//devfreq/fde40000.npu/userspace/set_frequency to “900000000”, and I could see cur_freq is 900M, but the field test show nothing improvement (still 50ms per picture), anything wrong with my configuration? thanks
RK3568 NPU frequency cannot improve the NPU performance
Hi,
I’m trying to reproduce your issue.
Please tell me your board and system image.
If could, provide more details about your operation to help reproduce the issue.
Hi I have a Rock3A board, 2G RAM, rock-3a-ubuntu-focal-server-arm64-20221101-0219-gpt.img;
here is the command sequence:
rock@rock-3a:~$ cat /sys/class/devfreq/fde40000.npu/cur_freq
600000000
rock@rock-3a:~$ cat /sys/class/devfreq/fde40000.npu/governor
userspace
rock@rock-3a:~$ cat /sys/class/devfreq/fde40000.npu/userspace/set_freq
undefined
rock@rock-3a:~$ sudo su
[sudo] password for rock:
root@rock-3a:/home/rock# echo 900000000 > /sys/class/devfreq/fde40000.npu/userspace/set_freq
root@rock-3a:/home/rock# cat /sys/class/devfreq/fde40000.npu/userspace/set_freq
900000000
root@rock-3a:/home/rock# cat /sys/class/devfreq/fde40000.npu/cur_freq
900000000
after this, I start my program, and the inference time is almost the same.
Thanks.
Is the number in cur_freq the real running frequency of NPU? please help to check and confirm, thanks.
Hi Stephen, any progress? thanks