getloadavg(3) Library Functions Manual getloadavg(3)

getloadavg - Obtenir les moyennes de la charge du système

Bibliothèque C standard (libc-lc)

#include <stdlib.h>
int getloadavg(double loadavg[], int n);
Exigences de macros de test de fonctionnalités pour la glibc (consulter feature_test_macros(7)) :

getloadavg() :

    Depuis la glibc 2.19 :
        _DEFAULT_SOURCE
    Jusqu'à et y compris la 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.

Si la charge moyenne n'a pas pu être obtenue, -1 est renvoyé ; sinon, le nombre d'acquisitions effectivement réalisées est renvoyé.

Pour une explication des termes utilisés dans cette section, consulter attributes(7).

Interface Attribut Valeur
getloadavg() Sécurité des threads MT-Safe

BSD.

4.3BSD-Reno, Solaris. glibc 2.2.

uptime(1), proc(5)

La traduction française de cette page de manuel a été créée par Christophe Blaess https://www.blaess.fr/christophe/, Stéphan Rafin <[email protected]>, Thierry Vignaud <[email protected]>, François Micaux, Alain Portal <[email protected]>, Jean-Philippe Guérard <[email protected]>, Jean-Luc Coulon (f5ibh) <[email protected]>, Julien Cristau <[email protected]>, Thomas Huriaux <[email protected]>, Nicolas François <[email protected]>, Florentin Duneau <[email protected]>, Simon Paillard <[email protected]>, Denis Barbier <[email protected]>, David Prévot <[email protected]> et Jean-Pierre Giraud <[email protected]>

Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.

Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à [email protected].

17 novembre 2024 Pages du manuel de Linux 6.12
OSZAR »