OpenVMS Load Average eXtended device driver (LAX0:), written in C, using fixed-point arithmetic.
This driver is designed after the original LAVDRIVER, provided for reference
in the orig-src
directory. The major differences are that it's now much
smaller, because it's written in C instead of VAX MACRO, and it returns the
values as 32-bit integers with a 14-bit scaling factor, instead of as
VAX F_floating
values.
Another difference from LAVDRIVER is that the load averages are not divided
by the number of active CPUs, but reflect the total number of processes
actively running or ready to run. This matches UNIX getloadavg()
behavior.
Loading the driver works the same way as LAVDRIVER. From a DCL script:
$ Run SYS$SYSTEM:SYSMAN
IO Load LAXDRIVER
IO Connect LAX0 /NoAdapter/Driver=LAXDRIVER
exit
Be sure to specify the path to LAXDRIVER if you haven't copied it to
SYS$COMMON:[SYS$LDR]
. Use the same commands to load it interactively,
but without typing the "$" (you do need to keep the "$" where I've placed
them if you paste it into a DCL startup script).