<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Tuning for performance is somewhat of a misnomer, no? vm.swappiness sets the affinity of the kernel to utilize swapspace. In a very simple way its:</div><div><br></div><div>%memory-consumed + vm.swappiness >= 100, time to swap! </div><div><br></div><div>There's a little bit of kernel magic in that equation as well, but for most people that bit is negligible. </div><div><br></div><div>So you're not really tuning for performance per se, just determining the threshold at which swap should be used. I concur with Chis' diagnosis of Chrome being the culprit, like databases, browsers love to allocate large hunks of anon memory to store cache and the like. The kernel loves to swap those. Setting vm.swappiness higher would change the threshold at which swap started being used, but when you hit that higher threshold, the same pages would likely be targeted.</div><div><br></div><div>-Scott</div><div><br>On Jan 4, 2016, at 5:05 PM, Jim Kinney <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><p dir="ltr">I run with swap on my servers but I have it small compared to ram. Most 128GB systems will get 2G swap.</p>
<p dir="ltr">My HPC cluster has swap disabled. The virtual machine hosts have about 1/3 as much swap as RAM and always more than any 2 VMs ram total.</p>
<p dir="ltr">Setting swappines is a great way to tune the system for good performance.</p>
<div class="gmail_quote">On Jan 4, 2016 7:38 PM, "Scott McBrien" <<a href="mailto:smcbrien@gmail.com">smcbrien@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>Running without swap used to be a really risky proposition, but these days, running with out it is fine. Though oom-killer might do things you may not like. Since it's your desktop, that's probably OK, but on a server, it might cause problems if oom-killer whacked your database after killing sshd. :-)</div><div><br></div><div>You'll note that most cloud images and the like don't run with a swap.</div><div><br></div><div>-Scott</div><div><br>On Jan 4, 2016, at 2:16 PM, Chris Fowler <<a href="mailto:cfowler@outpostsentinel.com" target="_blank">cfowler@outpostsentinel.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>On my Ubuntu 15.04 running 3.19 I have found that having swap can be a real problem. I think this has a lot to do with Chrome. I have 8G on the machine and when coming back from screen saver or other tasks response takes a substantial drop. I know it is swapping pages. Disabling swap solves this problem. I ran my desktop over a month with no swap and forgot to turn it off after a reboot. I just had to wait 5 minutes so it would become responsive again.</div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a></span><br><span><a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a></span><br><span>See JOBS, ANNOUNCE and SCHOOLS lists at</span><br><span><a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a></span><br></div></blockquote></div><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org">Ale@ale.org</a></span><br><span><a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a></span><br><span>See JOBS, ANNOUNCE and SCHOOLS lists at</span><br><span><a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a></span><br></div></blockquote></body></html>