[systemd-devel] how to let systemd hibernate start/stop the swap area?

Michael Chapman mike at very.puzzling.org
Thu Mar 30 23:49:20 UTC 2023


On Fri, 31 Mar 2023, Phillip Susi wrote:
> 
> Michael Chapman <mike at very.puzzling.org> writes:
> 
> > What specifically is the difference between:
> >
> > * swap does not exist at all;
> > * swap is full of data that will not be swapped in for weeks or months;
> 
> That's the wrong question.

Nevertheless it was the question I was faced with. I had servers with a 
huge amount of memory, a fair bit of swap, and ALL of that swap filled 
with stuff that would need to be entirely swapped back in at some point at 
a moments notice.

The solution was simple: turn off swap. Now there was no "swap everything 
back in" penalty, and since there was plenty of RAM anyway the change had 
little impact on the behaviour of the rest of the system.


More information about the systemd-devel mailing list