Memory stats for humans.
bfree is a lightweight Rust CLI that provides a clearer, human-oriented view of Linux memory and swap usage.
It keeps the speed and simplicity of free while improving readability and presenting practical memory semantics by default.
- Human-readable sizes and percentages
- Multiple output modes:
compact(default),extended, andvisual - Structured output:
--jsonand--yaml(compact by default, extended with--extended) - Linux-only (currently), using
/proc/meminfo - Small dependency surface and fast startup
bfree currently supports Linux only (reads /proc/meminfo).
bfree is published on crates.io:
Install with:
cargo install bfreegit clone https://github.com/glexposito/bfree
cd bfree
cargo build --release
./target/release/bfreeRelease publishing to AUR is automated by the project release workflow.
Package page:
<aur-helper> -S bfreebfreebfree --extendedbfree --visualbfree --jsonbfree --extended --yamlbfree currently uses the following memory model:
used = MemTotal - MemAvailableavail = MemAvailablecache = Cached + SReclaimable - Shmem(effective reclaimable cache)
Mode notes:
compact(default) showsusedandavailfor memory, plus swap totals/usage.--extendedand--visualalso showcache.--jsonand--yamlexport machine-friendly structures for compact/extended modes.
Implemented:
- Linux
/proc/meminfoparser with typed error handling - Compact, extended, and visual renderers
- Unit tests for memory math and render behavior
- CI for pushes and pull requests
- Release automation for GitHub releases and AUR updates
Planned:
- Fedora COPR packaging and publish pipeline
- Container/cgroup-aware mode
- PSI (Pressure Stall Information) support
cargo run --cargo test --all-targets --all-featuresIssues and pull requests are welcome.
MIT License. See LICENSE.