diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-02-11 19:15:00 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-02-11 19:15:00 +0000 |
commit | e4cf522929cc33ea951756509b0e4f166f0da59a (patch) | |
tree | e072b02cf33d98bde5e8e82a9ddfa4316b299020 /manual/resource.texi | |
parent | 5b8d5ae180f8e9d899a28c96bae77f1e8ef29cf8 (diff) | |
download | glibc-e4cf522929cc33ea951756509b0e4f166f0da59a.tar glibc-e4cf522929cc33ea951756509b0e4f166f0da59a.tar.gz glibc-e4cf522929cc33ea951756509b0e4f166f0da59a.tar.bz2 glibc-e4cf522929cc33ea951756509b0e4f166f0da59a.zip |
Update.
* sysdeps/generic/getsysstat.c: Change return value of get_phys_pages
and get_avphys_page to long int.
* sysdeps/unix/sysv/linux/getsysstat.c: Likewise.
* include/sys/sysinfo.h: Likewise.
* sysdeps/generic/sys/sysinfo.h: Likewise.
* sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
Diffstat (limited to 'manual/resource.texi')
-rw-r--r-- | manual/resource.texi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manual/resource.texi b/manual/resource.texi index 48e0ac0b72..9fc8b6494b 100644 --- a/manual/resource.texi +++ b/manual/resource.texi @@ -1401,3 +1401,22 @@ processors and so the call @noindent returns the number of processors which are currently inline (i.e., available). + +@cindex load average +Before starting more threads it should be checked whether the processors +are not already overused. Unix systems calculate something called the +@dfn{load average}. This is a number indicating how many processes were +running. This number is average over different periods of times +(normally 1, 5, and 15 minutes). + +@comment stdlib.h +@comment BSD +@deftypefun int getloadavg (double @var{loadavg}[], int @var{nelem}) +This function gets the 1, 5 and 15 minute load averages of the +system. The values are placed in @var{loadavg}. @code{getloadavg} will +place at most @var{nelem} elements into the array but never more than +three elements. The return value is the number of elements written to +@var{loadavg}, or -1 on error. + +This function is declared in @file{stdlib.h}. +@end deftypefun |