Memory consumption on a per user basis

Memory consumption on a per user basis

Constantine Shulyupin const at makelinux.co.il
Sun Nov 11 17:26:06 IST 2018


I am using this bash functions for years:
https://gitlab.com/makelinux/lib/blob/master/snippets/load-watch.md
It kills processes accordingly load average, cpu and memory usage.
OOM killer is less efficient.

On Sun, Nov 11, 2018 at 4:37 PM Josh Roden <joshroden at gmail.com> wrote:
>
> Hi everyone
> I have a CentOS 6 machine used by around 20 to 30 students
> at a time and I need to do one of two things:
> 1. find and kill top memory user with script
> 2. limit memory usage
>
> Using cgroups, I have successfully limited memory usage to about 1.5 cpu's
> max (per user) out of 16 but evidently I have had less success with memory hogs.
> I understand that memory is a bit complicated to compute because of shared
> memory etc. but I need to make the 32G of physical memory go around more
> evenly.
> Would appreciate any ideas.
> Thanks,
> Josh
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



-- 
Constantine Shulyupin
http://www.MakeLinux.co.il/
Embedded Linux Systems
Tel Aviv



More information about the Linux-il mailing list