Hi all,
I have been doing the memory leaks tests described in the Memory exhaustion when repeating the start/stop cycle of a GStreamer pipeline including nvvideoconvert and any of nvv4l2 encoders post. The followings are setup details:
• Hardware Platform (Jetson / GPU) : Xavier AGX Devkit and Xavier NX Devkit
• DeepStream Version : 6.2
• JetPack Version (valid for Jetson only) : 5.1.1
After running the following test:
I could verify that the memory increased during the test. Here are some results:
As you can see in these results, the Private Memory increased during the test. I ran the test for 1 hour.
Also, find attached all the results in the following zip files:
Questions for the NVIDIA team:
Could you try to reproduce the issue, please?
Is there a way to avoid the issue from happening?
Thanks.
1 Like
yuweiw
September 1, 2023, 7:01am
3
How do you get the image of the memory map?
Can you try the following two scenarios?
Change the enc to x264 enc and check if there are still memory issues
Do not repeatedly start and stop the pipeline, just let the pipeline run a long time and check if there are still memory issues
I ran the code with DeepStream version 6.3 and there was no significant memory growth. You can also try that.
Hi @yuweiw
I used the bash script attached to this message. I used it as follows:
./mem_analysis.sh -p $(echo $(ps -a | grep nvconv_nvenc_lo) | awk '{print $1;}') -i 1 -l -g -n 3600
If the script is run as above-mentioned, it will wrap the memory values every second and will plot the results after 1 hour (3600 seconds).
I will try the two scenarios that you mentioned.
mem_analysis.sh (5.1 KB)
yuweiw
September 4, 2023, 10:42am
5
OK. We’ll analyze that ASAP.
Hi @yuweiw
I ran the two scenarios that you mentioned. Here are the results
Change the enc to x264 enc and check if there are still memory issues
Without stopping the pipeline
Please, let me know how it goes the results on your side.
Thank you!
yuweiw
September 6, 2023, 11:12am
7
Could you refer to the link below to use the valgrind to locate the code stack of the leak?
https://forums.developer.nvidia.com/t/deepstream-sdk-faq/80236/19
yuweiw
September 11, 2023, 12:35pm
8
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks
I use the valgrind to locate the issue. Now it has no memory leak. You can refer to the picture below and wait for our future release.
system
Closed
October 10, 2023, 2:16am
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.