systemd-swap icon indicating copy to clipboard operation
systemd-swap copied to clipboard

How to make swapfc file persistent?

Open 0x6d3f9c opened this issue 6 years ago • 3 comments

I wonder why always recreating "/var/lib/systemd-swap/swapfc/1" every time when systemd-swap service is restarted.

0x6d3f9c avatar Sep 14 '18 07:09 0x6d3f9c

"State machine", i.e. service must return to same state, as state where it started.

nefelim4ag avatar Sep 14 '18 09:09 nefelim4ag

I think this behaviour is good for swap file on SSD as we don't use the same location over and over again which can cause wearing.

ngoquang2708 avatar Feb 28 '19 03:02 ngoquang2708

+1 to implement an option to make swap persistent (even after rebooting). I love systemd-swap because it guarantees I won't run out of swap no matter what. But when your hard disk is encrypted there's no point on re-creating it every time. It slows down shutdown in 1:30 minutes.

Zeioth avatar May 11 '20 14:05 Zeioth