Re: [PATCH v4] sched: automated per session task groups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Galbraith
Date: Tuesday, November 30, 2010 - 10:57 pm

On Tue, 2010-11-30 at 14:36 -0500, Vivek Goyal wrote:


Yes, if it evolves, it's interface will need to evolve as well.  It
could have been a directory containing buttons, knobs and statistics,
but KISS won.


If you're manually assigning bandwidth et al from userland, there's not
much point to in-kernel automation is there?

If I had married the two, the first thing that would have happened is
gripes about things appearing and disappearing in cgroups directories,
resulting in mayhem and confusion for scripts and tools.


It is in the root cgroup.  It is not in the root autogroup is not
auto-cgroups group.


It is the case here.

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  P COMMAND
 7573 root      20   0  7996  340  256 R   50  0.0   3:35.86 3 pert
 7572 root      20   0  7996  340  256 R   50  0.0   9:21.68 3 pert
...
marge:/cgroups/test # echo 7572 > tasks
marge:/cgroups/test # echo 4096 > cpu.shares

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  P COMMAND
 7572 root      20   0  7996  340  256 R   80  0.0  10:06.92 3 pert
 7573 root      20   0  7996  340  256 R   20  0.0   4:05.80 3 pert

When you move a task into a cgroup, it still has an autogroup
association, as all tasks (processes actually) do, but it's not used.


The user has to specifically ask for it in his config, can turn it on or
off on the fly or at boot..


..it has a different mission, with different users being targeted, so
why does it need to hold hands?


IMHO, cgroups should have been 'nice' from the start, but the folks who
wrote it did what they thought best.  I like nice a lot better than
shares, so I used nice.


Perhaps in future, they'll get married, and perhaps they should, but in
the here and now, I think they have similar but not identical missions.
If you turn on one, turn off the other.  Maybe that should be automated.

Systemd thingy may make autogroup short lived anyway.  I had a query
from an embedded guy (hm, which I spaced) suggesting autogroup may be
quite nice for handheld stuff though, so who knows.

	-Mike

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v4] sched: automated per session task groups, Oleg Nesterov, (Sun Nov 21, 8:44 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Sun Nov 21, 9:15 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Sun Nov 21, 9:35 am)
Re: [PATCH v4] sched: automated per session task groups, Gene Heskett, (Sun Nov 21, 11:43 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Thu Nov 25, 9:00 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Sun Nov 28, 7:24 am)
Re: [PATCH v4] sched: automated per session task groups, Linus Torvalds, (Sun Nov 28, 12:31 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Sun Nov 28, 10:45 pm)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Mon Nov 29, 4:53 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Mon Nov 29, 6:45 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Mon Nov 29, 7:04 am)
Re: [PATCH v4] sched: automated per session task groups, Linus Torvalds, (Mon Nov 29, 9:27 am)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Mon Nov 29, 10:37 am)
Re: [PATCH v4] sched: automated per session task groups, Ingo Molnar, (Mon Nov 29, 11:03 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Mon Nov 29, 12:06 pm)
Re: [PATCH v4] sched: automated per session task groups, Ingo Molnar, (Mon Nov 29, 12:20 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Mon Nov 29, 9:14 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 12:54 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 6:18 am)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Tue Nov 30, 6:48 am)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Tue Nov 30, 8:01 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 9:28 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 9:41 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 10:13 am)
Re: [PATCH v4] sched: automated per session task groups, Vivek Goyal, (Tue Nov 30, 12:36 pm)
Re: [PATCH v4] sched: automated per session task groups, Américo Wang, (Tue Nov 30, 10:01 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 10:57 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 11:09 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Tue Nov 30, 11:16 pm)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Wed Dec 1, 4:33 am)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Wed Dec 1, 4:34 am)
Re: [PATCH v4] sched: automated per session task groups, Peter Zijlstra, (Wed Dec 1, 4:36 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Wed Dec 1, 4:55 am)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Wed Dec 1, 8:04 am)
Re: [PATCH v4] sched: automated per session task groups, Valdis.Kletnieks, (Wed Dec 1, 3:12 pm)
Re: [PATCH v4] sched: automated per session task groups, Mike Galbraith, (Thu Dec 2, 11:48 pm)
Re: [PATCH v4] sched: automated per session task groups, James Courtier-Dutton, (Sat Dec 4, 4:55 pm)