OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
349 stars 126 forks source link

Valgrind with OFP #263

Open Neetika02 opened 3 years ago

Neetika02 commented 3 years ago

Hello, We have made our application over OFP and would like to know if OFP supports valgrind or any other memory profiling tools? Are there any changes needed for doing memory profiling with OFP.

Regards, Neetika

bogdanPricope commented 2 years ago

Valgrind works fine. FYI, next version on NFP (my version of OFP https://github.com/NetInoSoftware/nfp ) will have (virtually) all information allocated from shared memory at startup. On a graceful termination of the application you should have almost no leaks (there are some leaks on odp side).

==9813== LEAK SUMMARY: ==9813== definitely lost: 0 bytes in 0 blocks ==9813== indirectly lost: 0 bytes in 0 blocks ==9813== possibly lost: 640 bytes in 2 blocks ==9813== still reachable: 1,025,986 bytes in 339 blocks ==9813== suppressed: 0 bytes in 0 blocks