Public bug reported: Binary package hint: cpufrequtils
When you enter a governor into /etc/defaults/cpufrequtils , this governor is only applied to cpu 0, as indicated in the manpage of cpufrequtils ("Omitting the -c or --cpu argument is equivalent to setting it to zero."). This causes, especially in multicore-cpus, such as a core2duo, that no scaling of the cpu frequency is done anyway. A modified init-script fixes this issue by applying the supplied parameters to ALL cpus, which fixes this issue. Please see attachment. Please include in a future version of this package. ** Affects: cpufrequtils (Ubuntu) Importance: Undecided Status: New ** Description changed: Binary package hint: cpufrequtils When you enter a governor into /etc/defaults/cpufrequtils , this governor is only applied to cpu 0, as indicated in the manpage of cpufrequtils ("Omitting the -c or --cpu argument is equivalent to setting it to zero."). This causes, especially in multicore-cpus, such as a core2duo, that no scaling of the cpu frequency is done anyway. A modified init-script fixes this issue by applying the supplied - parameters to ALL cpus, which fixes this issue. - - *snip* - #!/bin/bash - ### BEGIN INIT INFO - # Required-Start: $local_fs - # Required-Stop: - # Default-Start: 2 3 4 5 - # Default-Stop: 0 1 6 - # Short-Description: set CPUFreq kernel parameters - # Description: utilities to deal with CPUFreq Linux - # kernel support - ### END INIT INFO - # - - DESC="CPUFreq Utilities" - - PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin - PROGRAM=/usr/bin/cpufreq-set - CPUFREQ_OPTIONS='' - - # use lsb-base - . /lib/lsb/init-functions - - [ -x $PROGRAM ] || exit 0 - - if [ -f /etc/default/cpufrequtils ] ; then - . /etc/default/cpufrequtils - else - ENABLE="false" - fi - - # if not enabled then exit gracefully - [ "$ENABLE" = "true" ] || exit 0 - - if [ $MAX_SPEED -gt 0 ] ; then - CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --max $MAX_SPEED" - fi - - if [ $MIN_SPEED -gt 0 ] ; then - CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --min $MIN_SPEED" - fi - - - case "$1" in - start|force-reload|restart|reload) - log_action_begin_msg "$DESC: Setting $GOVERNOR CPUFreq governor" - - if [ -n $GOVERNOR ] ; then - - COUNTER=0 - - while [ $COUNTER -lt `grep -c "^processor" /proc/cpuinfo` ]; do - $PROGRAM -c $COUNTER --governor $GOVERNOR $CPUFREQ_OPTIONS 2>&1 > /dev/null - let COUNTER=COUNTER+1 - done - - fi - - log_action_end_msg $? - ;; - stop) - ;; - *) - echo "Usage: $0 {start|stop|restart|reload|force-reload}" - exit 1 - esac - - exit 0 - *snap* + parameters to ALL cpus, which fixes this issue. Please see attachment. Please include in a future version of this package. -- cpufrequtils init script lacks multi-cpu support - fix included https://bugs.launchpad.net/bugs/135155 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs