Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!uwvax!oddjob!gargoyle!ihnp4!cbosgd!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: comp.sources.wanted,comp.unix.questions Subject: Re: Load Average for System V? Message-ID: <3727@ncoast.UUCP> Date: Sat, 1-Aug-87 19:21:27 EDT Article-I.D.: ncoast.3727 Posted: Sat Aug 1 19:21:27 1987 Date-Received: Sun, 2-Aug-87 20:37:06 EDT References: <72@cipric.mn.org> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.sources.wanted Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 26 Xref: mnetor comp.sources.wanted:1801 comp.unix.questions:3443 As quoted from <72@cipric.mn.org> by dad@ciprico.mn.org (Dan A. Dickey): +--------------- | 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. | I can't find anything on the system now, so if someone knows where/what it is, | please let me know. Really what I want to know is what variables in the | kernel need to be looked at...and how to interpret them. +--------------- Keep an eye on comp.sources.misc; I'm posting a set of programs I have for System V: /etc/avenrun (calculates load average and stuffs it into a shm segment for use by other programs) w (!) csl (it isn't sysline, but it _is_ nice) AT&T Unix (System V) doesn't have a load average as such, but one can be calculated that's a "ballpark figure" by manipulating some stuff in the kernel "sysinfo" structure (see /usr/include/sys/sysinfo.h). The code for /etc/avenrun will show you how. -- Brandon S. Allbery, moderator of comp.sources.misc and comp.binaries.ibm.pc {{harvard,mit-eddie}!necntc,well!hoptoad,sun!cwruecmp!hal}!ncoast!allbery ARPA: necntc!ncoast!allbery@harvard.harvard.edu Fido: 157/502 MCI: BALLBERY <>