[comp.unix.xenix] Load Average for System V?

brianc@cognos.uucp (Brian Campbell) (08/07/87)

In article <72@cipric.mn.org> dad@ciprico.mn.org writes:
! Does anyone out there have a program to display the load average on
! System V, Release 2 (soon to be 3)?  This is for a Motorola System 8000.

In article <6189@brl-smoke.ARPA> gwyn@brl.arpa responds:
! If you have 5620 DMD terminals, try running "sysmon" in a layer.
! 
! If /usr/include/sys/sysinfo.h exists, it describes a kernel data
! structure that you can read via /dev/kmem using the address of the
! symbol _sysinfo that nlist() on /vmunix will determine for you.
! The sysinfo structure runque and runocc members will allow you to
! compute the load average.  Since sysinfo does not seem to be a
! documented feature, your implementation may not support it.

Does anyone have the answer to this question for xenix 2.1.3?  I've got
the sysinfo include file, but an nlist informs me that the symbol is
not defined.

Has anyone written a 'top' type program for xenix?  Is there somewhere
I can get a little more information on some of the symbols defined in
/xenix?  What do the symbols prefixed with _dk, or _fl refer to?
-- 
Brian Campbell          uucp: decvax!utzoo!dciem!nrcaer!cognos!brianc
Cognos Incorporated     mail: 3755 Riverside Drive, Ottawa, Ontario, K1G 3N3
(613) 738-1440          fido: sysop@163/8

root@hobbes.UUCP (John Plocher) (08/10/87)

+---- Brian Campbell writes the following in article <1225@cognos.UUCP> ----
| ! If /usr/include/sys/sysinfo.h exists, it describes a kernel data
| ! structure that you can read via /dev/kmem using the address of the
| ! symbol _sysinfo that nlist() on /vmunix will determine for you.
| 
| Does anyone have the answer to this question for xenix 2.1.3?  I've got
| the sysinfo include file, but an nlist informs me that the symbol is
| not defined.
+----

On Microport SV/AT the structure is named "sysinfo" not "_sysinfo".  If
that doesn't work, try "_sysinf" (ie 7 chars instead of 8)

The command nm (section 1) will print out the symbol table - try:
	nm /unix | egrep sysinf
or some such...


-- 
John Plocher uwvax!geowhiz!uwspan!plocher  plocher%uwspan.UUCP@uwvax.CS.WISC.EDU