public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Process Memory Usage
@ 2002-07-10 23:18 Karthikeyan Nathillvar
  2002-07-11  0:01 ` Rik van Riel
  2002-07-12 21:02 ` Elladan
  0 siblings, 2 replies; 3+ messages in thread
From: Karthikeyan Nathillvar @ 2002-07-10 23:18 UTC (permalink / raw)
  To: linux-kernel

Hi,

  I want to find the memory usage of a particular process, to be precise
the percentage memory utilization. I need to find it through a program
other than "top".

 1) I tried using getrusage() system call. But it is returning zero for
all values(like ru_maxrss, etc..) except ru_utime and ru_stime. I am using
2.2.18 kernel.

 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.

   Can anyone suggest me any other ways through which memory utilization
of a program can be obtained.

Thanking you in advance,
ntk.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-12 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-10 23:18 Process Memory Usage Karthikeyan Nathillvar
2002-07-11  0:01 ` Rik van Riel
2002-07-12 21:02 ` Elladan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox