Skip to content

Commit

Permalink
staging: ramster: local compression + tmem
Browse files Browse the repository at this point in the history
RAMster implements peer-to-peer transcendent memory, allowing a "cluster"
of kernels to dynamically pool their RAM.

This patch copies files from drivers/staging/zcache.  RAMster compresses
pages locally before transmitting them to another node, so we can
leverage the zcache and tmem code directly.  Note: there are
no ramster-specific changes yet to these files.

(Why copy?  The ramster tmem.c/tmem.h changes are definitely shareable
between zcache and ramster; the eventual destination for tmem.c
is the linux lib directory.  Ramster changes to zcache are more substantial
and zcache is currently undergoing some significant unrelated changes
(including a new allocator and breaking zcache-main.c into smaller files),
so it seemed best to branch temporarily and merge later.)

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dan Magenheimer authored and Greg Kroah-Hartman committed Feb 15, 2012
1 parent b605c96 commit 19ee3ef
Show file tree
Hide file tree
Showing 5 changed files with 2,980 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/staging/ramster/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
config ZCACHE
tristate "Dynamic compression of swap pages and clean pagecache pages"
depends on CLEANCACHE || FRONTSWAP
select XVMALLOC
select LZO_COMPRESS
select LZO_DECOMPRESS
default n
help
Zcache doubles RAM efficiency while providing a significant
performance boosts on many workloads. Zcache uses lzo1x
compression and an in-kernel implementation of transcendent
memory to store clean page cache pages and swap in RAM,
providing a noticeable reduction in disk I/O.
3 changes: 3 additions & 0 deletions drivers/staging/ramster/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
zcache-y := zcache-main.o tmem.o

obj-$(CONFIG_ZCACHE) += zcache.o
Loading

0 comments on commit 19ee3ef

Please sign in to comment.