Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: det@hawkmoon.mn.org (Derek E. Terveer) Newsgroups: comp.sys.sun Subject: memory usage overflowing accounting structure Keywords: SunOS Message-ID: <908@hawkmoon.MN.ORG> Date: 6 May 89 20:18:28 GMT Sender: usenet@rice.edu Organization: One of the Eternal Champions - Richfield, MN, 554232523, USA Lines: 21 Approved: Sun-Spots@rice.edu Original-Date: 27 Apr 89 03:42:19 GMT X-Sun-Spots-Digest: Volume 7, Issue 273, message 20 of 23 I am running into a bit of a (minor) problem with the accounting on our sun workstations... We have a few users that are running simulations for a long period of time and using up a lot of memory. The accounting structure, acct, defined in /usr/include/sys/acct.h, defines the member "ac_mem" to be a short integer. This is apparently not big enough for the *average* memory used by these procs, 'cause its coming out as a negative number in the accounting records. Or am i doing something wrong? Has anybody seen this before or know of a way to get around the problem? Is it safe to cast the short ac_mem into an unsigned value and get the real number that way? I tried that, but the number looked *real* huge, and i wasn't sure if it was a valid number or not. I suspect that once its turned negative, the whole number will be corrupted. derek -- Derek Terveer det@hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det w(612)681-6986 h(612)688-0667 "A proper king is crowned" -- Thomas B. Costain