<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">My general config is to create a swap partition and set swappiness to 0. so it is there for hibernate, but given 32G of ram it is never really touched.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 28, 2020 at 1:43 PM Bob Elzer via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">The biggest difference is, files can become fragmented while partitions don't. On a hard drive this can make a big difference. On an SSD I would tend not to use a swap partition or file. If you use a swap partition on an SSD it would confine the writes to a smaller area of the disk and wear it out faster. So a file would work much better because it has the whole disk to even out the writes. But you do a lot of swapping that also puts more wear onto the SSD. So I would tend to put my swap on a hard drive.<div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 28, 2020, 8:57 AM Seabass via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I tend to prefer swapfiles.<br>Doesn't require a partition, so it can be resized easily and won't require you to know the partition number. (Opinion: fewer partitions is just easier)<br>It is encrypted swap when on a fully encrypted drive without needing more partitioning work.<br><br>I don't actually know a reason to make swap a partition over a swapfile. I imagine there is a partition setting somehow or maybe the inability to resize is desirable, but that hasn't been my use case before.<br><br>To be fair though... I don't use hibernate so don't really need a swap either. So it is rare I'd need it anyway.<br>------------------------------<br>Message: 2<br>Date: Mon, 26 Oct 2020 21:22:57 -0700<br>From: Jim <<a href="mailto:azanorak@gmail.com" rel="noreferrer" target="_blank">azanorak@gmail.com</a>><br>To: <a href="mailto:plug-discuss@lists.phxlinux.org" rel="noreferrer" target="_blank">plug-discuss@lists.phxlinux.org</a><br>Subject: swap file vs swap partition<br>Message-ID: <<a href="mailto:4613ab4d-61b5-34b0-4944-d0917cec234e@gmail.com" rel="noreferrer" target="_blank">4613ab4d-61b5-34b0-4944-d0917cec234e@gmail.com</a>><br>Content-Type: text/plain; charset=utf-8; format=flowed<br>Regarding swap file vs swap partition: Is one better than the other? <br>When I installed Kubuntu on my machine, both options were available and<br>I chose the swap file. The OS is installed on an SSD---------------------------------------------------<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="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer noreferrer" target="_blank">https://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="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>