I have a gpu based system. Multiple users use the system, as a result, the RAM frequently gets fully utilized leaving no memory for myself. I want to put a maximum RAM limit on all the users except for myself. I have tried the following:
Create a group on Ubuntu using
groupadd
.
Usedcgroups
to create amemlimit
group on ubuntu as per 3.1 point in tutorialProblem: Apparently,
cgcreate
is unable to fetch the UID of the group that I created.Followed this answer:
Created a groupgroupname
on Ubuntu usinggroupadd
.
Created a groupmemlimit
in/etc/cgconfig.conf
.
Updated the/etc/cgrules.conf
with@groupname memory memlimit/
.
Finally ransudo cgrulesengd
Problem: No errors but memory limit not working.
limits.conf
. – DopeGhoti May 16 '18 at 17:29