<div dir="ltr">Hi<div>Thanks for everyone's input.</div><div>I came across and liked the smem prog for showing "fair share" mem usage</div><div>and am using it in a script that looks at RAM+SWAP limit (that I decided on) and</div><div>it kills whoever is using the most at the time.</div><div>In the future I hope to succeed in configuring cgroups to enforce fair sharing of </div><div>memory.</div><div>Does anyone know of a good cgroups forum?</div><div>I also wrote a script to monitor cpu, mem and users every 5 min and accordingly</div><div>came to the decision to ask for more memory.</div><div>Thx,</div><div>Josh</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 11, 2018 at 4:36 PM Josh Roden <<a href="mailto:joshroden@gmail.com">joshroden@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone<div>I have a CentOS 6 machine used by around 20 to 30 students</div><div>at a time and I need to do one of two things:</div><div>1. find and kill top memory user with script</div><div>2. limit memory usage</div><div><br></div><div>Using cgroups, I have successfully limited memory usage to about 1.5 cpu's</div><div>max (per user) out of 16 but evidently I have had less success with memory hogs.</div><div>I understand that memory is a bit complicated to compute because of shared</div><div>memory etc. but I need to make the 32G of physical memory go around more</div><div>evenly.</div><div>Would appreciate any ideas.</div><div>Thanks,</div><div>Josh</div><div><br></div></div>
</blockquote></div>