[comp.sys.encore] Reading the current load from the UMAX V kernel

prc@erbe.se (Robert Claeson) (10/31/89)

	I'm trying to read the current load (or the load average) from
	the UMAX V kernel (we're running UMAX V 2.2f). I use nlist to
	read the sysinfo structure (defined in /usr/include/sys/sysinfo.h)
	from /unix and /dev/kmem (which works fine as soon as I
	remembered to read _sysinfo instead of just sysinfo). However,
	the information that I have indicates that I should use the
	value of the variable sysinfo.runque (a quick run of cdb on the
	Encore-supplied version of /usr/bin/X11/xload shows this as
	well) to get the load.

	Now, how do I use this value? What does it contain? What I'm
	trying to do is to use it in a fresher port of X11R3 in the
	System V environment (rather than the 4.3BSD environment), more
	specifically in the Athena Load widget. As I do it now, I read
	the value of sysinfo.runque, scales it by 1000 and uses it. A
	neat load graph shows up, except for one thing -- value is
	constant. It never varies a bit, regardless of whether I do a
	parallel make on Gnu Emacs or the complete system is quiet.

	Is there anyone who knows how to *really* get a load value?

-- 
          Robert Claeson      E-mail: rclaeson@erbe.se
	  ERBE DATA AB

isaac@goanna.oz (Isaac Balbin) (10/31/89)

prc@erbe.se (Robert Claeson) writes:

>	Is there anyone who knows how to *really* get a load value?

Robert has asked this question before and been unsuccesful. There is no
doubt that someone at Encore *knows*. It seems rather poor though that no
one at Encore is willing to *tell*. [ We have a programmer here who seeks
exactly the same information]