Shuttleworth: Losing graciously
Shuttleworth: Losing graciously
Posted Feb 19, 2014 23:22 UTC (Wed) by Cyberax (✭ supporter ✭, #52523)In reply to: Shuttleworth: Losing graciously by smurf
Parent article: Shuttleworth: Losing graciously
> Besides, access rights are insufficient for another reason. Suppose you want to limit users' memory usage to 100MB each; if they want to have 1GB of main memory they can -- but only two at the same time, and only for 10 minutes.
Sure. And the current delegation-based interface works perfectly fine in this scenario.
Sure. And the current delegation-based interface works perfectly fine in this scenario.
First, you create this hierarchy: root/user1/delegate, root/user2/delegate. Then you set memory limits on them and start a daemon that does the balancing act. This daemon should have permissions to change 'user1' and 'user2' hierarchies.
But nobody stops you from making 'delegate' directories writable for the users! They won't be able to affect the settings in the parent levels of cgroups, and they'll limited by them.
