*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> kvm_getloadavg (3)              



NAME    [Toc]    [Back]

     kvm_getloadavg - get load average of the system

SYNOPSIS    [Toc]    [Back]

     #include <sys/resource.h>
     #include <kvm.h>

     kvm_getloadavg(kvm_t *kd, double loadavg[], int nelem);

DESCRIPTION    [Toc]    [Back]

     The kvm_getloadavg() function returns the number of processes in the system
  run  queue of the kernel indicated by kd, averaged over
various periods
 of time.  Up to nelem samples are retrieved and assigned
to successive
 elements of loadavg[].  The system imposes a maximum of
3 samples,
     representing averages over the last 1, 5,  and  15  minutes,

RETURN VALUES    [Toc]    [Back]

     If  the load average was unobtainable, -1 is returned.  Otherwise, the
     number of samples actually retrieved is returned.

SEE ALSO    [Toc]    [Back]

     uptime(1), getloadavg(3), kvm(3)

OpenBSD      3.6                           June      4,      1993
[ Back ]
 Similar pages
Name OS Title
xload IRIX system load average display for X
xload Tru64 system load average display for X
tload Linux graphic representation of system load average
getloadavg Linux get system load averages
getloadavg NetBSD get system load averages
getloadavg OpenBSD get system load averages
kvm_getloadavg NetBSD get system load averages
getloadavg FreeBSD get system load averages
mk_kernel HP-UX load a kernel configuration from a system file
ssdi IRIX consult configuration file and load DSO corresponding to the source for a given system database
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service