|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/lib/pm-utils/power.d/ |
Upload File : |
#!/bin/bash path_mc="/sys/devices/system/cpu/sched_mc_power_savings" path_smp="/sys/devices/system/cpu/sched_smp_power_savings" val=0 case "$1" in true) echo "**sched policy powersave ON" val=1 ;; false) echo "**sched policy powersave OFF" val=0 ;; esac # Based on the values (1-enable, 0-disable) for these controls, # sched groups cpu power will be determined for different domains. # When power savings policy is enabled and under light load conditions, # scheduler will minimize the physical packages/cpu cores carrying the # load and thus conserving power if [ -w "$path_mc" ] ; then echo $val > $path_mc fi if [ -w "$path_smp" ] ; then echo $val > $path_smp fi exit 0