On Wed, 22 Apr 2020 20:46:08 +0200
tlaro...@polynum.com wrote:

> (This can be also simply a memory leak in the program but since the
> RAM is not exhausted...).

Without much detail about how much memory, swap, etc your system is
using, it's anyone's guess really. You say "RAM is not exhausted" but
that why would the system be swapping? Maybe you're not looking at it
at the right time, it is possible for a process to malloc() large
amount of memory and then quickly release it, by the time you look at
it, some processes got swapped out, but the memory got released to the
system.

If you suspect memory leaks, try running "pmap <pid>" on your program
and look for which segments are allocated. Dynamic memory would have
"anon" next to it and at the bottom you should have the total number of
virtual memory in KiB allocated to your process.

Reply via email to