Hello again, >> Well, I think it's generally a good thing to be able to determine >>memory usage from within the mud, especially if you have admins/coders > >Could do the same thing your patch does with popen() to call 'ps'. True...yet ps isn't that portable either (don't know, does it exist with windows and macintosh platform?) > >Does a 'Virtual Memory' size exist instead of just RSS? Perhaps that is Perhabs I'm misunderstanding you, but that's included in my patch. (VmSize, VmRSS, VmData, and VmStk). >filled in with Linux. (i.e.: total instead of just what is currently not >swapped out.) Or make a multiplatform wrapper or something. Yes, that's the best solution I think. Only problem is, I can only provide the linux part (with /proc) and the general unix part (with getrusage). The show memory for windows/macintos/foo-os has to be written by others I fear :( - 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 | \----------------------------------------------------------------------------/ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST