On Thu, 03 Jun 2021 05:20:51 -0700, Frederick Gotham wrote:
I have a Linux program that starts out with one thread, and it uses 88 kB of RAM.
[snip]
Anyone seen this kind of thing before?
You multi-posted your question to comp.lang.c, instead of cross-posting it.
You can find my reply, such as it is, in comp.lang.c.
Short answer: Valgrind Massif doesn't account for memory that's directly allocated through naked mmap(2) calls. My guess is that your process has
some code (either in /your/ code, or in the support logic you invoke)
that allocates storage directly through mmap(2), and that the ACTUAL
memory usage DOES NOT vary between the unmonitored run and the Valgrind run.
--
Lew Pitcher
"In Skills, We Trust"
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)