1 ramzswap: Compressed RAM based swap device
2 -------------------------------------------
4 Project home: http://compcache.googlecode.com/
8 It creates RAM based block devices which can be used (only) as swap disks.
9 Pages swapped to these devices are compressed and stored in memory itself.
10 See project home for use cases, performance numbers and a lot more.
12 Individual ramzswap devices are configured and initialized using rzscontrol
13 userspace utility as shown in examples below. See rzscontrol man page for more
18 Following shows a typical sequence of steps for using ramzswap.
21 modprobe ramzswap num_devices=4
22 This creates 4 (uninitialized) devices: /dev/ramzswap{0,1,2,3}
23 (num_devices parameter is optional. Default: 1)
26 Use rzscontrol utility to configure and initialize individual
27 ramzswap devices. Example:
28 rzscontrol /dev/ramzswap2 --init # uses default value of disksize_kb
30 *See rzscontrol man page for more details and examples*
33 swapon /dev/ramzswap2 # or any other initialized ramzswap device
36 rzscontrol /dev/ramzswap2 --stats
39 swapoff /dev/ramzswap2
42 rzscontrol /dev/ramzswap2 --reset
43 (This frees all the memory allocated for this device).
46 Please report any problems at:
47 - Mailing list: linux-mm-cc at laptop dot org
48 - Issue tracker: http://code.google.com/p/compcache/issues/list