getloadavg(3) Library Functions Manual getloadavg(3) getloadavg - LIBRARY Standard C library (libc, -lc) #include int getloadavg(double loadavg[], int nelem); glibc (. feature_test_macros(7)): getloadavg(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _BSD_SOURCE The getloadavg() function returns the number of processes in the system run queue 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, respectively. , -1; . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |getloadavg() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ BSD. 4.3BSD-Reno, Solaris. glibc 2.2. . uptime(1), proc(5) Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . getloadavg(3)