Annotated edit history of
getloadavg(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
---- |
|
|
2 |
__NAME__ |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
getloadavg - get system load averages |
|
|
6 |
__SYNOPSIS__ |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
#define _BSD_SOURCE |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
or |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
#define _GNU_SOURCE |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
#include |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
int |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
getloadavg(double loadavg[[], int nelem); |
|
|
25 |
__DESCRIPTION__ |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
The getloadavg() function returns the number of processes in |
|
|
29 |
the system run queue averaged over various periods of time. |
|
|
30 |
Up to nelem samples are retrieved and assigned to successive |
|
|
31 |
elements of loadavg[[]. The system imposes a maximum of 3 |
|
|
32 |
samples, representing averages over the last 1, 5, and 15 |
|
|
33 |
minutes, respectively. |
|
|
34 |
__DIAGNOSTICS__ |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
If the load average was unobtainable, -1 is returned; other- |
|
|
38 |
wise, the number of samples actually retrieved is |
|
|
39 |
returned. |
|
|
40 |
__SEE ALSO__ |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
uptime(1), proc(5) |
|
|
44 |
__HISTORY__ |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
The getloadavg() function appeared in 4.3 BSD |
|
|
48 |
-Reno. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
BSD June 4, 1993 1 |
|
|
52 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.