Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Load Average (avenrun)?
@ 1996-01-30  5:00 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.
  0 siblings, 2 replies; 4+ messages in thread
From: Steven E.Newton @ 1996-01-30  5:00 UTC (permalink / raw)


Greetings,

Thanks in advance for your help on this:

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.

Or is there another programmatic interface to get the load averages?

s



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Load Average (avenrun)?
  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.
  1 sibling, 0 replies; 4+ messages in thread
From: Malcolm Beattie @ 1996-01-31  5:00 UTC (permalink / raw)


In article <310E7ECD.3A1@oac.hsc.uth.tmc.edu>,
Steven E.Newton <snewton@oac.hsc.uth.tmc.edu> wrote:
>Greetings,
>
>Thanks in advance for your help on this:
>
>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.
>
>Or is there another programmatic interface to get the load averages?

See the man page for table(2). table(TBL_LOADAVG, 0, ...) will get
the load average for you.

--Malcolm

-- 
Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Load Average (avenrun)?
  1996-02-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-02-01  5:00   ` Steven E.Newton
  0 siblings, 0 replies; 4+ messages in thread
From: Steven E.Newton @ 1996-02-01  5:00 UTC (permalink / raw)


Alan Rollow - Dr. File System's Home for Wayward Inodes. wrote:
> I use table(2) with TBL_LOADAVE.  Recent versions include a manual
> page for the table(2) call.
> >

Thanks for all the replies.  Looks like the table(2) interface will
do the trick.  The scaling factor is a bit flaky but I've worked
it out.

s

--
+     +      +      +      +    |    snewton@oac.hsc.uth.tmc.edu
                                |    Nobody else speaks for me,
   They've given you a number   |    and I speak for no one else.
   and taken away your name.    |    http://www.uth.tmc.edu/~snewton/
                                |     +     +     +     +     +     +



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Load Average (avenrun)?
  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.
  1996-02-01  5:00   ` Steven E.Newton
  1 sibling, 1 reply; 4+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-02-01  5:00 UTC (permalink / raw)



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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-02-01  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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.
1996-02-01  5:00   ` Steven E.Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox