Hi Samuel,<div><br></div><div>I like the formula given here:</div><div><br></div><div><a href="http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/sect-Virtualization-Tips_and_tricks-Overcommitting_with_KVM.html">http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/sect-Virtualization-Tips_and_tricks-Overcommitting_with_KVM.html</a></div>
<div><br></div><div>(0.5 * RAM) + (overcommit ratio * RAM) = Recommended swap size</div><div><br></div><div>This will ensure you never run out of swap space when overcommitting RAM -- which is imperative as described by the big red WARNING message in the link.  :)</div>
<div><br></div><div>As far as I am aware, the other methods that KVM uses for memory management (KSM and ballooning) are enabled and managed by default and shouldn't have to be tweaked -- but someone please correct me if I am wrong.</div>
<div><br></div><div>Thanks,</div><div>Joe<br><br><div class="gmail_quote">On Fri, Sep 21, 2012 at 8:39 AM, Samuel Winchenbach <span dir="ltr"><<a href="mailto:swinchen@gmail.com" target="_blank">swinchen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
What are some "best practices" when it comes to overselling RAM in a<br>
KVM based openstack setup?  For example:<br>
<br>
I have 4 nodes with 16 cores & 128 GB RAM each.  If on one of those<br>
nodes I oversell ram 2:1 (256 GB RAM) and the VMs actually use that<br>
much does it just start swapping out pages to disk?<br>
<br>
How do all of you handle overselling RAM?<br>
<br>
Thanks,<br>
Sam<br>
<br>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Joe Topjian<div>Systems Administrator</div><div>Cybera Inc.</div><div><br></div><div><a href="http://www.cybera.ca" target="_blank">www.cybera.ca</a></div><div>
<br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Big data is coming to Canada. Join the welcome wagon.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<b>Cyber Summit 2012</b></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">October 1-3, Banff</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<a href="http://www.cybera.ca/summit2012" style="color:rgb(17,85,204)" target="_blank">www.cybera.ca/summit2012</a></div></div><div><br></div><div><font color="#666666"><span>Cybera</span><span> is a not-for-profit organization that works to spur and support innovation, for the economic benefit of Alberta, through the use of cyberinfrastructure.</span></font></div>
<br>
</div>