GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Explore
  • Help
  • Sign in

This view

  • Original page
  • New address

GeezerVison is showing git.breadway.dev — breadram

Breadway/breadram
1
0
Fork
You've already forked breadram
0
Code Issues 5 Pull requests 1 Projects Releases Packages Wiki Activity Actions
Automatic memory management for BOS and the bread ecosystem.
138 commits 2 branches 0 tags 4.4 MiB
  • Rust 95.5%
  • Shell 3.5%
  • Python 1%
Find a file
Exact
Breadway 584b31a420
All checks were successful
CPU checks / check (push) Successful in 1m54s
Details
dev release / build (push) Successful in 6m37s
Details
Merge pull request 'Align EVENTS.md with BESS-001' (#95) from feature/events-md-compliance into main
2026-11-23 15:22:21 +08:00
.forgejo/workflows
ci
crates
docs
examples
packaging
scripts
.gitignore
bakery.toml
Cargo.lock
Cargo.toml
CONTRIBUTING.md
EVENTS.md
LICENSE
README.md

README.md

breadram

Automatic memory management for BOS and the bread ecosystem.

breadram watches Linux memory pressure and, when asked to, applies bounded and reversible relief so a machine keeps doing useful work instead of thrashing or letting the out of memory killer pick a victim at random.

What the first release does

The first release is the standalone core: a daemon and a CLI that monitor host and cgroup memory pressure, identify large workloads, decide when the machine is under pressure, and apply authorized, reversible controls. It runs headless with nothing else installed. Automatic per workload relief, model server adapters, job admission, and desktop integration follow in later milestones (see docs/ISSUE-MAP.md).

By default it runs in monitor mode: it observes, explains, and records, and does not change system state. automatic mode is opt in.

Current state

The M1 foundation is implemented: telemetry, workload inventory, validated configuration, and the daemon with its versioned local IPC. The daemon monitors memory and workloads and serves a status snapshot over an owner only Unix socket; the CLI reads it. Pressure policy, controls, model adapters, job admission, and desktop integration are still to come, so the daemon currently observes and reports rather than acting.

Compatibility limits

  • Supported and tested baseline is Linux with cgroup v2 and systemd. cgroup v1 and missing PSI are degraded, explicitly reported states, not silent failures.
  • No root daemon is required. Controls that need privilege go through a small typed helper or the owning manager, and only when the operator authorizes it.
  • breadsearch, breadd, BOS, a compositor, model runtimes, and GPU libraries are all optional. Core management never waits on any of them.
  • breadram coexists with existing OOM management and does not install a second out of memory killer.

Build

cargo build --workspace

Run the daemon and client:

cargo run -p breadramd -- --mode monitor          # or --profile desktop
cargo run -p breadram-cli -- status
cargo run -p breadram-cli -- --json capabilities
cargo run -p breadram-cli -- watch

The daemon listens on $XDG_RUNTIME_DIR/breadram.sock unless --socket is given, and the socket is owner only. breadram exits 0 on success, 1 when the daemon is unavailable or returns an error, and 2 for a usage error.

Install

./packaging/install.sh install

Installs the systemd user service with the example configuration (monitor mode, inert until the operator opts in). See docs/INSTALL.md for enable, disable, upgrade, uninstall, hardening, and headless notes.

Layout

crates/breadram-core   shared contract types, no system or bread dependencies
crates/breadramd       the daemon binary
crates/breadram-cli    the breadram client binary
docs/                  project brief, architecture, issue map, handoff
packaging/             user service, example config, installer

Documentation

  • docs/PROJECT.md: the product contract.
  • docs/ARCHITECTURE.md: the decisions the implementation honours.
  • docs/ISSUE-MAP.md: the full card map and workflow.
  • docs/AGENT-HANDOFF.md: starting point for the next agent.
  • docs/CLI.md: the command line surface, its output contract, and exit codes.
  • docs/ADAPTER-CONTRACT.md: the optional workload adapter interface.
  • docs/HOOKS.md: the cooperative hook protocol for runtimes without an adapter.
  • docs/INSTALL.md: installing the user service, with hardening and recovery notes.
  • docs/LLAMACPP.md: the llama.cpp server and router adapter, router unload administration, and the real-server verification.
  • docs/SERVING-COORDINATION.md: request leases and the drain, sleep, and wake lifecycle.
  • CONTRIBUTING.md: branch model and checks.

License

MIT. See LICENSE.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.