It seems that this is the system call I need.
I actually use Sun-Solaris (where the /proc seems to have a different structure), but this mailing list seems to be helpful for Unix as well.
Haim
Kohn Emil Dan wrote:
On Mon, 28 Jul 2003, Eli Billauer wrote:
I think the solution lies in reading /proc/$pid/statm, where there is
info about memory usage. man proc for more details.
getrusage() might also help. man getrusage
Emil
Eli
Haim Cohen wrote:
Hi,
Does some one know if there is a system call to get information about the memory usage of the current process ? I mean - a C system call, not a system( "...." ) call to execute some other programs like ps to get that information.
Thanks, Haim
-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]
-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]
-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]
--
________________________________________ Haim Cohen Software Engineer [EMAIL PROTECTED] Analog Devices Israel (972) - 9 - 9715 406
-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]