Skip to main content

Portable Linux efficiency daemon — tunes CPU governor / RAPL / GPU power-cap to the work-per-joule optimum.

Project description

quner

Portable Linux efficiency daemon. Install it once and it quietly keeps your machine at its work-per-joule optimum — the same work, fewer joules — adapting between idle and heavy compute automatically.

quner probes what levers your host exposes (CPU governor, Intel RAPL package power, NVIDIA power-cap) and tunes the ones present to an interior operating point — not max clock / max TDP — then holds it. Absent levers are reported, not silently ignored. Everything is reversible; nothing destructive happens without you asking for it.

pipx install quner
sudo quner install        # drops a root systemd service + re-tune timer
quner doctor              # what levers this host exposes
quner status              # current profile + operating point + energy
quner selftest            # transient, auto-reverting proof the levers work here

The efficiency principle derives from QIG experiment EXP-132 (work-per-joule peaks at an interior operating point); quner re-measures the optimum on your hardware — no imported constants.

Honest expectation: single-digit-to-~30% energy savings, workload-dependent. This is an efficiency tool (same work, fewer joules), never energy creation.

Safety model

  • Reversible. Every apply snapshots the prior governor / RAPL / GPU-cap to /var/lib/quner/rollback.json; quner uninstall and the service's stop hook restore it. quner apply --restore reverts on demand.
  • Fail-loud. A lever the host doesn't expose is reported unavailable, never silently no-op'd. quner doctor shows exactly what's controllable.
  • Dry-run everywhere. Every mutating command takes --dry-run (prints the exact writes, changes nothing).
  • Inspectable / testable. All hardware paths are env-overridable (QUNER_SYSFS_ROOT, QUNER_NVIDIA_SMI, QUNER_STATE_DIR, …), so the real code runs against a fake tree with zero host impact — see sandbox/run_sandbox.sh.
  • reverse-PRIME is opt-in. The one reboot-level change never fires on install or in the daemon; only via quner prime enable (dry-run first, reboot-gated, with a TTY recovery path).

Validation ladder

  1. Sandbox (bash sandbox/run_sandbox.sh) — proves ~all code with the real /sys byte-identical before/after. Safe to run anywhere.
  2. quner selftest — transient, auto-reverting proof the levers move on your hardware (2-second governor flip, RAPL/GPU set-to-current, restore).
  3. sudo quner install — hold the operating point continuously.

See docs/design/ for the full design.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quner-0.1.1.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quner-0.1.1-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file quner-0.1.1.tar.gz.

File metadata

  • Download URL: quner-0.1.1.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for quner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56a26108dbe160241f70774b586ae4becfc22c88a29f497f5507ab71e2af670d
MD5 7d4ae1a2ae05748eb730e05cb36d75be
BLAKE2b-256 66d536b02336e74199ab87ece7467d4b448c9d719b5554cd578cb7a617b3adbe

See more details on using hashes here.

File details

Details for the file quner-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for quner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fcdeaa50ee35f494c0ea901136f7e4aee21383fa119b21df22841322fc75ec8
MD5 7274745f9ab769a79820f4e84de7350d
BLAKE2b-256 a47e668f497776581627feb0be22d38aac11e4436f1d95ee1c88bcc12ce1da31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page