Some unix faq pointed me to the function getrusage() for finding out
about a processes memory usage. Now I did, and startling I found out that
the fields of the rusage struct which were of interest to me returned 0.
I had a look at the implementation in kernel/sys.c of getrusage() and saw,
that those fields (ru_maxrss and following friends) were not used (at least
not in the kernel version 2.0.33). Now, is there any other way to find out
about a processes memory from within the process?
- Chris
-- /----------------------------------------------------------------------------\ | Christian Loth | Meet me as the >Shadowdancer< in the | | chris@rom.mud.de | REALM OF MAGIC | | http://rom.mud.de/~chris | telnet rom.mud.de 4000 | | | http://rom.mud.de/ | | "The road goes ever on and on!" - Bilbo Baggins | \----------------------------------------------------------------------------/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu