raidsm Posted July 18, 2017 Share #1 Posted July 18, 2017 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:/$ Quote Link to comment Share on other sites More sharing options...
raidsm Posted July 19, 2017 Author Share #2 Posted July 19, 2017 I forgot to notify for replies Quote Link to comment Share on other sites More sharing options...
wenlez Posted July 19, 2017 Share #3 Posted July 19, 2017 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 Quote Link to comment Share on other sites More sharing options...
raidsm Posted July 19, 2017 Author Share #4 Posted July 19, 2017 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 Quote Link to comment Share on other sites More sharing options...
Polanskiman Posted July 20, 2017 Share #5 Posted July 20, 2017 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). Quote Link to comment Share on other sites More sharing options...
JimKnopf Posted November 6, 2017 Share #6 Posted November 6, 2017 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. Quote Link to comment Share on other sites More sharing options...
haldi Posted November 8, 2017 Share #7 Posted November 8, 2017 You might want to Read this Thread: 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.