Why the niceness is not always taken into account ?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Apr 18 11:32:33 EDT 2013


On Thu, 18 Apr 2013 16:57:41 +0200, Alexandre Laurent said:

> Note : the cgroups are not mounted at all.

The cgroups filesystem doesn't have to be mounted for that - the kernel
handles that internally.

> I still have a little question about it :
> Is it possible to force the grouping of specific tasks ?
> (Which could be better than just disabling the feature)

At that point, you're better off mounting the cgroups filesystem and using
something like systemd to put tasks into cgroups and control them.  It's
a Really Bad Idea to try to handle that in-kernel.  SCHED_AUTOGROUP relies
on the fact that many heavy-load processes are launched from xterms, so
grouping "everything in each xterm" into a separate group and then one group
for everything launched from the desktop works pretty well. and is really
bog-simple to code.  Trying to do anything more complicated in-kernel will
be a mess, because nobody agrees on a policy that should be used (other than
the one used by AUTOGROUP) 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130418/0271da47/attachment.bin 


More information about the Kernelnewbies mailing list