Re: Memory consumption on a per user basis
Josh Roden <[email protected]> Thu, 22 Nov 2018 15:53:01 +0200
| Newsgroups | gmane.linux.region.israel |
|---|---|
| Message-ID | <CA+pv=q_Ui-wvdJcU61OjDgAdWKTMP4h7EFGY00PfDtSQ=0aO9Q@mail.gmail.com> |
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 <[email protected]> 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 [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il