🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.mach
Article #925

how to compute load average for mach?

#925
From: Jack Bryans
Date: Thu, 04 Apr 1991 11:36
21 lines
1041 bytes
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
Technical Details
Message-ID: <JBRYANS.91Apr4113654@beach.csulb.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!csus.edu!beach.csulb.edu!jbryans

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.mach
Path: arc1-ca.pugleaf.net!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: <JBRYANS.91Apr4113654@beach.csulb.edu>
Lines: 21
Sender: jbryans@beach.csulb.edu (Jack Bryans)
Organization: Cal State Long Beach
Date: 4 Apr 91 11:36:54