Questions tagged [massif]
62 questions
86
votes
3 answers
Valgrind Massif tool output graphical interface?
I'm using Valgrind 3.3.1 with the Massif tool to profile the heap of a C++ application, and I'm wondering if there is a graphical tool to examine the textual outputfile file.
Thanks for any suggestion.

puccio
- 3,054
- 8
- 29
- 20
19
votes
1 answer
Valgrind's massif tool will not profile my application
I am developing a statically-linked 64-bit C++ application on 64-bit CentOS 5.8 using the standard gcc 4.4 packages from the CentOS repositories. It appears to be using more memory than I expected, so I tried using massif to profile the memory…

Tyson
- 193
- 1
- 5
16
votes
4 answers
Understanding Linux virtual memory: valgrind's massif output shows major differences with and without --pages-as-heap
I've read the documentation about this parameter, but the difference is really huge! When enabled, the memory usage of a simple program (see below) is about 7 GB and when it's disabled, the reported usage is about 160 KB.
top also shows about 7 GB,…

Kiril Kirov
- 37,467
- 22
- 115
- 187
4
votes
1 answer
Heap size for Rust programs very large when measured with valgrind using massif
I'm trying to measure the memory size of a rust program I'm writing. I noticed that when I measure the heap size with the command:
valgrind --tool=massif --pages-as-heap=yes ./program
And measure using ms_print, that the memory size was quite large…

RedRain
- 103
- 5
3
votes
1 answer
What is the difference between 'time -f "%M"' and 'valgrind --tool=massif'?
I want to see the peak memory usage of a command. I have a parametrized algorithm and I want to know when the program will crash due with an out of memory error on my machine (12GB RAM).
I tried:
/usr/bin/time -f "%M" command
valgrind --tool=massif…

Martin Thoma
- 124,992
- 159
- 614
- 958
3
votes
2 answers
How to use valgrind's massif-out-file option correctly?
When running valgrind --tool=massif benchmark1 --massif-out-file=test.out on MacOS (10.12.6) with version valgrind-3.13.0, output is produced, but only in the default filename format, i.e. massif.out.\d+. No test.out file is generated. Exemplary…

Marie Hoffmann
- 81
- 1
- 6
3
votes
1 answer
Building massif-visualizer: include could not find load file CMakeFindDependencyMacro
I am attempting to build massif-visualizer on CentOS 7. Unfortunately I'm having to try to guess at dependencies as they are not all listed in the INSTALL file. So far:
yum install git
yum install kdelibs-devel extra-cmake-modules \
…

Lightness Races in Orbit
- 378,754
- 76
- 643
- 1,055
3
votes
1 answer
Valgrind Massif tool force snapshot
I am looking to put something in my code so that I can force a Massif snapshot at certain points of its execution, for example in a server to dump out a massif snapshot to file between requests to see if I am holding onto a lot of memory between…

csteifel
- 2,854
- 6
- 35
- 61
3
votes
1 answer
localtime_r consuming some memory before program exit
I use valgrind's massif to track memory usage at the last stage before program exit
and found
js::DateTimeInfo::updateTimeZoneAdjustment() (DateTime.cpp:19)
which is calling localtime_r and consuming some memory.
16 ComputeLocalTime(time_t local,…

Denny
- 449
- 4
- 17
3
votes
1 answer
Using massif on process which is "killed 9"
I'm trying to do a memory profiling for a program which consumes too much memory and gets killed by OS (FreeBSD) with 9 signal. That happens on some specific data, so profiling it on another (e.g. smaller) data set would not give much help. When…

Yaroslav Akulov
- 31
- 1
2
votes
1 answer
Why memory profiler doesn't show all the used memory?
When I am starting my application under valgrind with massif option I see 52.6 MiB peak usage.
But htop says the process took 875MB of RES memory.
The same behavior has heaptrack. Does anyone know why profiler doesn't report where 800+MB gone?

teoring
- 115
- 13
2
votes
1 answer
examining virtual memory block reported by pmap
I am seeing a leak in my program. It does not get caught with "valgrind memcheck" ( I confirmed this with summary report, it was no were near the top usage I can see). I could get something closer to my memory usage upon using "valgrind massif…

user1522160
- 59
- 8
2
votes
1 answer
Can massif dump log incrementally
I use the command
valgrind --tool=massif --threshold=1
The command only generates a massif.out. file after I close the test program. Is there a way to let massif dump the file incrementally during the test program runs?

Joe C
- 2,757
- 2
- 26
- 46
2
votes
1 answer
Why is there differenece between Valgrind-Massif and TOPs memory consumption?
I want to measure the memory consumption of a program in linux ubuntu. I compared the two tools: Valgrind Massif and TOP. For some reason, I got different results even when I used "--pages-as-heap=yes" to show all the memory.
I compiled the…

Kim Yung
- 21
- 2
2
votes
1 answer
Using the valgrind massif tool, Result file not created
I have been following this tutorial for reference:
http://valgrind.org/docs/manual/ms-manual.html
When I am using it to profile my Application Using the command:
valgrind --tool=massif --time-unit=B ./run.o
It finishes but does not produce any…

Hiesenberg
- 415
- 1
- 8
- 12