Messages in this thread | | | Date | Sun, 27 Jan 2008 23:32:18 +0100 | From | Ingo Molnar <> | Subject | Re: (ondemand) CPU governor regression between 2.6.23 and 2.6.24 |
| |
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> On Sun, 2008-01-27 at 17:57 +0100, Toralf Förster wrote: > > > It would be nice to run a grid application at lowest priority > > without impact to power / fan / temperature but OTOH have full > > performance for desktop applications, isn't it ? > > This can be achieved by giving the group/uid the grid application uses > a weight of 2.
yes, that's the correct solution. For example, the following line in /etc/rc.d/rc.local:
echo 2 > /sys/kernel/uids/`grep -w nobody /etc/passwd | cut -d: -f3`/cpu_share
sets user 'nobody' to a very low cpu weight. If there's any grid user, it can be done similarly. The default is 1024.
Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |