I use Ubuntu 19.04.
I have not enough physical memory (only 8 GB), thus I regularly use swap partition to extend my virtual memory. (Swap partition size is ≈ 9 GB.)
And now I want to set up hibernation.
My question is: how am I supposed to set it all up, so that Ubuntu could save memory state to disk and not to overwrite my existing swap data?
Do I have to create a separate swap partition?
And what if currently (right in this second) my virtual memory usage is less than 8 GB, but some data is still saved in swap partition (e.g. memory usage is 4 GB of 8 (50%), but swap partition usage is 10%) - will I be able to hibernate using that swap partition right now?
How do I set it all up?