1-second resolution of process accounting times
H. Morrow Long [Systems Center]
long at ittvax.UUCP
Tue Apr 2 23:15:08 AEST 1985
We noticed this change in 4.2bsd very quickly after conversion
from 4.1bsd. We had ported the System III accounting package to
4.1bsd. We noticed that under 4.2bsd many of the totals for
CPU usage were coming up zero for normal users.
We then were able to attribute it to the coarse time
measurement being used under 4.2bsd (seconds) and the fact
that many of the 'average' processes on a system never use at
least one second of cpu time and therefore show up with zero
time.
We modified the accounting routines in sys/kern_acct.c to
provide utime, stime and etime in 60ths of a second (the 4.1bsd
way) rather than seconds.
--
H. Morrow Long
ITT-ATC Systems Center,
1 Research Drive Shelton, CT 06484
Phone #: (203)-929-7341 x. 634
path = {allegra bunker ctcgrafx dcdvaxb dcdwest ucbvax!decvax duke eosp1
ittral lbl-csam milford mit-eddie psuvax1 purdue qubix qumix
research sii supai tmmnet twg uf-cgrl wxlvax yale}!ittvax!long
More information about the Comp.unix.wizards
mailing list