Re: swap file vs swap partition

2020-10-28 Thread Matt Graham via PLUG-discuss
On 2020-10-28 16:24, Steve Litt via PLUG-discuss wrote: On Wed, 28 Oct 2020 13:43:22 -0700 Bob Elzer via PLUG-discuss wrote: The biggest difference is, files can become fragmented while partitions don't. I had no idea there was such a thing as a Linux swap file. I guess that's a recent thing.

Re: swap file vs swap partition

2020-10-28 Thread Steve Litt via PLUG-discuss
On Wed, 28 Oct 2020 13:43:22 -0700 Bob Elzer via PLUG-discuss wrote: > The biggest difference is, files can become fragmented while > partitions don't. I had no idea there was such a thing as a Linux swap file. I guess that's a recent thing. If my partition file becomes fragmented, is there a

Re: swap file vs swap partition

2020-10-28 Thread Stephen Partington via PLUG-discuss
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. On Wed, Oct 28, 2020 at 1:43 PM Bob Elzer via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrote: > The biggest difference is, files can

Re: swap file vs swap partition

2020-10-28 Thread Bob Elzer via PLUG-discuss
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

Re: swap file vs swap partition

2020-10-28 Thread Matt Graham via PLUG-discuss
On 2020-10-28 08:47, Seabass via PLUG-discuss wrote: I tend to prefer swapfiles. 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) Since all disks are SCSI-analogues now, having more than 15

Re: swap file vs swap partition

2020-10-28 Thread Seabass via PLUG-discuss
I tend to prefer swapfiles. 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) It is encrypted swap when on a fully encrypted drive without needing more partitioning work. I don't actually know