[comp.unix.xenix] Getting the load adverage; _avenrun

ag@elgar.UUCP (Keith Gabryelski) (11/01/88)

First off, lemme see if I have the definition of `load adverage'
correct.  The load adverage is the number of processes that receive
CPU time in a set time (one second?).

Now, avenrun is a variable in kmem that is incremented every time a
process is given some CPU time?  The counter is reset every second?

Looking at avenrun, I see some pretty large numbers.

In code (loadst in Gnu Emacs) that I have seen, it divides avenrun by
400000 to produce the actual load adverage.  When I am running Emacs
with a couple of processes and news is spooling, the load adverage can
get up to 200+.  This doesn't seem reasonable to me.

The question: What is avenrun?  How is it derived?

Pax, Keith



-- 
ag@elgar.CTS.COM         Keith Gabryelski          ...!{ucsd, jack}!elgar!ag