I installed Eos on Vbox with 4gb ram and excepted the default swap file.
The swap file is only 512mb.
However, as you can see the swap is maxed out and there is 490mb ram available.
free -m
total used free shared buff/cache available
Mem: 3920 3107 123 90 688 491
Swap: 511 511 0
Firstly @Zircon34 thanks for the link, all I did was change the count from 8 to 2 giving 2gb swap. Plenty given VB has only 4mb ram.
Nice tip @colin but I have enough trouble using the ext4. Maybe in the distant future I will have a look at BTRFS. @2000 thanks for the example but as I said I get myself in enough trouble with standard formats. For me it must be KISS[Keep It Simple Stupid].
Just as a side question, what difference does it make if I create the swapfile as /swapfile or as /swap/swapfile as long as I customize the entry in /etc/fstab?
If you create the swapfile as /swapfile it will reside in the subvolume mounted at /. Once you put a swapfile in a partition you can’t take snapshots of it or if you have snapshots you can’t use the swapfile.
Creating a separate subvolume mounted at /swap (or anywhere else) solves this issue. Now your swapfile is in a different subvolume where you can do what you want.