raidsm

CPU throtling / gorvernor mode in DSM 6.1

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:/$

 

Share this post


Link to post
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

 

Share this post


Link to post
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


 

Share this post


Link to post
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).

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now