<div dir="ltr"><br><div class="gmail_extra">Any time you touch swap you need to consider both </div><div class="gmail_extra">overcommit_memory</div><div class="gmail_extra">AND</div><div class="gmail_extra">overcommit_ratio</div><div class="gmail_extra"><br></div><div class="gmail_extra">The "Ratio" is 50% by default, and the math was counter-intuitive to me...</div><div class="gmail_extra"><br></div><div class="gmail_extra">overcommit_memory set to Option 2 tells the kernel it is not permitted to exceed swap + a configurable amount (default is 50%) of physical RAM.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So with Swap Set to 8 GB in a 128GB host the math would be...</div><div class="gmail_extra">Swap (8GB) + Ram @ 50% (64GB) = 72GB Max Committed by the kernel = bad<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><span style="white-space:pre-wrap">So disabling swap means....</span><br></div><div class="gmail_extra"><span style="white-space:pre-wrap">Ram @ 50% (64GB) = worse!</span></div><div class="gmail_extra"><span style="white-space:pre-wrap"><br></span></div><div class="gmail_extra"><span style="white-space:pre-wrap">Moral of the story is, either set swap to be at least 50% of RAM or the Kernel will not use commit all the RAM it has with the default configs.</span></div><div class="gmail_extra"><span style="white-space:pre-wrap"><br></span></div><div class="gmail_extra"><span style="white-space:pre-wrap">For Diskless & Swapless we set overcommit_memory to 2 and overcommit_ratio near 100.</span></div><div class="gmail_extra"><span style="white-space:pre-wrap"><br></span></div></div>