KVM_GETLOADAVG(3)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

✨ NAME ✨

okay so bestie, this is kvm_getloadavg(3) β€” literally the β€œget load average of the system” girlie from the Library Functions Manual. she’s here to hand you the system load average, and she ate. πŸ’…

πŸ“š LIBRARY πŸ“š

Kernel Data Access Library (libkvm, -lkvm) β€” that’s the whole squad. 🫢

🌟 SYNOPSIS 🌟

#include <kvm.h>

int
kvm_getloadavg(kvm_t *kd, double loadavg[], int nelem);

πŸ’– DESCRIPTION πŸ’–

The kvm_getloadavg() function returns the number of processes in the system run queue of the kernel indicated by kd, averaged over various periods of time. lowkey iconic.

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. periodt. ⏱️✨

🩺 DIAGNOSTICS 🩺

If the load average was unobtainable, -1 is returned; otherwise, the number of samples actually retrieved is returned. no cap, that’s the whole vibe check. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€


πŸ’– okay bestie, that’s the page! source/version and date: Debian, June 4, 1993, KVM_GETLOADAVG(3) β€” hope u slayed the load average. mwah! πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from
  • freebsd 15.1: base 15.1
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms