Jump to content
XPEnology Community

CPU throtling / gorvernor mode in DSM 6.1


raidsm

Recommended Posts

Hi! is the cpu throttling script is still needed in DMS 6.1? My CPU seems to be alway in the "performance" power state...I have a braswell 2.6 in my mac mini latest gen (2014)

 

Thank you for your help! here are some teminal commands I did to find out:

 
 
RaiD@SynOSX:/$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
RaiD@SynOSX:/$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
conservative powersave performance ondemand userspace
RaiD@SynOSX:/$ echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
-sh: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Permission denied
RaiD@SynOSX:/$ grep "MHz" /proc/cpuinfo
cpu MHz         : 2600.000
cpu MHz         : 2600.000
cpu MHz         : 2600.000
cpu MHz         : 2600.000
RaiD@SynOSX:/$

 

Link to comment
Share on other sites

What I did was to create a cronjob ( vi /etc/crontab ),  to execute a script with the following content:

 

 

 

#!/bin/sh
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

 

This, allow my CPU to enter lower frequency state.

Quote

ash-4.3# grep MHz /proc/cpuinfo
cpu MHz        : 800.000
cpu MHz        : 800.000
cpu MHz        : 1700.000
cpu MHz        : 800.000
cpu MHz        : 800.000
cpu MHz        : 2201.000
cpu MHz        : 800.000
cpu MHz        : 2201.000

 

Link to comment
Share on other sites

Thanks for the tip I've reed somewhere a simpler script that does the same and added it through the DSM Schedule task at startup. I'll verify if only running the script one at startup if my cpu will stay on my throttlig mode I've set. If it come back to performance , I'll add it to cron. Some ppl experience a greater power consumption when using the script? Some say that the throttling is built into DSM 6 but I'm not sure if it's the case...

 

here the script I have (made from another user in this post:

 

#!/bin/sh

for c in $(ls -d /sys/devices/system/cpu/cpu[0-9]*);
do if ! grep -q 'conservative' $c/cpufreq/scaling_governor ;
   then echo conservative >$c/cpufreq/scaling_governor ;
fi
done


 

Link to comment
Share on other sites

8 hours ago, raidsm said:

Thanks for the tip I've reed somewhere a simpler script that does the same and added it through the DSM Schedule task at startup. I'll verify if only running the script one at startup if my cpu will stay on my throttlig mode I've set. If it come back to performance , I'll add it to cron. Some ppl experience a greater power consumption when using the script? Some say that the throttling is built into DSM 6 but I'm not sure if it's the case...

 

here the script I have (made from another user in this post:

 


#!/bin/sh

for c in $(ls -d /sys/devices/system/cpu/cpu[0-9]*);
do if ! grep -q 'conservative' $c/cpufreq/scaling_governor ;
   then echo conservative >$c/cpufreq/scaling_governor ;
fi
done


 

Yes using the Task Scheduler in DSM equates creating a cronjob. Adding it through the Task Scheduler or directly through a command line is necessary though else if the cpu goes in performance mode it will not come back to the conservative mode (or other mode you set).

Link to comment
Share on other sites

  • 3 months later...

Hey guys, can you please help.

 

I am running juns 1.02b boot loader and DSM 6.1 on a HP Proliance Gen8 server. The "scalling-govenor" does not exist in the "cpufreq" folder. 

 

admin@diskstation:/sys/devices/system/cpu/cpufreq$ ls -ll
total 0
admin@diskstation:/sys/devices/system/cpu/cpu0$ ls -ll
total 0
drwxr-xr-x 6 root root    0 Nov  6 22:24 cache
drwxr-xr-x 5 root root    0 Nov  6 22:43 cpuidle
-r-------- 1 root root 4096 Nov  6 22:43 crash_notes
-r-------- 1 root root 4096 Nov  6 22:43 crash_notes_size
drwxr-xr-x 2 root root    0 Nov  6 22:43 power
lrwxrwxrwx 1 root root    0 Nov  6 22:43 subsystem -> ../../../../bus/cpu
drwxr-xr-x 2 root root    0 Nov  6 22:43 thermal_throttle
drwxr-xr-x 2 root root    0 Nov  6 22:24 topology
-rw-r--r-- 1 root root 4096 Nov  6 22:24 uevent
admin@diskstation:/sys/devices/system/cpu/cpu0$

Do I have to install a certain package to make the file available or am I doing something wrong ? ... any idea ?

admin@diskstation:/sys/devices/system/cpu/cpu0$ uname -r
3.10.102
admin@diskstation:/sys/devices/system/cpu/cpu0$ lsmod |grep cpu
xt_tcpudp               2271  0
x_tables               15256  14 ip6table_filter,xt_iprange,xt_mark,ip6table_mangle,xt_recent,ip_tables,xt_tcpudp,xt_limit,xt_state,xt_LOG,xt_multiport,iptable_filter,iptable_mangle,ip6_tables
cpufreq_conservative     6232  0
cpufreq_powersave        918  0
cpufreq_performance      922  0
cpufreq_ondemand        8013  0
cpufreq_stats           2849  0
freq_table              2372  2 cpufreq_stats,cpufreq_ondemand

 

Thank you very much.

Link to comment
Share on other sites

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...