We already have code to launch processes at lower prio, we could
easily extend to do cgroup as well

On Friday, November 19, 2010, Andrea Suisani <sick...@opinioni.net> wrote:
> Hi All,
>
> I was wondering if somebody is following the on-going discussion
> about exploiting the group scheduling[1] kernel feature (available
> since 2.6.24) to increase "user desktop experience" (I'm not saying
> that e17 is slow, on the contrary it makes bite the dust to gnome/kde
> on my system :-).
>
> Basically Mike Galbraith post a kernel patch [2] to lmkl
> to implement automatic TTY-based group scheduling (see [3]
> for a detailed discussion), .
>
> In short, this patch automatically creates a group attached to each TTY
> in the system. All processes with a given TTY as their controlling terminal
> will be placed in the appropriate group; the group scheduling code can then
> share CPU time between groups of processes as determined by their controlling
> terminals.
>
> During the aforementioned discussion Lennart Poettering post a
> user space trick [4] to achieve the same behaviour without patching
> the kernel.
>
> This "trick" is simply a metter of adding 4 lines to your ~/.bashrc:
>
> if [ "$PS1" ] ; then
>          mkdir -m 0700 /cgroup/cpu/$$
>          echo $$ > /cgroup/cpu/$$/tasks
> fi
>
> and add those 3 to your rc.local
>
> mkdir -p /cgroup/cpu
> mount -t cgroup cgroup /cgroup/cpu -o cpu
> mkdir -m 0777 /cgroup/cpu
>
> I've used it on my own system and I can say that it works
> (if your work-flow involved quite often launching tasks
>   from a terminal).
>
> Now I'm wondering if Everything could be modified in such a way
> it could take the advantages of this kernel feature, providing an
> interface to the user to group tasks based on some custom criteria
> or simply automatically group task based on some defaults.
>
> Obviusly if I had the C skill to do it by myself, I would bite...
> but unfortunately it's not the case :P
>
> Andrea
>
> [1] http://lwn.net/Articles/240474/
> [2] http://thread.gmane.org/gmane.linux.kernel/1062787
> [3] http://lwn.net/SubscriberLink/415740/0b54c2b876c89d3a/
> [4] http://thread.gmane.org/gmane.linux.kernel/1063263
>
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to