-
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: 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
Showing
12 changed files
with
4,193 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: c857ce1659b058c087bce9874cb4eeb5adbf04c5 | ||
refs/heads/master: faca2ef77abf1983e87d36b14bc181efb983979a |
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
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
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,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. |
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,3 @@ | ||
zcache-y := zcache-main.o tmem.o zbud.o | ||
|
||
obj-$(CONFIG_ZCACHE2) += zcache.o |
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,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 */ |
Oops, something went wrong.