|
From: Artur W. <wi...@bu...> - 2007-02-23 15:19:41
Attachments:
ms_main.patch
|
Hello ! we are currently fighting with a memory fragmentation problem in a long living process. linux's malloc allows to set a MMAP_THRESHOLD value, so we set it to 4096 - all blocks above that will be handled directly by the kernel, and are guaranteed to be returned to the system when freed. So we needed to profile only blocks below this limit. Massif comes in handy, but with a small change, which is attached. The block size threshold is given on cmd line with --max-heap-block=<number of bytes> With the option Massif will account for blocks of size smaller than this limit. The patch is against valgrind 3.1.0. All are welcome to use it. Cheers, Artur Wisz |