I think it would be nice to have ignore_nice_load set in the init script of cpufrequtils. Proposed /etc/*(init|conf).d/cpufrequtils are at the given URL. Reproducible: Always
Created attachment 135622 [details] /etc/conf.d/cpufrequtils Added the following 2 ondemand governor options: IGNORE_NICE_LOAD=1 SAMPLING_RATE=200000
Created attachment 135624 [details] /etc/init.d/cpufrequtils If the ondemand governor is specified then check action the 2 options: * IGNORE_NICE_LOAD * SAMPLE_RATE
I've attached my modifications to cpufrequtils which I use make the "ondemand" governor ignore the "foldingathome" client on my laptop.
Comment on attachment 135624 [details] /etc/init.d/cpufrequtils ><HTML><HEAD/><BODY><PRE>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-init.d,v 1.2 2007/05/17 09:07:35 phreak Exp $ > >checkconfig() { > if [ -z "${GOVERNOR}" ]; then > eerror "No governor set in /etc/conf.d/cpufrequtils" > return 1 > fi > if [ -z "${RESTORED_GOVERNOR}" ]; then > RESTORED_GOVERNOR=performance > fi >} > > >affect_change() { > if [ "$#" != "2" ]; then > eerror "affect_change called in correctly, need two args, action, and governor" > return 1 > fi > local cpu n > > for cpu in /sys/devices/system/cpu/cpu[0-9]*; do > n=${cpu##*cpu} > > ebegin "${1} ${2} cpufreq governor on CPU${n}" > cpufreq-set -c ${n} -g "${2}" > > if [ "${GOVERNOR}" == "ondemand" ]; then > if [ -n "${IGNORE_NICE_LOAD}" ]; then > echo ${IGNORE_NICE_LOAD} > $cpu/cpufreq/ondemand/ignore_nice_load > fi > if [ -n "${SAMPLING_RATE}" ]; then > echo ${SAMPLING_RATE} > $cpu/cpufreq/ondemand/sampling_rate > fi > fi > eend ${?} > done >} > > >start() { > checkconfig || return 1 > affect_change "Enabling" "${GOVERNOR}" >} > >stop() { > checkconfig || return 1 > affect_change "Disabling" "${GOVERNOR}" >} ></PRE></BODY></HTML>
Created attachment 135630 [details] /etc/init.d/cpufrequtils sorry I had a hard coded value for the sample rate and I'm not having much fun driving Bugzilla for the first time.
Created attachment 136589 [details] /etc/conf.d/cpufrequtils Includes support for the following for the "ondemand" governor: * ignore nice load * sampling rate For all governors: * minimum frequency
Created attachment 136591 [details] /etc/init.d/cpufrequtils Includes support for the following for the "ondemand" governor: * ignore nice load * sampling rate For all governors: * minimum frequency
cpufrequtils-005 now allows any option that cpufreq-set takes ... as for the reset, i really think that should be set through /etc/sysctl.conf ...
*** Bug 190997 has been marked as a duplicate of this bug. ***
cpufrequtils-006 has a generic-ish init.d script to do this now SYSFS_EXTRA="ondemand/ignore_nice_load=1 ondemand/up_threshold=70" this will write 1 to ondemand/ignore_nice_load and 70 to ondemand/up_threshold
Thanks a lot