Jump to content
XPEnology Community

CPU Frequency scaling for DS918+


Trauma

Recommended Posts

2 minutes ago, Trauma said:

The script think you're cpu is at 430°, so it enter in the cooling mode and set the cpu frequency at 1800 Hz. Its a bug related with the max temp, I'll fix this.

In the meantime, is there a way to bypass this cooling mode bug and test if the script varies the frequencies?

thanks for your time

 

Link to comment
Share on other sites

7 minutes ago, Trauma said:

Bug fixed, please try to update and reinstall, should work.

 

 

you are great...now it works!

thanks for your work

++ cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp1_input
+ currtemp=41000
++ cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp1_max
+ maxtemp=105000
++ awk -F . '{print $1 substr($2,1,2)}'
+ loadavg=008
+ minfreq=800000
+ midfreq=1400000
+ maxfreq=2001000
+ coolfreq=1800000

 

  • Haha 1
Link to comment
Share on other sites

  • 2 months later...

@Trauma 

please tell me why install doesn't work

sudo ./install.sh
● cpufreq-userspace-scaler.service - ACPI cpufreq userspace scaler
   Loaded: loaded (/usr/lib/systemd/system/cpufreq-userspace-scaler.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2022-10-24 20:47:11 +05; 12ms ago
  Process: 24007 ExecStart=/usr/local/bin/scaler.sh (code=exited, status=1/FAILURE)
 Main PID: 24007 (code=exited, status=1/FAILURE)

Oct 24 20:47:11 DOM systemd[1]: Started ACPI cpufreq userspace scaler.
Oct 24 20:47:11 DOM systemd[1]: Starting ACPI cpufreq userspace scaler...
Oct 24 20:47:11 DOM scaler.sh[24007]: cat: /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp1_input: No such file or directory
Oct 24 20:47:11 DOM systemd[1]: cpufreq-userspace-scaler.service: main process exited, code=exited, status=1/FAILURE
Oct 24 20:47:11 DOM systemd[1]: Unit cpufreq-userspace-scaler.service entered failed state.
Oct 24 20:47:11 DOM systemd[1]: cpufreq-userspace-scaler.service failed.

 

Link to comment
Share on other sites

15 hours ago, puls200 said:

@Trauma 

please tell me why install doesn't work

Oct 24 20:47:11 DOM scaler.sh[24007]: cat: /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp1_input: No such file or directory

 


This is your problem, to help you out i'll need to know what are your syno model, DSM version and CPU model.

Link to comment
Share on other sites

Since i can not explain why your sensor id do not start @ 1 and since you seems to be the only one with this issue. I'll recommend you to mod the script before installation. Just change :

 

currtemp=$(cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp1_input)
maxtemp=$(cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp1_max)

to

currtemp=$(cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp2_input)
maxtemp=$(cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/temp2_max)

 

And launch the install.sh

 

Link to comment
Share on other sites

  • 3 weeks later...

Hi all!
Thank you very much for the work you have done. I tried running the script and my clocks went up and down under high load. But they increased to the maximum nominal frequencies (2.5 GHz) but did not increase to the turbo boost frequency (4.4 GHz).

Please tell me what I need to do to use turbo boost at high loads?

 

CPU: Intel Core i5-12400

MB: MSI Pro B660m-a

DSM: 7.1.1-42962 Update 2

Model: DS3622xs+

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 2 months later...

Is this correct?

 

sudo curl https://raw.githubusercontent.com/Trauma/cpufreq-userspace-scaler/master/install.sh -o /tmp/install.sh &&
sudo curl https://raw.githubusercontent.com/Trauma/cpufreq-userspace-scaler/master/scaler.sh -o /tmp/scaler.sh &&
sudo curl https://raw.githubusercontent.com/Trauma/cpufreq-userspace-scaler/master/cpufreq-userspace-scaler.service -o /tmp/cpufreq-userspace-scaler.service &&
sudo chmod +x /tmp/install.sh &&
sudo /tmp/install.sh

 

I'm getting sudo: unable to execute ./install.sh: Permission denied

 

should the installer script do all of the above to simplify install?

 

Link to comment
Share on other sites

4 minutes ago, Black6spdZ said:

Is this correct?

 

sudo curl https://raw.githubusercontent.com/Trauma/cpufreq-userspace-scaler/master/install.sh -o /tmp/install.sh &&
sudo curl https://raw.githubusercontent.com/Trauma/cpufreq-userspace-scaler/master/scaler.sh -o /tmp/scaler.sh &&
sudo curl https://raw.githubusercontent.com/Trauma/cpufreq-userspace-scaler/master/cpufreq-userspace-scaler.service -o /tmp/cpufreq-userspace-scaler.service &&
sudo chmod +x /tmp/install.sh &&
sudo /tmp/install.sh

 

I'm getting sudo: unable to execute ./install.sh: Permission denied

 

should the installer script do all of the above to simplify install?

 

 

Please change it to the version I improved again and try it.
A few days ago, the permission problem of the sh file was fixed.

 

https://github.com/PeterSuh-Q3/tcrp-addons/tree/main/cpufreq-scaler/src

 

There was a bug that counted the number of cores rather than threads of the CPU, so there was a problem that only half of the threads were processed.
Fixed a few other issues.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
On 5/27/2023 at 2:21 AM, Peter Suh said:

Execute in the exact order below.

 

sudo -i
curl -kLO https://github.com/PeterSuh-Q3/tcrp-addons/raw/main/cpufreq-scaler/installondsm.sh
curl -kLO https://github.com/PeterSuh-Q3/tcrp-addons/raw/main/cpufreq-scaler/src/scaler.sh
chmod +x installondsm.sh
./installondsm.sh

I am on a mini nas, named Topton N1 pro, with a 6 core/ 12 thread  AMD Ryzen5 5500u CPU, Just tried that, lokks like all ok, but if check cpu freq, get same speed, 2100MHZ, all 12 lines.

I get the modes: 

powersave performance userspace

 

Now i rebuild loader with ARC loader, tick cpu scaler, and then works! 
 

 

AMD p-state drivers are visible on many more website, so i think, implementation is not a hard work to a professional. 

Have you aní informations about that  future plan, when will be available to use it? 

Edited by Rick4
Link to comment
Share on other sites

On 8/21/2023 at 2:23 PM, Rick4 said:

I am on a mini nas, named Topton N1 pro, with a 6 core/ 12 thread  AMD Ryzen5 5500u CPU, Just tried that, lokks like all ok, but if check cpu freq, get same speed, 2100MHZ, all 12 lines.

I get the modes: 

powersave performance userspace

 

Now i rebuild loader with ARC loader, tick cpu scaler, and then works! 
 

 

AMD p-state drivers are visible on many more website, so i think, implementation is not a hard work to a professional. 

Have you aní informations about that  future plan, when will be available to use it? 

So just found scaler addon on ARC loader, but how can i uninstall this version of cpu scaler? 

Edited by Rick4
Link to comment
Share on other sites

On 8/18/2023 at 5:57 AM, ToanVQ said:

I'm successfully intalled and running this script (with some modifications to properly scaling for all 4 threads).

But my kill a watt does change anything even when all cpu cores running at 800MHz :D is that abnormal?

Most of the time hard drives are way more power hungry than one CPU on this type of setup. You're PSU efficiency is also important, a 500w 80+ Power Supply can drain around 50w without any load. So in this case scaling down the CPU is more a matter of temperature management IMHO.

Link to comment
Share on other sites

On 5/27/2023 at 2:14 AM, Peter Suh said:

 

Please change it to the version I improved again and try it.
A few days ago, the permission problem of the sh file was fixed.

 

https://github.com/PeterSuh-Q3/tcrp-addons/tree/main/cpufreq-scaler/src

 

There was a bug that counted the number of cores rather than threads of the CPU, so there was a problem that only half of the threads were processed.
Fixed a few other issues.

Nice work, though it could have been cool to open a PR on my repo ;)

 

 

  • Like 1
Link to comment
Share on other sites

On 8/25/2023 at 10:34 PM, Trauma said:

Most of the time hard drives are way more power hungry than one CPU on this type of setup. You're PSU efficiency is also important, a 500w 80+ Power Supply can drain around 50w without any load. So in this case scaling down the CPU is more a matter of temperature management IMHO.

Tried an itx config, i3-10100, asrock itx motherboard, 4 fan fron 80to 140mm, 8TB HDD 20GB SSD, and an old  BeQuiet 350W 80+  ATX PSU.  and the complete power consumption was 26W, nearly same az a 300W pico psu and a 60W deer adapter. 

Edited by Rick4
Link to comment
Share on other sites

4 hours ago, Rick4 said:

Tried an itx config, i3-10100, asrock itx motherboard, 4 fan fron 80to 140mm, 8TB HDD 20GB SSD, and an old  BeQuiet 350W 80+  ATX PSU.  and the complete power consumption was 26W, nearly same az a 300W pico psu and a 60W deer adapter. 

Friends! My cpu scaler works or not? 

 

cpuscaler.jpg

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...