istro

Infrastructure

Hardware

See what the machine is made of, check how worn it is, and manage GPUs, benchmarks, printers and a UPS.

The Hardware page shows what your server is made of and how it holds up. Tabs: Machine, Graphics Card, AI, Jobs, Benchmarks, Printers and, on a Raspberry Pi, Raspberry Pi.

#Hardware Info

The Machine tab lists the board, processor, memory, disks, network ports and temperatures. It reads /proc and /sys, so it needs no extra packages.

bistro hw                       # CPU, memory, board, disks, ports, GPUs, temperatures
bistro hw --json

On a Pi, the Raspberry Pi tab sets overclock, fan, boot order and more. See Raspberry Pi.

#Hardware Lifetime

Used disks fail. Hwlife scores each disk from 0 to 100, where higher is worse. A score of 70 or more means plan a replacement. At 90 or more, replace it now.

bistro hwlife report            # every disk: age, power-on hours, wear, bad sectors, score
bistro hwlife scrub run         # read every block of Btrfs and ZFS and repair from the good copy
bistro hwlife scrub status      # the last result
bistro hwlife ramtest 512       # test 512 MB of RAM with memtester
bistro hwlife history           # what it did, newest first
bistro hwlife off               # turn the daily sweep off (on turns it back on)

The daily sweep runs a monthly scrub and a RAM test after memory errors. It sends one inbox note a month for the worst disk at 70 or more. It never removes or formats anything.

#Graphics Cards

The Graphics Card tab shows each card with load, memory, temperature, power and fan. It marks a card that slows itself down.

bistro gpu list                 # vendor, model, slot, driver, VRAM
bistro gpu status               # load, VRAM used, temperature, power, throttling
bistro gpu procs                # programs using an NVIDIA GPU
bistro gpu setup --dry-run      # show what the driver install would do
bistro gpu check                # driver mismatch, Secure Boot, missing container support
bistro gpu limit 0 200          # set an NVIDIA power limit of 200 W on card 0

Bistro raises an alert once when a card reaches 85 C or slows itself down.

Give an app one card from the page or the shell. A partial share works on NVIDIA with MPS only. Other cards go whole to one app.

bistro gpu assign 0 jellyfin --share 50
bistro gpu assignments
bistro gpu unassign jellyfin

#Other Accelerators

The same tab lists Coral, Hailo, Intel and AMD NPUs and Thunderbolt GPU boxes. An eGPU shows up as a normal card once its box is authorized.

bistro accel status
bistro accel setup --dry-run    # packages, udev rules and modules for what was found
bistro accel assign frigate coral
bistro accel unassign frigate

#AI Models and GPU Memory

The AI tab shows the AI gateway, model files and the models loaded in GPU memory. See Local AI. You can keep a model loaded or unload idle ones.

bistro vram status
bistro vram keep qwen3:8b on    # load it and keep it loaded
bistro vram unload qwen3:8b
bistro vram idle 10             # unload unkept models after 10 idle minutes
bistro vram check qwen3:8b      # does it fit now?

#Jobs

The Jobs tab queues long GPU work such as training. Each GPU runs one job at a time. Jobs pause while you use the machine and resume when it calms down.

bistro gpujobs add train --gpu 0 --when cheap -- python train.py
bistro gpujobs list
bistro gpujobs pause 1          # resume 1, cancel 1, logs 1

A --when cheap job starts only inside the CHEAP_START to CHEAP_END window in /etc/bistro/bistro.conf.

#Benchmarks

Benchmarks give repeatable numbers to compare over time. Bistro keeps every result.

bistro bench cpu
bistro bench disk /srv/data     # 256 MB write and read, page cache bypassed
bistro bench net 192.168.1.20   # needs iperf3 -s on that host
bistro bench model qwen3:8b     # tokens per second through Ollama
bistro bench history
bistro bench compare cpu        # latest against the one before

#Printers

The Printers tab shares printers with your network through CUPS. Phones and laptops find them by themselves.

bistro print setup              # install CUPS, share printers, admin from the LAN only
bistro print add office ipp://192.168.1.50/ipp/print
bistro print list
bistro print remove office

The first printer added becomes the default. Open port 631 to the LAN if the firewall is on. See Security.

#UPS

A UPS keeps the server up through a power cut. Bistro uses NUT and shuts down cleanly when the battery runs low. The Power page shows its state.

bistro ups setup                # driver usbhid-ups, port auto
bistro ups status               # mains or battery, charge, minutes left, load
bistro ups test                 # say what happens on a power cut, do nothing