Questions tagged [massif]
62 questions
0
votes
0 answers
Different results while profiling memory to get max RSS with massif and time
A little bit of the context: I try to implement a C++ application that uses mmap to map some arbitrary large files for reading and writing, which can scale from a few MB to several GB. Due to this, it is important to profile the memory usage (peak…

Dimi
- 9
- 3
0
votes
1 answer
No symbols for valgrind massif dlclose()
massif doesn't show any function names for functions which are in a lib and this lib is closed by dlclose().
If I remove dlclose(), and run the recompile and execute program I can see the symbols. Is there a way to know the function names without…

MJM101
- 3
- 2
0
votes
3 answers
How to see Valgrind Massif output (or other heap profiler) as program executes?
When using Valgrind Massif in LINUX, I tried to see the massif.out.pid file in real time but it produces this file after Massif finished executing. I want to place breakpoints in the code to watch the effect certain instructions have on the heap as…

nndhawan
- 597
- 6
- 24
0
votes
0 answers
How do I find why the virtual memory foot print continuously grows with this daemon?
I created a daemon which I use as a proxy to the Cassandra database. I call it snapdbproxy as it proxies my CQL commands from my other servers and tools.
Whenever I access that tool, it creates a new thread, manages various CQL commands, and then I…

Alexis Wilke
- 19,179
- 10
- 84
- 156
0
votes
1 answer
valgrind massif heap profiler no detailed snapshot view - how do you zoom in/out?
So I am trying to see my heap memory usage for my c++ program in Ubuntu 18
I have run it using:
valgrind --tool=massif --smc-check=all ./myprogram
I get quite a large output, which is ok. I view it using massif-visualizer.
I get a pretty graph and…

code_fodder
- 15,263
- 17
- 90
- 167
0
votes
1 answer
valgrind generated very large xtree
valgrind 3.13 supported xtree http://valgrind.org/docs/manual/dist.news.html
I used it with massif
valgrind --tool=massif --xtree-memory=full --xtree-memory-file=xtmemory.ms.%p
Then it generated a 16G file. It is too large to load by massif…

Joe C
- 2,757
- 2
- 26
- 46
0
votes
0 answers
Profiling Templated Library C++
I am including a huge template library in my main.cpp file, I want to heap profile the resulting program. I am using massif for that with ms_print for visualisation. Compiling with -pg.
In the table for detailed snapshots, I would like to see which…

Mazen
- 1
0
votes
1 answer
valgrind memcheck gives message "in a rw- anonymous segment"
I'm using massif to debug heap increasing issue with a binary program which is running long long time. But it report:
valgrind: m_mallocfree.c:280 (mk_plain_bszB): Assertion 'bszB != 0' failed.
valgrind: This is probably caused by your program…

haha
- 49
- 1
- 2
0
votes
2 answers
massif reported heap usage much less than VmRss, what could be wrong?
massif output:
time=3220706
mem_heap_B=393242041
mem_heap_extra_B=73912175
mem_stacks_B=93616
heap_tree=peak
process shows 1.2GB in VmRss, so the huge difference comes from where? (I saw Rss grows up continuously).

bugs king
- 566
- 5
- 13
0
votes
1 answer
Can massif measure global/static data cost?
I see massif can measure heap use, and also stack use with some options. Does it also report global data consumption (the data defined as global or static variables)?

Joe C
- 2,757
- 2
- 26
- 46
0
votes
1 answer
Does massif make the program under test use more memory?
I have a program. When it runs normally, my hard-coded peak memory checker reports 1G. When it runs with massif, my checker reports 2.2G...
My peak memory checker is not a smart checker, I only call it at hard-coded place to get the current memory…

Joe C
- 2,757
- 2
- 26
- 46
0
votes
1 answer
Monitoring memory consumption over more than 1 hour
I am trying to monitor the memory consumption of a process for a long time with Valgrind's massif. The process is active and does some routine operations at specific time intervals and I would like to see the memory consumption of all the process.…

Perennialista
- 1,083
- 2
- 12
- 22
0
votes
1 answer
Can't run valgrind massif with "page-as-heap" option
I am trying to run Valgrind in Ubuntu 14.04 with the following options:
valgrind --tool=massif --pages-as-heap=yes
But get the following error:
valgrind: Bad option: --page-as-heap=yes
This option is described in several places (and it is actually…

testTester
- 2,371
- 3
- 18
- 22
0
votes
1 answer
Comparing valgrind, massif, top, and pmap
I am trying to understand whether or not my application is leaking.
When running my application, I periodically run pmap and observe:
mapped: 488256K writeable/private: 90144K shared: 0K
mapped: 488260K writeable/private: 101912K shared:…

jsj
- 9,019
- 17
- 58
- 103
0
votes
0 answers
How to find out the code location responsible for memory allocation on Windows
I have a C++ application using 400MB of heap and I'd like to know which cpp files/line numbers contributed the most for that allocation.
On Linux I've successfully used Massif for this purpose.
I'm not interested in knowing how to detect memory…

Sergio Martins
- 897
- 2
- 8
- 18