System
Self-Care
How Bistro keeps a server healthy without you.
#Memory
Memory comes in tiers. RAM first, then zram (compressed RAM, priority 100), then a swap file on the data disk (priority 10). earlyoom stops a runaway process before the system freezes. Swappiness is tuned to match.
#Every 15 Minutes
bistro-watch cleans the system disk when it is over 90% full. It flags failing disks (SMART), and records out-of-memory kills and crashed services. On a Pi it also records under-voltage and heat throttling.
#Junk Cleanup
bistro-clean runs weekly and on demand. It removes package caches and unused dependencies for every manager, journals over 200 MB or 4 weeks, expired temp files, old crash dumps, old rotated logs and stale user caches. It never touches your files, containers, volumes or VM disks.
bistro clean
bistro health # score 0-100 and the three fixes that help most
bistro forecast # when each disk will be full#Safe Updates
Updates run in the maintenance window. You choose the window, auto-reboot and the weekly cleanup on the Maintenance page. bistro review shows what changed in a week.
#Machine Size Profiles
PROFILE=auto|tiny|small|standard. Auto picks by memory: under 700 MB is tiny, under 2.5 GB or one core is small.
- Tiny and small raise zram, make earlyoom act sooner, cap the journal and
/tmp, and turn off idle services. - Only tiny drops docs, man pages and other languages from new packages.
- Standard restores everything.
#SD Card Care
SD_CARE=auto|on|off. Auto turns it on when the system disk is /dev/mmcblk*. It sets noatime, a 60 second commit, the journal and /tmp in memory, no swap file on the card and no cached .deb files.
A power cut can lose the last 60 seconds of writes, and logs do not survive a reboot.
#Split Work
Containers and VMs get half the CPU and I/O weight of the system and a memory ceiling of 90%. Background jobs run at idle priority. irqbalance spreads interrupts across cores.
#Fast Boot
A 1-second boot menu, no waiting for the network, a capped journal, the best I/O scheduler per disk type, and a lean base install with no recommended packages.