...
To enable the remapping of video buffers to cached memory, execute the following command:
Code Block |
---|
echo Y1 > /sys/module/videobuf2_dma_contig/parameters/dmaremapremap |
To disable this function, use the command:
Code Block |
---|
echo N0 > /sys/module/videobuf2_dma_contig/parameters/dmaremapremap |
By default, the remap function is disabled.
...
Code Block |
---|
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-parm=30 --stream-mmap=10 --stream-to=/tmp/OV5640_UYVY_1080P_001.raw --stream-skip=3 --stream-count=180 |
Results:
Remap | CPU Utilization (%) | Frame Rate (fps) |
---|---|---|
Disable | 100 | 15 |
Enable | 32 | 30 |
Performance improvement: 100/32×30/15 = 6.25 times
...
Code Block |
---|
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY --set-parm=30 --stream-mmap=10 --stream-to=/tmp/OV5640_UYVY_720P_001.raw --stream-skip=3 --stream-count=180 |
Results:
Remap | CPU Utilization (%) | Frame Rate (fps) |
---|---|---|
Disable | 88.1 | 30 |
Enable | 14.6 | 30 |
Performance improvement: 88.1/14.6 = 6.03 times
...
Code Block |
---|
v4l2-ctl -d /dev/video0 --set-fmt-video=width=640,height=480,pixelformat=UYVY --set-parm=30 --stream-mmap=10 --stream-to=/tmp/OV5640_UYVY_480P_001.raw --stream-skip=3 --stream-count=180 |
Results:
Remap | CPU Utilization (%) | Frame Rate (fps) |
---|---|---|
Disable | 34.7 | 30 |
Enable | 5.2 | 30 |
Performance improvement: 34.7/5.2 = 6.67 times
...