Hi Peter, The memory tracer is compiled by default.
To use it: ~# vppctl memory trace on main-heap <do leaky things> ~# vppctl show memory main-heap verbose You can inspect the memory traces at various time during your test, and see which one keep increasing. Best ben > -----Original Message----- > From: [email protected] <[email protected]> On Behalf Of Peter Škvarka > Sent: lundi 5 octobre 2020 15:59 > To: [email protected] > Subject: [vpp-dev] Memory leak checker > > Hello, > > I need to investigate growing of used memory in VPP v20.01 process. > > I found that valgrind si not suitable and read that VPP has it's own > memory checker. > > I tried python scripts GEF for gdb, it is not able to work with VPP > process. > > > > I see in release notes for some previous version that "leak-checker" was > added. I looked at source code but only thing probably relating to this I > found is > > that define DLMALLOC which can be set in src/vppinfra/CMakeLists.txt with: > option(VPP_USE_DLMALLOC "Use dlmalloc memory allocator." OFF) > > But build failed with OFF setting, I successfully fixed some build errors, > still not all but first I'd like to put question if this way can enable > some command for checking memory leaks or am I wrong ? > > > > How to setup leak-checker or other mechanism for investigating which code > allocates pieces of memory on the heap ? what commands for investigating > heap are available ? > > Or where can I find some info about it ? > > > > Peter
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17652): https://lists.fd.io/g/vpp-dev/message/17652 Mute This Topic: https://lists.fd.io/mt/77338173/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
