Can't make Directory in /sys/fs/cgroup as SU

Patrick O'Callaghan pocallaghan at gmail.com
Sat Nov 20 04:27:01 UTC 2010


On 19/11/10 22:56, Konstantin Svist wrote:
> On 11/19/2010 07:17 PM, Patrick O'Callaghan wrote:
>> On 19/11/10 18:48, Konstantin Svist wrote:
>>> This fix only affects TTYs (i.e. terminal sessions). For instance, if
>>> you're watching a video and compiling something in a terminal, this fix
>>> will make sure that the terminal as a whole (no matter how many
>>> background processes it starts) shares time fairly with your video player.
>>> In other words, if you don't have a single terminal open, you shouldn't
>>> see any change at all.
>> True. I may be wrong but it's my understanding that the original
>> 200-line kernel patch is smarter in that it automagically moves
>> processes between cgroups according to their real behaviour rather than
>> how they were started.
>>
>> poc
>
> No, I'm pretty sure it groups them per-TTY as well

On reflection that's probably true at the moment, but not necessarily 
true in the future. There's nothing essential about grouping by TTY, 
it's just the current heuristic. The userspace solution would seem to be 
quite tightly bound to the per-TTY idea since it's easy to do, but doing 
it in the kernel is potentially much more flexible.

poc


More information about the users mailing list