Honest question: why are we still defaulting to swap partitions in Linux distributions?
@karolherbst hibernation?
@elly Sounds like a implementation limitation. Other OS besides Linux support hibernation and generally use swap files instead of a swap partition, no?

@karolherbst @elly aren't they less efficient?

(Also, with RAM going for scarcity again, looks like swap is going to have a comeback.)

@elly @karolherbst ngl I haven't used hibernation in a looong time. I totally forgot about it.

@elly @karolherbst You can hibernate to swap files, no need for partitions.

Heck, systemd can even allocate swap as needed.

My take: don't use swap partitions.

@mupuf @elly I think this breaks down once you do full disk encryption.

Though that also should be fixable, just needs to do the "let's use linux as the bootloader" thing :D

@karolherbst @elly it would break only if you ask the kernel to do the resume, but the modern way is for the initramfs to trigger the resume after unlocking the disk.
@mupuf @elly ahh, guess that's fine then.
@karolherbst @elly In boot2container, I have support for suspend/resume over NBD. Yes, Network Block Devices :D
@mupuf @elly .... this feels illegal

@karolherbst @elly Wait until I use it for preemption in CI jobs 🤣

Hopefully coming to your favourite gitlab instance this year!