Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: accounting Message-ID: <9879@steinmetz.steinmetz.UUCP> Date: 10 Mar 88 20:09:06 GMT References: <1094@hubcap.UUCP> <668@aimt.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 28 Keywords: BSD You have gotten a few good replies, but I will add a few more points. The accounting fields on some systems store a pseudo float number as described by another poster. As mentioned these can be in seconds or ticks. On Ultrix the values are stored as floats rather than shorts. I don't know if that's typical of BSD, since Sun uses shorts, also. The least portable value is the memory. In addition to several formats, the values may be in K-sec (core product) or K-cpu (increment the could by the K every time the process is charged for a cpu cycle) or K-clock (I think this is done by bumping the count every time the process is dispatched). Just to keep from being portable, some keep the mem in K and others in bytes! I learned a lot more than I wanted to know when I wrote a functional acctcom clone for a unix-pc. Since then I have ported it to Xenix 286 and 386 (not remotely the same), and looked at Suns. When it reaches another steady state I will send it off to sources.unix, although the backlog must be fierce, as I sent my keyword index to text program off to them several months ago. The original poster should let us know if it's a BSD or SysV system, since some of the fields are very diferent. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me