Crates.io | loadrs |
lib.rs | loadrs |
version | 0.1.0 |
source | src |
created_at | 2024-08-02 17:57:09.115237 |
updated_at | 2024-08-02 17:57:09.115237 |
description | A command line tool to display users' CPU usage and warn about excessive usage. |
homepage | https://github.com/vsbuffalo/loadrs |
repository | https://github.com/vsbuffalo/loadrs |
max_upload_size | |
id | 1323487 |
size | 283,059 |
This is a simple tool that monitors and displays CPU usage by user on a Linux server. It's implemented in Rust for efficiency and reliability. This was co-written with Claude AI.
Key features:
-l/--live
.Run the tool with default settings:
load
To run in a live mode (updated every 5 seconds), use load -l
.
The fair share calculation is based on the number of active users where
active is defined as using over --active-threshdold
percent CPU usage (by
default, 1%). If the fair share should be a fixed percentage, use --fair-share 20
for 20%. If there is an excess load (based on the one minute load average
and the --active-threshdold
), a list of users will be displayed using more
than their fair share. This is not meant to blame users, but help them be aware
of their resource usage. Here we also set the warning threshold to 80% of total
CPUs:
load --fair-share 20 --threshold 80