On Mon, 2015-06-15 at 19:23 +0800, 王阳 wrote:
> HI Philippe,
>  I read valgrind user manual, there are some hints which are related
> to my problem I guess. As follows,
> Myprog uses tons of mmap and memory pool ,and do not use free/delete
> to give back memory to pool.
> My question is that If mypog use memoy pool without free/delete and
> don't use VALGRIND_HG_CLEAN_MEMORY will lead to myprog do mmap
> endlessly until use 64G memory?
No, HG_CLEAN_MEMORY is not useful to use less memory.
It is only useful if you recycle memory, and you get
false positive race errors due to this recycling.

The best way to understand where valgrind/helgrind spends
memory is to use --stats=yes and post the result here.
Really, it is really the best way :).
If it takes too long to reach the end (or it crashes
before producing the stats),
you can from the command line use
   vgdb v.info stats
to get the needed info while helgrind is running.

Philippe




------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to