khibernation - kexec based hibernation
Kexec base hibernation has some potential advantages over u/swsusp and
TuxOnIce (suspend2). Some of them are as follow:
1. The hibernation image size can exceed half of memory size
easily. This is possible with TuxOnIce, but impossible with
u/swsusp.
2. It is possible to eliminate freezer from kexec based hibernation
implementation, after corresponding changes to device drivers are
done.
3. Based on kexec/kdump implementation, the kernel code needed is
less.
Now, only the i386 architecture is supported. The patchset is based on
Linux kernel 2.6.24-rc2-mm1, and has been tested on IBM T42 with ACPI
on and off.
The following user-space tools are needed to implement hibernation and
resume.
1. kexec-tools needs to be patched to support khibernation. The patches
and the precompiled kexec can be download from the following URL:
source: http://khibernation.sourceforge.net/download/release_v6/kexec-tools/kexe...
patches: http://khibernation.sourceforge.net/download/release_v6/kexec-tools/kexe...
binary: http://khibernation.sourceforge.net/download/release_v6/kexec-tools/kexe...
2. makedumpfile with patches are used as memory image saving tool, it
can exclude free pages from hibernation image file. The patches and
the precompiled makedumpfile can be download from the following
URL:
source: http://khibernation.sourceforge.net/download/release_v6/makedumpfile/mak...
patches: http://khibernation.sourceforge.net/download/release_v6/makedumpfile/mak...
binary: http://khibernation.sourceforge.net/download/release_v6/makedumpfile/mak...
3. A simplest memory image restoring tool named "krestore" is
implemented. It can be downloaded from the following URL:
source: [ message continues ]
" title="http://khibernation.sourceforge.net/download/release_v6/krestore/krestore-...
">http://khibernation.sourceforge.net/download/release_v6/krestore/krestor...