From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Load Average (avenrun)?
Date: 1996/02/01 [thread overview]
Message-ID: <4ep169$7km@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 310E7ECD.3A1@oac.hsc.uth.tmc.edu
In article <310E7ECD.3A1@oac.hsc.uth.tmc.edu>, "Steven E.Newton" <snewton@oac.hsc.uth.tmc.edu> writes:
>
>What nlist symbols point to the load average of a running kernel
>on 3.2? I have tried avenrun but the values I get are extremely
>small, on the order of N^-321.
I checked with dbx as well and it believed that avenrun was a single
integer:
(dbx) whatis avenrun
int avenrun;
Searching the source files of V3.2A didn't show it declared anywhere,
but looking through the .h files show a:
extern long avenrun[3] ;
in <sys/kernel.h>. Assuming this is right it is probably a fixed
point number. A closer look at kernel.h, suggests the scale is 1000.
There was also a mention of avenrun in <sys/table.h> suggesting that
the table(2) interface allows collecting it. Since this is what *I*
use in Monitor, it is probably a safer interface.
>
>Or is there another programmatic interface to get the load averages?
I use table(2) with TBL_LOADAVE. Recent versions include a manual
page for the table(2) call.
>
>s
>
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~1996-02-01 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-30 5:00 Load Average (avenrun)? Steven E.Newton
1996-01-31 5:00 ` Malcolm Beattie
1996-02-01 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1996-02-01 5:00 ` Steven E.Newton
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox