Large "fwrite" written traffic affects the performance of nvbuffer and nvenc

Hi NVIDIA:
We are using the Jetson NX platform to do some function similar to video file recording. We found that the blocking time of some APIs, such as “NvBufferCreateEx“ and “cudaMemcpy“ , will occasionally become longer when the written traffic is large. These unexpected blocking time will decrease the real-time performing of our project. Especially when we write date to SSD and transfer it from SSD to an external USB flash device, the situation will get worse, so that the action of dqbuffer form the nvenc’s output_plane will occasionally be blocked for seconds.
Question is will the written traffic affect the performance of nvbuffer and nvenc? How does it happen? How to solve it?
Platform is Jetson Xavier NX, R32.7.3.

Thanks.

Hi,
Do you use Jetson Nano or Xavier NX? The topic is in Jetson Nano category but you mentioned Jetson NX in the comment. Would like to confirm the platform so that we can suggest next.

Our platform is Jetson Xavier NX, thanks.

Hi,
It is possible and the bottleneck can be in memory IO. You can run $ sudo tegrastats to check if EMC is close to 100% loading.

To have maximum performance, please execute $ sudo jetson_clocks and enable VIC at maximum frequency:
Nvvideoconvert issue, nvvideoconvert in DS4 is better than Ds5? - #3 by DaneLLL