-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staging: virtual block device driver (ramzswap)
Creates RAM based block devices (/dev/ramzswapX) which can be used (only) as swap disks. Pages swapped to these are compressed and stored in memory itself. The module is called ramzswap.ko. It depends on: - xvmalloc memory allocator (compiled with this driver) - lzo_compress.ko - lzo_decompress.ko See ramzswap.txt for usage details. Signed-off-by: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Nitin Gupta
authored and
Greg Kroah-Hartman
committed
Dec 11, 2009
1 parent
644bf7b
commit 306b0c9
Showing
7 changed files
with
1,682 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
config RAMZSWAP | ||
tristate "Compressed in-memory swap device (ramzswap)" | ||
depends on SWAP | ||
select LZO_COMPRESS | ||
select LZO_DECOMPRESS | ||
default n | ||
help | ||
Creates virtual block devices which can be used (only) as a swap | ||
disks. Pages swapped to these disks are compressed and stored in | ||
memory itself. | ||
|
||
See ramzswap.txt for more information. | ||
Project home: http://compcache.googlecode.com/ | ||
|
||
config RAMZSWAP_STATS | ||
bool "Enable ramzswap stats" | ||
depends on RAMZSWAP | ||
default y | ||
help | ||
Enable statistics collection for ramzswap. This adds only a minimal | ||
overhead. In unsure, say Y. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ramzswap-objs := ramzswap_drv.o xvmalloc.o | ||
|
||
obj-$(CONFIG_RAMZSWAP) += ramzswap.o |
Oops, something went wrong.