From: Milian W. <ma...@mi...> - 2014-05-26 20:02:17
|
On Monday 26 May 2014 12:15:32 Rentas Dimitris wrote: > Hello to the community once more. > My concern is if I can use DHAT and MASSIF to measure the external > fragmentation of my application which is using the default Ubuntu ptmalloc2 > allocator. > I have found a several formulas on the paper The Memory Fragmentation > Problem : Solved?, most of them use the live memory, maximum amount of > memory used by the allocator, maximum amount requested by the program. > How can I interpret the DHAT and MASSIF output to get those values? > In case you have any other suggestion for another formula please let me > know. > > I am aware that the most common way is to find the largest free contiguous > block in heap, relative to the total heap amount. But I have not figured > out how to get this measurement. > > If you have any information or tip it will be a real great help. > > Thank you everyone in advance Also take a look at mallinfo from malloc.h. It will give you information on the fragmentation when you compare .keepcost vs. .uordblks. Bye -- Milian Wolff ma...@mi... http://milianw.de |