Commit 306b0c95 authored by Nitin Gupta's avatar Nitin Gupta Committed by Greg Kroah-Hartman
Browse files

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: default avatarNitin Gupta <ngupta@vflare.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 644bf7b5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -123,6 +123,8 @@ source "drivers/staging/sep/Kconfig"

source "drivers/staging/iio/Kconfig"

source "drivers/staging/ramzswap/Kconfig"

source "drivers/staging/strip/Kconfig"

source "drivers/staging/arlan/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ obj-$(CONFIG_VME_BUS) += vme/
obj-$(CONFIG_RAR_REGISTER)	+= rar/
obj-$(CONFIG_DX_SEP)		+= sep/
obj-$(CONFIG_IIO)		+= iio/
obj-$(CONFIG_RAMZSWAP)		+= ramzswap/
obj-$(CONFIG_STRIP)		+= strip/
obj-$(CONFIG_ARLAN)		+= arlan/
obj-$(CONFIG_WAVELAN)		+= wavelan/
+21 −0
Original line number Diff line number Diff line
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.
+3 −0
Original line number Diff line number Diff line
ramzswap-objs	:=	ramzswap_drv.o xvmalloc.o

obj-$(CONFIG_RAMZSWAP)	+=	ramzswap.o
+1435 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading