GETLOADAVG(3) BSD Programmer's Manual GETLOADAVG(3) NNAAMMEE ggeettllooaaddaavvgg - get system load averages SSYYNNOOPPSSIISS ggeettllooaaddaavvgg(_d_o_u_b_l_e _l_o_a_d_a_v_g_[_], _i_n_t _n_e_l_e_m); DDEESSCCRRIIPPTTIIOONN The ggeettllooaaddaavvgg() function returns the number of processes in the system run queue averaged over various periods of time. Up to _n_e_l_e_m samples are retrieved and assigned to successive elements of _l_o_a_d_a_v_g[]. The system imposes a maximum of 3 samples, representing averages over the last 1, 5, and 15 minutes, respectively. DDIIAAGGNNOOSSTTIICCSS If the load average was unobtainable, -1 is returned; otherwise, the num- ber of samples actually retrieved is returned. SSEEEE AALLSSOO uptime(1), sysctl(2), kvm_getloadavg(3) HHIISSTTOORRYY The ggeettllooaaddaavvgg() function appeared in 4.3BSD-Reno. 4.4BSD June 4, 1993 1