Thermald analogue for AMD CPUs?

Hello,
Is there an analogue of thermald for AMD CPUs?

I have to place a fan under the laptop if I try to compile something because the CPU does not throttle down, reaches extreme temperatures and it switches off automatically.

I have limited the number of parallel jobs etc etc but sometimes clang / ninja other compilers do not follow the options in the pkgbuild or makepkg.conf

I had limited success using cpulimit but I guess some hardware imposed throttling would do the job.

Thanks

you can use lact or amdgpu_top

if you want to restrict CPU freq
maybe try this ? (i didn’t use it tho)

as for the fan management
i’m using this

You should undervolt / adjust PBO, depending on which CPU you have. From my notes (now runs much cooler and faster):

PBO defaults

ASUS X470 Prime Pro: defaults = PPT 142 / TDC 95 / EDC 140

Advanced > AMD CBS > NBIO Common Options > XFR Enhancement > Accepted
Precision Boost Overdrive = Manual
  • PPT 130 / TDC 85 / EDC 125 geekbench =
  • PPT 128 / TDC 84 / EDC 126 geekbench = 2265 / 11,075
  • PPT 125 / TDC 80 / EDC 120 geekbench =
  • PPT 120 / TDC 75 / EDC 115 geekbench =
  • PPT 110 / TDC 70 / EDC 105 geekbench = 2275 / 11,191
  • PPT 100 / TDC 70 / EDC 95 geekbench = 2273 / 11,194

Undervolt


I can dump the rest of my notes if you want more info.