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.
Usedcgroupsto create amemlimitgroup on ubuntu as per 3.1 point in tutorialProblem: Apparently,
cgcreateis unable to fetch the UID of the group that I created.Followed this answer:
Created a groupgroupnameon Ubuntu usinggroupadd.
Created a groupmemlimitin/etc/cgconfig.conf.
Updated the/etc/cgrules.confwith@groupname memory memlimit/.
Finally ransudo cgrulesengdProblem: No errors but memory limit not working.
limits.conf. – DopeGhoti May 16 '18 at 17:29