Re: Need assistance in determining memory usage

From: Ketil Froyn (ketil-kernel@froyn.net)
Date: Mon Nov 04 2002 - 13:34:47 EST


On 4 Nov 2002, Thomas Schenk wrote:

> Q. How can you determine how much memory a process is using at a given
> point in time? Specifically, I want to know of a method or tool that
> will tell me how much total memory a process is using, how much of that
> total is shared with other processes, how much is resident, and how much
> is swapped out.

/proc/<pid>/{stat,statm,status} are probably helpful. There's some info on
this in Documentation/filesystems/proc.txt

Ketil

-
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 : Thu Nov 07 2002 - 22:00:33 EST