Install setPL.sh


# execute as root
apt install -y devmem2 msr-tools
cd /root
wget https://raw.githubusercontent.com/horshack-dpreview/setPL/master/setPL.sh
chmod +x ./setPL.sh
mv setPL.sh /usr/local/sbin

Usage example

setPL.sh 15 55

Output example

**** Current PL values from 'turbostat'
cpu0: MSR_PKG_POWER_LIMIT: 0x428280001e8230 (UNlocked)
cpu0: PKG Limit #1: ENabled (70.000 Watts, 32.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: ENabled (80.000 Watts, 0.002441* sec, clamp DISabled)
**** Setting PL1=15000000 and PL2=55000000 in /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_*_power_limit_uw
**** PL1 and PL2 already enabled in MSR_PKG_POWER_LIMIT
**** New PL values from 'turbostat'
cpu0: MSR_PKG_POWER_LIMIT: 0x4281b8001e8078 (UNlocked)
cpu0: PKG Limit #1: ENabled (15.000 Watts, 32.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: ENabled (55.000 Watts, 0.002441* sec, clamp DISabled)
**** MCHBAR is 0xfedc0001
**** Current value of PACKAGE_RAPL_LIMIT_0_0_0_MCHBAR_PCU = 0x80000000:0x00000000
**** MMIO limit reg locked with PL1/PL2 disabled on previous invocation (expected)

i7z

apt install -y i7z
Cpu speed from cpuinfo 3071.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess correctly try estimating via tsc
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 3072 MHz
  CPU Multiplier 31x || Bus clock frequency (BCLK) 99.10 MHz

Socket [0] - [physical cores=16, logical cores=22, max online cores ever=16]
  TURBO ENABLED on 16 Cores, Hyper Threading ON
  Max Frequency without considering Turbo 3171.10 MHz (99.10 x [32])
  Max TURBO Multiplier (if Enabled) with 1/2/3/4/5/6 Cores is  51x/51x/51x/51x/48x/48x
  Real Current Frequency 1786.14 MHz [99.10 x 18.02] (Max of below)
        Core [core-id]  :Actual Freq (Mult.)      C0%   Halt(C1)%  C3 %   C6 %  Temp      VCore
        Core 1 [0]:       1654.18 (16.69x)         1    98.8       0    1.13    32      0.6625
        Core 2 [1]:       1722.05 (17.38x)         1    98.3       0    1.59    30      0.7125
        Core 3 [3]:       1646.51 (16.62x)         1    99.8       0       0    30      0.6975
        Core 4 [6]:       1786.14 (18.02x)         1    99.9       0       0    32      0.6899
        Core 5 [8]:       1770.98 (17.87x)         1     100       0       0    32      0.6450
        Core 6 [10]:      1701.12 (17.17x)         1    98.7       0    1.22    32      0.6775
        Core 7 [12]:      1010.65 (10.20x)         1    0.057      0    99.9    34      0.5975
        Core 8 [13]:      1419.84 (14.33x)         1    0.0227     0     100    34      0.6675
        Core 9 [14]:      1492.29 (15.06x)         1    0.0336     0     100    34      0.6675
        Core 10 [15]:     1168.38 (11.79x)         1    0.124      0    99.8    33      0.6675
        Core 11 [16]:     1162.60 (11.73x)         1    0.484      0    99.5    33      0.6725
        Core 12 [17]:     959.70 (9.68x)           1    0.0855     0    99.9    32      0.6725
        Core 13 [18]:     978.51 (9.87x)           1    0.449      0    99.5    32      0.6725
        Core 14 [19]:     1106.25 (11.16x)         1    0.386      0    99.6    32      0.6725
        Core 15 [20]:     1097.29 (11.07x)         1    0.272      0    99.7    36      0.0000
        Core 16 [21]:     1097.29 (11.07x)         1    0.499      0    99.5    36      0.0000


intel-undervolt

https://github.com/kitsunyan/intel-undervolt

undervolt and tjoffset do not work on MOREFINE S800 but it still might be used to adjust power limits

apt -y install pkg-config apt make gcc
git clone https://github.com/kitsunyan/intel-undervolt && cd intel-undervolt/
./configure --enable-systemd --enable-openrc
make && make install
systemctl daemon-reload
vi /etc/intel-undervolt.conf


/etc/intel-undervolt.conf
enable yes
power package 110/0.02 100/28
interval 5000
daemon power


systemctl restart intel-undervolt.service
systemctl status intel-undervolt


root@ubuntu2404:~/pkg.OPT.EPPprofile-1.05.240206.1-x86_64# systemctl status intel-undervolt
○ intel-undervolt.service - Intel Undervolt Service
     Loaded: loaded (/usr/lib/systemd/system/intel-undervolt.service; enabled; preset: enabled)
     Active: inactive (dead) since Mon 2025-05-19 19:24:08 UTC; 19min ago
   Main PID: 47405 (code=exited, status=0/SUCCESS)
        CPU: 2ms

May 19 19:24:08 ubuntu2404 systemd[1]: Starting intel-undervolt.service - Intel Undervolt Service...
May 19 19:24:08 ubuntu2404 intel-undervolt[47405]: Short term package power: 110 W, 0.020 s, enabled
May 19 19:24:08 ubuntu2404 intel-undervolt[47405]: Long term package power: 100 W, 28.000 s, enabled
May 19 19:24:08 ubuntu2404 intel-undervolt[47405]: Critical offset: -0°C
May 19 19:24:08 ubuntu2404 systemd[1]: intel-undervolt.service: Deactivated successfully.
May 19 19:24:08 ubuntu2404 systemd[1]: Finished intel-undervolt.service - Intel Undervolt Service.



  • No labels