Re: Limit resources of a group of users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, 2025-02-28 at 13:38 -0800, Seva Epsteyn wrote:
> I am trying to find a way to limit the combined resources of some,
> but not all, users. For example all non root users should be limited
> to 90% of memory.
> 
> I can drop in config via user.slice.d which limits all users
> combined, or user-.slice.d which limits each user separately, but can
> not figure out a way to limit all non root users or say users in a
> group 'foo'.

You would need to group the units by inserting another .slice unit in
the hierarchy (by setting Slice=). Once you have that, you can easily
define limits for that new .slice unit.

Depending on what you want, a more straight forward approach could be
to turn it around and give certain user slices and system.slice memory
guarantees using MemoryMin=/MemoryLow=.

Benjamin





[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux