Debian Stretch's way of hibernating/resuming (via systemctl hibernate) is quite unusual:
first, swap out what can be swapped out
then, store the rest (kernel and non-swappable parts of user memory) as hibernation image.
This is extremely annoying, as the system is laggy to unresponsive a very long time (10-20 minutes) until the most important of the dozens of gigabytes of swapped-out stuff has been swapped in again.
If possible, I would like to configure hibernate/resume so that the first step (swap out what can be swapped out) is omitted and instead just the whole memory is being written to the hibernation file, and read back in one piece when resuming.
This would have the advantage of the computer being fully usable directly after resuming, without constantly having to wait at an unresponsive computer each time some thread is being swapped in again.
Any idea if, and how the hibernation/resume can be configured this way?