Bug#838919: Swap file

2016-10-04 Thread Philipp Kern
On 10/04/2016 01:53 AM, Mert Dirik wrote:
> https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition
> 
> Swap files are much more flexible & easier to handle compared to
> messing with partitions and there are only few cases where they don't
> apply. The discussion about predicting swap sizes for hibernation or
> enlarging partitions is completely unnecessary in this context.

It does require that you physically allocate the file (e.g. by writing
zeros, not using truncation/fallocate), which is a little sad on SSDs.
On the other hand a few gigabytes written at install time probably don't
matter much. Also it doesn't work on btrfs. But I do wonder if there are
other real-world drawbacks these days with swap files, given that the
kernel should know the block list on disk and the penalty should hence
be small...

Kind regards and thanks
Philipp Kern



signature.asc
Description: OpenPGP digital signature


Bug#838919: Swap file

2016-10-03 Thread Mert Dirik
https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

Swap files are much more flexible & easier to handle compared to
messing with partitions and there are only few cases where they don't
apply. The discussion about predicting swap sizes for hibernation or
enlarging partitions is completely unnecessary in this context.