-
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.
yaml --- r: 175115 b: refs/heads/master c: 47f9afb h: refs/heads/master i: 175113: 5442779 175111: b58c441 v: v3
- Loading branch information
Nitin Gupta
authored and
Greg Kroah-Hartman
committed
Dec 11, 2009
1 parent
e19bdf0
commit 025e6f3
Showing
2 changed files
with
52 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 306b0c957f3f0e7da6551652abbfe17b560173ce | ||
refs/heads/master: 47f9afb38f0de2f153deea34bf1ef5c778815f2e |
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,51 @@ | ||
ramzswap: Compressed RAM based swap device | ||
------------------------------------------- | ||
|
||
Project home: http://compcache.googlecode.com/ | ||
|
||
* Introduction | ||
|
||
It creates RAM based block devices which can be used (only) as swap disks. | ||
Pages swapped to these devices are compressed and stored in memory itself. | ||
See project home for use cases, performance numbers and a lot more. | ||
|
||
Individual ramzswap devices are configured and initialized using rzscontrol | ||
userspace utility as shown in examples below. See rzscontrol man page for more | ||
details. | ||
|
||
* Usage | ||
|
||
Following shows a typical sequence of steps for using ramzswap. | ||
|
||
1) Load Modules: | ||
modprobe ramzswap num_devices=4 | ||
This creates 4 (uninitialized) devices: /dev/ramzswap{0,1,2,3} | ||
(num_devices parameter is optional. Default: 1) | ||
|
||
2) Initialize: | ||
Use rzscontrol utility to configure and initialize individual | ||
ramzswap devices. Example: | ||
rzscontrol /dev/ramzswap2 --init # uses default value of disksize_kb | ||
|
||
*See rzscontrol man page for more details and examples* | ||
|
||
3) Activate: | ||
swapon /dev/ramzswap2 # or any other initialized ramzswap device | ||
|
||
4) Stats: | ||
rzscontrol /dev/ramzswap2 --stats | ||
|
||
5) Deactivate: | ||
swapoff /dev/ramzswap2 | ||
|
||
6) Reset: | ||
rzscontrol /dev/ramzswap2 --reset | ||
(This frees all the memory allocated for this device). | ||
|
||
|
||
Please report any problems at: | ||
- Mailing list: linux-mm-cc at laptop dot org | ||
- Issue tracker: http://code.google.com/p/compcache/issues/list | ||
|
||
Nitin Gupta | ||
ngupta@vflare.org |