Overview
Cryovalent runs a deterministic, 50 Hz closed-loop Proportional-Integral-Derivative (PID) controller that tracks CPU core temperature and dynamically throttles the hardware package power limit through the Linux powercap RAPL sysfs interface.
It works identically on both Intel and AMD x86-64 processors using universal kernel abstractions — removing any need for vendor-specific tools like ryzenadj or intel-undervolt.
Key Features
Advanced Thermal Control
- PID Loop Feedback: Dynamic proportional, integral (with anti-windup clamping), and derivative (reacts to rate of error change) terms stabilize heat output proactively.
- Adaptive Power Limits: Swaps power limits mid-flight within one control tick (~20 ms) when workload spikes occur.
Ultra-Lean Architecture
- Zero Allocations: The critical 50 Hz execution path is entirely heap-allocation-free; all telemetry and communication buffers are pre-allocated at startup to minimize CPU and scheduling overhead.
- Pure Rust Standard Library: Zero external dependency crate tree ensures minimal binary size and optimal memory footprints.
Production Hardening
- Security Sandbox: The systemd unit restricts write privileges globally via
ProtectSystem=strictand runs without root capabilities by locking down RAPL operations explicitly. - Hot-Reload: Swap configuration profiles dynamically mid-flight by sending a
SIGHUPsignal to the daemon.
Installation & Running
Cryovalent is distributed as a native Debian package (.deb) that detects desktop versus headless server contexts on installation.
1. Install Debian Package
2. Build and Run from Source
Ensure you have the Rust compiler toolchain (stable, version 1.70 or newer) installed on your system:
Configuration Spec
The daemon configures profiles inside the /etc/cryovalent.conf file: