Undervolting a Ryzen 7 5825U Homelab Node: Measured Idle and Load Power
Bottom line: A Ryzen 7 5825U in a 15W-class chassis can drop roughly 3–5W at idle and 8–12W under sustained all-core load once you cap PPT/EDC/TDC and apply a per-core Curve Optimizer offset — measured at the wall, not just in software telemetry.
The 5825U is a Barcelo (Zen 3) part: 8C/16T, 16MB L3, 15W nominal TDP, configurable by the OEM. In a homelab node it usually idles at 8–14W package power because the firmware ships a conservative power table and no undervolt. The two levers that actually move the needle are the SMU power limits (PPT/EDC/TDC) and Curve Optimizer (CO), a per-core voltage/frequency offset. This is what I changed, how I verified it, and where it went wrong.
Establish a measurement baseline first
Wall-meter numbers are the only ones that matter for a homelab, but you need package telemetry to attribute changes. On Linux, amd_pmu and the k10temp driver expose what you need:
1 | # Package power, per-core clocks, and temperature |
turbostat reads the SMU’s running average power limit counters and is the closest thing to a trustworthy package-power figure on Zen 3. Cross-check against a inline wall meter (a Kill-A-Watt or a smart plug with energy reporting) at the PSU input. Expect a 15–25% gap between package power and wall power from VRM losses, the PSU’s own idle draw, and any BMC/NIC/storage.
Record three states before touching anything: idle (no containers, NIC link up, disks spun down), light load (one or two services), and sustained all-core (stress-ng --cpu 16 --timeout 300s). Run each for at least five minutes and take the median, not the first sample.
The firmware is the first bottleneck
On most 5825U mini-PCs and NAS boards, the OEM’s default power table is not the 15W spec — it’s often 25–35W PPT with EDC set high enough to let all eight cores boost hard. That’s fine for a laptop on battery, wrong for a box that runs 24/7.
Check what the firmware actually exposes:
1 | # Dump current SMU limits and CO offsets (requires ryzen_smu or ryzenadj) |
ryzenadj --info prints PPT LIMIT FAST, PPT LIMIT SLOW, TDC LIMIT, EDC LIMIT, and the current CO values per core. If your board’s BIOS has no exposed settings, ryzenadj writes the SMU mailbox directly and is the only path. If the BIOS does expose PBO/Curve Optimizer, prefer it — it survives reboots and doesn’t depend on a userspace daemon.
Setting PPT, EDC, and TDC
The three limits interact. PPT is the package power ceiling in milliwatts. EDC is the current ceiling in amps, which governs short bursts and how aggressively the boost algorithm can push. TDC is the sustained current ceiling. For a 15W-class part, a sane starting point:
| Limit | Stock (typical OEM) | Target | Effect |
|---|---|---|---|
| PPT fast | 35000 mW | 18000 mW | Caps burst power |
| PPT slow | 25000 mW | 15000 mW | Caps sustained power |
| TDC | 45000 mA | 30000 mA | Sustained current |
| EDC | 65000 mA | 45000 mA | Burst current |
| CO all-core | 0 | -20 | Voltage offset per core |
Apply and verify:
1 | sudo ryzenadj \ |
The --tctl-temp flag is a thermal ceiling, not a target; 85°C is conservative for a passively cooled or low-airflow enclosure and prevents the SMU from throttling in a way that fights your CO offset.
Curve Optimizer, per core
Curve Optimizer applies a negative voltage offset per core in units of ~3–5mV (the exact step is SMU-dependent and not documented by AMD). A -20 offset on a 5825U is usually stable; -30 is where silicon lottery starts to matter. The failure mode is not a crash — it’s a WHEA error or a silent miscalculation under load, so you validate with a stress test that checks results, not just one that spins.
If your BIOS exposes CO, set it there. If not, ryzenadj can write it, but the offset is lost on reboot:
1 | # Apply -20 to all cores (core indices 0-7 on the 5825U) |
The --set-coall flag applies uniformly. Per-core offsets (--set-co with a core index) are worth the extra time only if one core is the stability limiter — check dmesg | grep -i whea after each stress run.
Before and after, measured
These are wall-meter figures from a mini-ITX 5825U board with a 120W DC-DC PSU, one NVMe, one SATA SSD, and a 2.5GbE link up. Package power from turbostat. Five-minute medians.
| State | Stock wall | Tuned wall | Stock pkg | Tuned pkg |
|---|---|---|---|---|
| Idle | 11.4 W | 8.1 W | 4.2 W | 2.9 W |
| Light (2 containers) | 16.8 W | 12.3 W | 8.1 W | 5.4 W |
| All-core sustained | 41.2 W | 29.6 W | 31.5 W | 17.8 W |
The idle delta is smaller than the load delta because at idle the SoC is already in a low-power state and the wall figure is dominated by VRM and PSU losses. The load delta is where the PPT cap does its work: the stock table was letting the package pull 31W indefinitely, which is a 35W-class behavior, not 15W.
Making it survive reboots
ryzenadj changes are volatile. Options, in order of preference:
- BIOS settings, if exposed. Nothing to maintain.
- A systemd unit that runs
ryzenadjat boot, ordered after the SMU driver loads. - A udev rule triggered on the
k10tempdevice.
The systemd unit is the least fragile:
1 | # /etc/systemd/system/ryzenadj.service |
Enable with systemctl enable --now ryzenadj.service and confirm with ryzenadj --info after a reboot. If the unit fails silently, check journalctl -u ryzenadj — the usual cause is the SMU mailbox being locked by the firmware until the ryzen_smu module is loaded.
Pitfalls and how to diagnose them
WHEA errors after a CO offset. dmesg -w | grep -i whea while running stress-ng --cpu 16 --verify. If errors appear, back the offset off by 5 and retest. A CO offset that’s too aggressive often passes a spin-only stress test and fails a verify test.
The limits don’t stick. ryzenadj --info reverts to stock values after a suspend/resume cycle. The SMU reloads its defaults on resume; re-run the service via a systemd-sleep hook or accept the revert.
Package power reads zero or nonsense. turbostat needs the msr module and root. On some kernels the SMU energy counter isn’t exposed; fall back to the wall meter and treat package telemetry as directional only.
Thermal throttling masks the power cap. If Tctl sits at the --tctl-temp ceiling under load, you’re thermally limited, not power limited, and the PPT cap isn’t doing anything. Improve airflow or lower the thermal ceiling before drawing conclusions.
Idle power doesn’t drop. Check ASPM and the PCIe link state: lspci -vv | grep -i aspm and cat /sys/module/pcie_aspm/parameters/policy. A 2.5GbE NIC or an NVMe in a high power state can add 2–3W at idle regardless of CPU settings.
The board ignores ryzenadj entirely. Some OEM firmware locks the SMU mailbox. ryzenadj returns an error on the first write; there’s no workaround short of a BIOS mod, which is out of scope for a production node.
FAQ
Is undervolting a 5825U safe for 24/7 operation?
Yes, within reason. Curve Optimizer reduces voltage at a given frequency; it doesn’t exceed silicon limits. The risk is instability, not damage — a too-aggressive offset causes WHEA errors or silent miscalculation, which is why you validate with a verify-mode stress test rather than a spin-only one.
Why cap PPT at 18W when the part is rated 15W?
The 15W figure is the nominal TDP, not a hard ceiling. The SMU’s fast limit governs short bursts, and 18W gives headroom for container startup and compile jobs without letting sustained load sit at the OEM’s much higher default. The slow limit at 15W is what actually holds sustained package power down.
Does Curve Optimizer survive a BIOS update?
No. A BIOS update typically resets CO and PBO settings to defaults. Re-apply after any firmware change and re-verify with ryzenadj --info and a stress run.
Can I use this on a 5825U laptop instead of a homelab node?
The settings apply, but the thermal and power envelope is different and the battery/charging path changes the wall-meter math. Treat laptop results separately; the package-power deltas should transfer, the wall deltas won’t.
What’s the actual power saving per year?
At the measured deltas — roughly 3W idle and 11W under sustained load — a node that idles 90% of the time and loads 10% saves on the order of 20–30 kWh/year. That’s small in money terms; the reason to do it is thermal headroom and fan noise in a closet, not the electricity bill.
Do I need ryzen_smu or is ryzenadj enough?
ryzenadj needs the SMU mailbox interface, which on most kernels means the ryzen_smu module or an equivalent. If ryzenadj --info fails to read limits, load the module first (sudo modprobe ryzen_smu) and retry before assuming the firmware is locked.











