Memory consumption on a per user basis

Memory consumption on a per user basis

Josh Roden joshroden at gmail.com
Thu Nov 22 15:53:01 IST 2018


Hi
Thanks for everyone's input.
I came across and liked the smem prog for showing "fair share" mem usage
and am using it in a script that looks at RAM+SWAP limit (that I decided
on) and
it kills whoever is using the most at the time.
In the future I hope to succeed in configuring cgroups to enforce fair
sharing of
memory.
Does anyone know of a good cgroups forum?
I also wrote a script to monitor cpu, mem and users every 5 min and
accordingly
came to the decision to ask for more memory.
Thx,
Josh

On Sun, Nov 11, 2018 at 4:36 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20181122/9971afd0/attachment.html>


More information about the Linux-il mailing list