Comment by ac29
For people with Intel processors, check out raplcap: https://github.com/powercap/raplcap
It lets you set specific power consumption limits in W instead of attempting to do the same by restricting maximum core frequencies (which could also be useful in addition to overall power limits).