On Sun, Aug 5, 2012 at 10:30 AM, Mantas Mikulėnas <grawity@gmail.com> wrote:
On Sun, Aug 5, 2012 at 4:50 AM, Scott Lawrence <bytbox@gmail.com> wrote:
If you want to hibernate, you need at least as much as you have RAM.
I'm not sure this is true. AFAIK, both swsusp and uswsusp try to reduce the hibernation image as much as possible – I think /sys/power/image_size defaults to 1 GB for swsusp. (A large part of RAM is usually used by cache, which can be just freed before hibernating.)
-- Mantas Mikulėnas
As far as I know linux kernel expects a swap by default (that might have changed after 3 kernel though..). Personally I have 8Gb of RAM and rarely some KB are written to the swap. Even when I had 4Gb or memory it was the same, rarely used it. I have set swap to be 500Mb and set the kernel rarely to swap anything to my SSD. Note: for SSDs it's not recommended to have the swap writing a lot to the disk as it wears off the SSD. -- Caution: breathing may be hazardous to your health. #include <stdio.h> int main(){printf("%s","\x4c\x65\x6f\x6e\x69\x64\x61\x73");}