[systemd-devel] Shared limit for different cgroups

Frank Steiner fsteiner-mail1 at bio.ifi.lmu.de
Wed Mar 6 13:32:21 UTC 2019


Hi,

I'd like to impose a general memory maximum limit to all processes
started by our users. These include everything started interactively
from the shell, but also cgis from apache and jobs started in grid.
The limit should not hold for each user, but it should be an overall
limit for all users together.

I know how to set an overall limit for all user jobs started interactively
using the user.slice, but apache/grid jobs don't appear in the user
slice but in the apache/grid cgroup.

Is there a way to either
a) impose one shared limit for user.slice, apache.service and grid.service
or
b) automatically put oder move user proceses started from apache or
    grid into the user slice? Or move the whole apache/grid cgroup
    into the user slice?

Thanks!

cu,
Frank

-- 
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *


More information about the systemd-devel mailing list