getloadavg(3) Library Functions Manual getloadavg(3) getloadavg - Standard C library (libc, -lc) #include int getloadavg(double loadavg[], int n); 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 n 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 , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux man-pages 6.12 17 2024 . getloadavg(3)