Getting the most out of your desktop (gaming) / STAPM Limit

So I just got my new Framework Desktop this week. On the weekend I was able to crack in to some heavy tweaking to get the most out of the desktop while gaming (LLM performance was good out of the box). I wanted to share what I’ve learned so that others might benefit, it’s nothing ground breaking

General Performance Uplift.

If you just want to generally uplift your performance you can use this tool to increase your power limits. You can raise your sustained power from 120w (stock) to 132w and your boost power from 140w to 154w. This will give you quite an uplift in performance.

./ryzenadj --stapm-limit 132000 --slow-limit 154000

Thanks to Framework Desktop APU Boost behavior/power levels - #25 by lhl who turned me on to this tool.

You should also set your system power profile. I like this one

tuned-adm profile accelerator-performance

CPU Starvation

Depending on the game your playing you may face CPU starvation. Basically what appears to happen is the GPU will get a consistent 60w ish of power, while the CPU gets whatever left. With the stock powerlimits and clock speeds, after the boost power expires my CPU clocks would plummet into the 1.6Ghz range. Causing massive frame time issues in Helldivers 2. Increasing the powerlimit alone is not enough to solve this issue.

To keep the CPU clock speed up you can reduce GPU clock speed. The ryzendadj tool does not seem capable of this, so you can do it directly through the amd_gpu driver. These commands simply set the max clock speed of the GPU.

echo "manual" | sudo tee /sys/class/drm/card1/device/power_dpm_force_performance_level
echo "s 1 <mhz>" | sudo tee /sys/class/drm/card1/device/pp_od_clk_voltage
echo "c" | sudo tee /sys/class/drm/card1/device/pp_od_clk_voltage

I recommend setting 2700mhz though I imagine it does depend on the game. At 2700mhz in Helldivers 2 the CPU will stay at around 4.7-4.8Ghz after the boost power has expired.

STAMP Limit

Now this is a question for anyone out there. Is there any way to sustain the boost power for longer? Or any way to exceed the 132w max sustained power limit? Looking at VRM temps they only reach 55c during the boost period which is about 15mins long at 154w.

I’m most defiantly naive about this, but if the CPU / GPU is at 70-75c and the VRM is at 55c during boost power, why can’t the boost power stay on forever? I did try tweaking

ryzenadj --slow-time=xxx --stapm-time=xxx

but they seem to have no effect.

At full 154w boost power the GPU can stay at 2.9Ghz and the CPU at 5.1Ghz. It would be amazing if a future BIOS update allowed the stapm limit to be set higher so we could run at boost power (154w) past the 10-15min window. :folded_hands:

Or if anyone knows how to keep the boost power going that would be amazing.

2 Likes