-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 24 Sep 2003 14:35:04 -0700
dries
Hello all,
(all this is happening on a Suse 7.3 machine 2.4.10 kernel)
I am trying to debug an application that is eating memory, I've been using memprof and efence but no luck so far. The really weird thing is that the memory eaten by the program is not released after killing the program. Judging from a few articles i found this should mean that it is shared memory, however, we don't explicitly use shared memory.
What i see is that if the program is running and i start 'top' the total amount of memory used is growing but there is no task that is using a lot of memory after a while. In the long run our program stops to function due to memory shortage, the only way out is a reset.
memprof doesn't indicate anything. efence doesn't indicate errors. All calls to malloc and free are in a wrapper that makes tracking allocation easy from within the program. (wrappers are well tested).
So what happens to my memory ?? Does it use mmap(2). Also, possibly some libraries are loaded and not unloaded immediately.
Jerry Feldman