]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: write speedup
authorAndrew Morton <akpm@osdl.org>
Tue, 26 Sep 2006 06:32:42 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:58 +0000 (08:48 -0700)
commita10408cdceabed204478bde59a9c3e9257373448
tree28f99d765c2c6d497a1f5543b1867875cd6102a5
parent7822d7a3953199c5a02aeaa75b0fe1ed44dd0960
[PATCH] swsusp: write speedup

Switch the swsusp writeout code from 4k-at-a-time to 4MB-at-a-time.

Crufty old PIII testbox:
12.9 MB/s -> 20.9 MB/s

Sony Vaio:
14.7 MB/s -> 26.5 MB/s

The implementation is crude.  A better one would use larger BIOs, but wouldn't
gain any performance.

The memcpys will be mostly pipelined with the IO and basically come for free.

The ENOMEM path has not been tested.  It should be.

Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h
kernel/power/swap.c
mm/page_io.c