<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 12:52 AM, Dimitri John Ledkov <span dir="ltr"><<a href="mailto:xnox@ubuntu.com" target="_blank">xnox@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":d7z" class="a3s aXjCH m1582776042e9f232">As far as I understand, swap performance is better on swap formatted<br>
lvm volume, than a swapfile on a filesystem on an lvm volume.<br></div></blockquote><div> </div><div>That is only true for the initial search for swap slots, that is when memory is tight the first time.</div><div>After the pages have a backing store assigned it should be the same code&speed for both.</div><div>Overall I'd say the speed argument shouldn't be important here.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":d7z" class="a3s aXjCH m1582776042e9f232">E.g. 1GB swapfile, but no more than 5% of disk space is simple enough. no?</div></blockquote></div><br>Since it can be overwritten anyway I personally like that one a lot.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I'd expect that almost all setups that will be "not happy" with this simple approach like the "temporary ballooning of memory requirements" you mentioned e.g. in a virtualization environment need a way more complex setup anyway to do it right (spread I/O on multiple disks, tune page-cluster and bulks to your disk I/O HW and so on).</div><div class="gmail_extra"><br></div><div class="gmail_extra">The remaining share of people suffering might be those that want to enable Hibernate (non default anyway as you mentioned).</div><div class="gmail_extra">Just give them a reasonable and easy path if they want to do so. But I think the overwrite swapsize option will do.</div><div class="gmail_extra"><br></div><div class="gmail_extra">But I guess we have to realize that this discussion perfectly qualifies to expect to never make everybody happy anyway.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>