V4L2 capture Application make cpu usage 90% or more

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

V4L2 capture Application make cpu usage 90% or more

430 Views
milav_soni
Contributor III

Hello guys,

  • I am writing this post to reveal to the NXP team that my embedded board, which has a MIMX8MN1CVTIZAA processor, is going to more than 90% CPU Load when the "mx8_v4l2_cap_drm.c" application is run.
  • Firstly, I have been using BSP Version "5.4.70-2.3.2+g5f2220e87dd8" and GCC version is 9.2.0. My BSP Memory structure is below.

Memory: 442648K/1015808K available (16700K kernel code, 1416K rwdata, 6552K rodata, 2880K init, 1017K bss, 48872K reserved, 524288K cma-reserved)

  • I am using the "V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE" buffer type, and also tested with two memory types "V4L2_MEMORY_MMAP" and "V4L2_MEMORY_USERPTR", but in all two cases we face > 90% CPU load.
  • Due to this, we are getting low FPS in the maximum resolution of the camera.

Can you guys please help me to find out what is the problem and how I can resolve this major issue?

Waiting for your reply.

Thank You

Please find attached my boot log for your reference.

 

 

0 Kudos
0 Replies