horshack-dpreview / setpl Goto Github PK
View Code? Open in Web Editor NEWSet PL1 and PL2 power limits for modern Intel processors running on Linux
License: GNU General Public License v3.0
Set PL1 and PL2 power limits for modern Intel processors running on Linux
License: GNU General Public License v3.0
Awesome, thank you for the tool. The 13900K/14900K chips seem to have a 100% failure rate according to some sources because of improperly set power limits by the motherboard manufacturers.
I have a machine on 13900K pre-built by Dell and even though the PL1 was set not as high (200W) and I seemingly never experienced any crashes related to that or overheating in general, but it is still much higher than Intel's claimed TDP of 125W, so I set it down to 150W with your script, and it seems like the temperatures in stress tests have reduced.
I am not that dependant on top-notch performance, I'd rather be on the safer side
Hello, praise your work!
May I ask, can it work on a Linux computer with two cpu?
CPU:
E5-2698B v3 x 2
im running a dell xps 9310 fedora 37
the default pkg limit shows 200/64
i have since set to 22/22
**** Current PL values from 'turbostat'
cpu0: MSR_PKG_POWER_LIMIT: 0x42020000dc8640 (UNlocked)
cpu0: PKG Limit #1: ENabled (200.000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: DISabled (64.000 Watts, 0.002441* sec, clamp DISabled)
**** Setting PL1=22000000 and PL2=22000000 in /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_*_power_limit_uw
**** Enabling PL1 and PL2 in MSR_PKG_POWER_LIMIT
**** New PL values from 'turbostat'
cpu0: MSR_PKG_POWER_LIMIT: 0x4280b000dc80b0 (UNlocked)
cpu0: PKG Limit #1: ENabled (22.000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: ENabled (22.000 Watts, 0.002441* sec, clamp DISabled)
**** MCHBAR is 0xfedc0001
**** Current value of PACKAGE_RAPL_LIMIT_0_0_0_MCHBAR_PCU = 0x00438200:0x00dd80ec
**** Setting PACKAGE_RAPL_LIMIT_0_0_0_MCHBAR_PCU = 0x80000000:0x00000000
Hello there,
thank you for this nice script!
I have fiddled around a bit, to implement a read-only mode on my end and have come across what seems like a bug.
The script uses a variable called INTEL_PL1_ENABLE_BITS_HIGH in line 252 but this variable is never set.
My guess is that this was supposed to be INTEL_PL2_ENABLE_BITS_HIGH which is set alongside INTEL_PL1_ENABLE_BITS_LOW early in the script.
I'm an i5-12500H user(Which is not supported by Intel Extreme Tuning Utility). My Cpu was getting hot and I didn't want to disable Turbo Boost. So I tried to decrease PL1 and PL2 Turbo boost settings via XTU for better Temperatures. Now my CPU is unlocked and PL1 is set as default to 95w(Should be 45W) and PL2 set as default to 115w(Should be 95w) by Intel XTU.
I tried to delete XTU, reinstall Windows, loaded default settings in BIOS, and updated BIOS to a newer version to fix this issue but none of these fixed my issue. My CPU is constantly hitting 100C on idle and I can't change these settings. Other CPU tuning applications only apply Turbo Boost settings to Windows. But I need to overwrite Intel XTU's default settings. Can I use your script to fix my problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.