[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080127223218.GA19948@elte.hu>
Date: Sun, 27 Jan 2008 23:32:18 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Toralf Förster <toralf.foerster@....de>,
vatsa@...ux.vnet.ibm.com, Tomasz Chmielewski <mangoo@...g.org>,
linux-kernel@...r.kernel.org, dhaval@...ux.vnet.ibm.com
Subject: Re: (ondemand) CPU governor regression between 2.6.23 and 2.6.24
* Peter Zijlstra <a.p.zijlstra@...llo.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists