-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imxvpudec_jpeg consumes more CPU than jpegdec on i.MX8 #313
Comments
@dv1 any suggestions? anything wrong with my setup or this is expected behaviour. do you have any benchmarks? |
This could be because of cache issues. It is worth investigating though. What machine is this exactly? imx8m mini? imx8mq? imx8m plus? |
it's i.MX8M Data Sheet: https://coral.ai/docs/dev-board/datasheet/#system-components |
hi @dv1 do we have any progress, did you manage to reproduce? |
I tried to replicate this, no luck so far. I attempted this with 2 USB webcams. The Logitech C920 showed slightly higher CPU% with
Replace I ran this on an imx8mq EVK. What camera did you use? And what versions of libimxvpuapi and gstreamer-imx are you using? |
The key is in the resolution. the higher the resolution is the bigger the performance degradation. The test case reported is with |
sorry I forgot to mention: |
And what camera is this? Is it a USB camera? If so, what model? Or is it a camera that is connected through some other means? |
It's 4k USB camera Hama c-900 pro: I'm looking for a way to convert 30fps 4k jpeg into RGB and then apply ML on the images. |
Hello @dv1 |
@NIKovachev I finally got to check this out again. Since I do not have that webcam, I did this instead: I created a test 4K MJPEG file with this pipeline:
Then I played this on the imx8mq EVK:
I see CPU usage of about 10% in htop. Then, with
This saturates the thread - 100% CPU. So, in your case, I suspect that it might be USB related, actually. I do not know if USB 3.0 suffers from the same CPU usage problem as USB 2.0 does (that is, the CPU has to parse the USB packets, which is costly when large 4K frames are sent through those packets). If you can, produce the following:
|
Hello,
imxvpudec_jpeg (83% CPU) consumes more CPU than jpegdec (67% CPU), what could be the reason? I was expecting the opposite.
imxvpudec_jpeg:
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
413 root 20 0 339M 28652 10300 S 83.2 0.7 0:08.56 gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg, width=2560, height=1440, framerate=30/1 ! imxvpud
jpegdec:
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
419 root 20 0 318M 22540 6420 S 67.0 0.6 0:06.09 gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg, width=2560, height=1440, framerate=30/1 ! jpegdec
The text was updated successfully, but these errors were encountered: