os-installer icon indicating copy to clipboard operation
os-installer copied to clipboard

Investigate swap files instead of swap partitions

Open ikeydoherty opened this issue 9 years ago • 2 comments

Ubuntu is going to now default to swapfiles on new installs. Potentially quite a good idea, so we should investigate the exact details and consider implementing this in Solus via the installer

http://phoronix.com/scan.php?page=news_item&px=Ubuntu-Switching-To-Swap-Files

http://blog.surgut.co.uk/2016/12/swapfiles-by-default-in-ubuntu.html

Pinged @xnox to query whether to use sparse or allocate the regions beforehand

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40137659-investigate-swap-files-instead-of-swap-partitions?utm_campaign=plugin&utm_content=tracker%2F2994527&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2994527&utm_medium=issues&utm_source=github).

ikeydoherty avatar Dec 16 '16 15:12 ikeydoherty

note formatting is odd in the description, w.r.t. urls syntax.

  • swapfiles are not supported on btrfs
  • fallocate can allocate a file quickly, suitable for swapfile, on some filesystems (creates file with holes on xfs, works like a charm on ext4)
  • for encrypted use case, using ext4 fs encryption is to be investigated yet

xnox avatar Dec 19 '16 16:12 xnox

We had Bountysource running once, just to see "was it worth it". Never went anywhere. I disabled the plugins everywhere, removed Bountysource's access.. and this is the net result. Every so often it vomits over our issues.. :)

Cheers for responding here, somewhat unexpected :D

ikeydoherty avatar Dec 19 '16 23:12 ikeydoherty