Searched hist:"081 a9d043c983f161b78fdc4671324d1342b86bc" (Results 1 – 2 of 2) sorted by relevance
/linux/kernel/power/ |
H A D | swap.c | diff f8262d476823a7ea1eb497ff9676d1eab2393c75 Tue Apr 24 23:53:28 CEST 2012 Bojan Smojver <bojan@rexursive.com> PM / Hibernate: fix the number of pages used for hibernate/thaw buffering
Hibernation regression fix, since 3.2.
Calculate the number of required free pages based on non-high memory pages only, because that is where the buffers will come from.
Commit 081a9d043c983f161b78fdc4671324d1342b86bc introduced a new buffer page allocation logic during hibernation, in order to improve the performance. The amount of pages allocated was calculated based on total amount of pages available, although only non-high memory pages are usable for this purpose. This caused hibernation code to attempt to over allocate pages on platforms that have high memory, which led to hangs.
Signed-off-by: Bojan Smojver <bojan@rexursive.com> Signed-off-by: Rafael J. Wysocki <rjw@suse.de> diff 081a9d043c983f161b78fdc4671324d1342b86bc Thu Oct 13 23:58:07 CEST 2011 Bojan Smojver <bojan@rexursive.com> PM / Hibernate: Improve performance of LZO/plain hibernation, checksum image
Use threads for LZO compression/decompression on hibernate/thaw. Improve buffering on hibernate/thaw. Calculate/verify CRC32 of the image pages on hibernate/thaw.
In my testing, this improved write/read speed by a factor of about two.
Signed-off-by: Bojan Smojver <bojan@rexursive.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
|
H A D | hibernate.c | diff 081a9d043c983f161b78fdc4671324d1342b86bc Thu Oct 13 23:58:07 CEST 2011 Bojan Smojver <bojan@rexursive.com> PM / Hibernate: Improve performance of LZO/plain hibernation, checksum image
Use threads for LZO compression/decompression on hibernate/thaw. Improve buffering on hibernate/thaw. Calculate/verify CRC32 of the image pages on hibernate/thaw.
In my testing, this improved write/read speed by a factor of about two.
Signed-off-by: Bojan Smojver <bojan@rexursive.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
|