Skip to content

[POSIX] "Load instant" #2673

@Artoria2e5

Description

@Artoria2e5

Summary

  • OS: POSIX
  • Type: new-api

Description

A load average is the exponential weighted average of past "load" (run queue length) values. For fast-acting performance decisions, having the instantaneous load is probably more useful than both the 1-min avg and the CPU utilization value, as it takes into account what is waiting to run. This value can be obtained on Linux by reading /proc/stat, or on other systems by running ps -Max -o stat (Linux, macOS) or ps -Hax -o stat (BSD) and counting the lines starting with "R" in column "status", plus optionally "D" or "U" for diskwait. Of course psutil uses the C API equivalent of ps, but the idea is the same.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions