<div dir="ltr"><div>I've run without swap while having 32gb of ram prior, and found things would just be weirdly lagging at times without it. Adding a swap partition removed that, never really found out why. Now I just always add a small swap slice (usually 3-4gb) even if setting swappiness to minimum.</div><div><br></div><div>I never do suspend/hibernate or anything to swap, as I often have big enough ram that it chewing into ssd space for it wasn't an option. I just sleep the laptops, and my desktops are never really powered down to bother either.<br></div><div><br></div><div>-mb<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 22, 2018 at 8:25 AM Bob Elzer <<a href="mailto:bob.elzer@gmail.com" target="_blank">bob.elzer@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="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">> 4 - not having swap seems to make some things not work too well</span><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px"><br></span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">Swap depends on how much memory you have and how much memory your programs need.</span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px"><br></span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">Back in the day when ram was less than a gig we would use 2 to 3 times the ram size for swap. You would add up the number and size of your programs you needed to run and give it that extra swap knowing that when swapping started it would slow things down some.</span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px"><br></span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">Nowadays you can have 32, 64, 128gb and more ram.</span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px"><br></span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">Programs are also bigger, but you still figure how much memory the programs take and add them all up and compare that with your actual ram.</span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px"><br></span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">If you have 32gb of ram and only read mail and only browse google and PLUG, then you wouldn't really need any swap. But if you keep hundreds of tabs open, and have a huge memory resident database, and edit images and video, you may want to have swap.</span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px"><br></span></div><div dir="auto"><span style="color:rgb(128,0,128);font-family:sans-serif;font-size:18.176px">If you have 4-8gb of ram I would think 3 to 4 times that for swap.</span></div><div dir="auto"><font color="#800080" face="sans-serif"><span style="font-size:19.6301px">16gb ram 1 to 2 times swap.</span></font></div><div dir="auto"><font color="#800080" face="sans-serif"><span style="font-size:19.6301px">32 or more 1 times, depending on what you're doing maybe more.</span></font></div><div dir="auto"><font color="#800080" face="sans-serif"><span style="font-size:19.6301px"><br></span></font></div><div dir="auto"><font color="#800080" face="sans-serif"><span style="font-size:19.6301px"><br></span></font></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018, 1:08 PM Carruth, Rusty <<a href="mailto:Rusty.Carruth@smartm.com" target="_blank">Rusty.Carruth@smartm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, in my limited experience with swapping, here's my conclusions:<br>
<br>
1 - one big (that is to say, at least your ram size, and possibly 2x your ram size) swap PARTITION is needed if you want to hibernate or suspend, and I think it has to be the first one in your fstab (but I'm not sure on that)<br>
<br>
2 - swap files work fine, but can't be used for suspend/hibernate.<br>
<br>
3 - suspend/hibernate doesn't work with multiple partitions if (the first one I think) isn't big enough to hold everything, even if the total swap space is plenty big.<br>
<br>
4 - not having swap seems to make some things not work too well, even when you're not overflowing in to swap. This one I don't have proof for, but it just felt like a no-swap system ran in to walls sooner.<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: PLUG-discuss [mailto:<a href="mailto:plug-discuss-bounces@lists.phxlinux.org" rel="noreferrer" target="_blank">plug-discuss-bounces@lists.phxlinux.org</a>] On Behalf Of Matt Graham<br>
Sent: Friday, September 21, 2018 9:35 AM<br>
To: Main PLUG discussion list<br>
Subject: Re: To lvm or not to lvm<br>
<br>
.... You might even be able to get away without swap if you don't want to do suspend-to-disk.<br>
<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" rel="noreferrer" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div>