kesong
October 15, 2021, 8:16am
14
We are checking the issue. I can get RSS memory increase with below tool. But I can’t get the “definitely lost” with valgrind in my side. I share those tools below. Maybe you also can have a try with below tool and share the result. Thanks.
Display the memory usage:
9. [DS 5.0GA_Jetson_App] Capture HW & SW Memory Leak log
nvmemstat.py.txt (4.7 KB)
Download attachment on
to Jetson device and rename to nvmemstat.py
Install “lsof” tool
$ sudo apt-get install lsof
Run your application on Jetson in one terminal or background
Run this script with command :
$ sudo python3 nvmemstat.py -p PROGRAM_NAME // replace PROGRAM_NAME to application name in step#2
this script will monitor the hardware memory, SW memory, etc.
Share the log on the topic for further …
Check memory leak with valgrind:
14. [All_Jetson_App] Check memory leakage with valgrind
Install valgrind with below command
$ sudo apt-get install valgrind valgrind-dbg
Run application with below command
$ valgrind --tool=memcheck --leak-check=full --num-callers=100 --show-leak-kinds=definite,indirect --track-origins=yes ./app