Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324818
b: refs/heads/master
c: faca2ef
h: refs/heads/master
v: v3
  • Loading branch information
Dan Magenheimer authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent 561fc76 commit c6f3906
Show file tree
Hide file tree
Showing 12 changed files with 4,193 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c857ce1659b058c087bce9874cb4eeb5adbf04c5
refs/heads/master: faca2ef77abf1983e87d36b14bc181efb983979a
2 changes: 2 additions & 0 deletions trunk/drivers/staging/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,6 @@ source "drivers/staging/csr/Kconfig"

source "drivers/staging/omap-thermal/Kconfig"

source "drivers/staging/ramster/Kconfig"

endif # STAGING
1 change: 1 addition & 0 deletions trunk/drivers/staging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ obj-$(CONFIG_USB_G_CCG) += ccg/
obj-$(CONFIG_WIMAX_GDM72XX) += gdm72xx/
obj-$(CONFIG_CSR_WIFI) += csr/
obj-$(CONFIG_OMAP_BANDGAP) += omap-thermal/
obj-$(CONFIG_ZCACHE2) += ramster/
16 changes: 16 additions & 0 deletions trunk/drivers/staging/ramster/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
config ZCACHE2
bool "Dynamic compression of swap pages and clean pagecache pages"
depends on CRYPTO=y && SWAP=y && CLEANCACHE && FRONTSWAP && !ZCACHE
select CRYPTO_LZO
default n
help
Zcache2 doubles RAM efficiency while providing a significant
performance boosts on many workloads. Zcache2 uses
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. Zcache2
is a complete rewrite of the older zcache; it was intended to
be a merge but that has been blocked due to political and
technical disagreements. It is intended that they will merge
again in the future. Until then, zcache2 is a single-node
version of ramster.
3 changes: 3 additions & 0 deletions trunk/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 zbud.o

obj-$(CONFIG_ZCACHE2) += zcache.o
59 changes: 59 additions & 0 deletions trunk/drivers/staging/ramster/ramster.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

/*
* zcache/ramster.h
*
* Placeholder to resolve ramster references when !CONFIG_RAMSTER
* Real ramster.h lives in ramster subdirectory.
*
* Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
*/

#ifndef _ZCACHE_RAMSTER_H_
#define _ZCACHE_RAMSTER_H_

#ifdef CONFIG_RAMSTER
#include "ramster/ramster.h"
#else
static inline void ramster_init(bool x, bool y, bool z)
{
}

static inline void ramster_register_pamops(struct tmem_pamops *p)
{
}

static inline int ramster_remotify_pageframe(bool b)
{
return 0;
}

static inline void *ramster_pampd_free(void *v, struct tmem_pool *p,
struct tmem_oid *o, uint32_t u, bool b)
{
return NULL;
}

static inline int ramster_do_preload_flnode(struct tmem_pool *p)
{
return -1;
}

static inline bool pampd_is_remote(void *v)
{
return false;
}

static inline void ramster_count_foreign_pages(bool b, int i)
{
}

static inline void ramster_cpu_up(int cpu)
{
}

static inline void ramster_cpu_down(int cpu)
{
}
#endif

#endif /* _ZCACHE_RAMSTER_H */
Loading

0 comments on commit c6f3906

Please sign in to comment.