You are not logged in.

1

Thursday, August 25th 2005, 8:02am

memory usage of a process ???

Hi,

Does there exist a C function call on linux/unix/solaris system to determine the total memory usage of a process (specified by process id) ?

If not, what is the way to get the same ???

Regards.
Nishant

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

2

Thursday, August 25th 2005, 9:21am

RE: memory usage of a process ???

You can read that info from /proc/<pid>/status or others.

3

Thursday, August 25th 2005, 9:36am

RE: memory usage of a process ???

thanx wysota