Re: Process Memory Usage

From: Rik van Riel (riel@conectiva.com.br)
Date: Wed Jul 10 2002 - 19:01:51 EST


On Wed, 10 Jul 2002, Karthikeyan Nathillvar wrote:

> 2) I tried to read from /proc/<pid>/statm file. But, the process memory
> usage seems to be always in an increasing trend, even though lot of
> freeing is going on inside. All the values, size, resident, are always
> increasing.

Remember that when you call free() glibc may decide to just
keep the memory for itself and not give it back to the OS,
so the memory is still in use by the process...

regards,

Rik

-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:18 EST