Newsgroups: comp.os.mach Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!csus.edu!beach.csulb.edu!jbryans From: jbryans@beach.csulb.edu (Jack Bryans) Subject: how to compute load average for mach? Message-ID: Lines: 21 Sender: jbryans@beach.csulb.edu (Jack Bryans) Organization: Cal State Long Beach Date: 4 Apr 91 11:36:54 Our NeXT's sys/table.h has the following lines that comments indicate originated at CMU: /* * TBL_LOADAVG data layout * (used by TBL_MACHFACTOR too) */ struct tbl_loadavg { long tl_avenrun[3]; int tl_lscale; /* 0 scale when floating point */ }; In addition, sys/param.h has the usual FSHIFT & FSCALE defs. I've used gdb to bag the 3 longs & the "scale" int, find that they correlate w/the averages printed by uptime, but haven't found a function of tl_avenrun and tl_lscale, with or without FSCALE that agrees with uptime. When, if ever, can the tl_avenrun's be floating point? Jack