1
votes

I have a program that has a peak memory usage of 66MB that I'm trying to profile with Valgrind Massif. Unfortunately, Massif shows only 800KB of peak memory usage. On the other hand, top tells me that 65MB are shared memory. Is it possible to profile shared memory usage of a program in Linux?

1
I know about /proc/pid/smap, what would be the difference with /proc/pid/maps? Will it allow me to see the whole 'memory life' of my program?bruno nery

1 Answers

3
votes

At least with Valgrind 3.7.0, you have the below option which should give what you need: --pages-as-heap=no|yes profile memory at the page level [no]