Re: (ondemand) CPU governor regression between 2.6.23 and 2.6.24
From: Ingo Molnar
Date: Sun Jan 27 2008 - 17:32:43 EST
* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/