[vpp-dev] Memory Leakage Test By Valgrind

2018-01-08 Thread Saeed P
Hi, I want to check memory leakage on VPP so I use Valgrind memcheck tool to do it, but it gives me a lot of errors on output, like "Invalid read of size ..." and at the end of the valgrind memcheck report is saying : "This is usually caused by using VALGRIND_MALLOCLIKE_BLOCK in an inappropriate wa

[vpp-dev] show memory

2018-01-13 Thread Saeed P
Hi I want to customize "show memory" command in the debug mode when enable memory trace to show the function name instead of the address in the "Traceback" column to easily find memory leakage. at the first I see the source code and find out that its use "format_clib_elf_symbol_with_address" to fo

[vpp-dev] heap per thread

2018-01-23 Thread Saeed P
Hi I tried to change the memory allocation on VPP to set different mheap per worker not a shared mheap per worker. so on /vlib/threads.c at start_workers function chang as follow : if ( !strcmp( tr->name , "workers") ) { tr->mheap_size = new_mheap_size ; } vec_add2 (vlib_worker_