Skip to content

Commit

Permalink
added ZCACHE, CLEANCACHE, FRONTSWAP (thanks to @faux123) with some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DooMLoRD authored and Napstar-xda committed May 28, 2012
1 parent 9034ae5 commit 48e3ec0
Show file tree
Hide file tree
Showing 28 changed files with 3,602 additions and 48 deletions.
5 changes: 3 additions & 2 deletions kernel/arch/arm/configs/uckernel_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.35.7
# Sat Dec 3 17:16:46 2011
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
Expand Down Expand Up @@ -422,12 +421,13 @@ CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_CLEANCACHE=y
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_CLEANCACHE=y
CONFIG_FRONTSWAP=y
# CONFIG_LEDS is not set
CONFIG_ALIGNMENT_TRAP=y
# CONFIG_UACCESS_WITH_MEMCPY is not set
Expand Down Expand Up @@ -1998,6 +1998,7 @@ CONFIG_ZRAM_DEFAULT_PERCENTAGE=25
CONFIG_ZRAM_LZO=y
# CONFIG_ZRAM_SNAPPY is not set
CONFIG_ZRAM_DEFAULT_DISKSIZE=100663296
CONFIG_ZCACHE=y
# CONFIG_BATMAN_ADV is not set
# CONFIG_FB_SM7XX is not set

Expand Down
2 changes: 2 additions & 0 deletions kernel/drivers/staging/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ source "drivers/staging/iio/Kconfig"

source "drivers/staging/zram/Kconfig"

source "drivers/staging/zcache/Kconfig"

source "drivers/staging/wlags49_h2/Kconfig"

source "drivers/staging/wlags49_h25/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions kernel/drivers/staging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ obj-$(CONFIG_DX_SEP) += sep/
obj-$(CONFIG_IIO) += iio/
obj-$(CONFIG_ZRAM) += zram/
obj-$(CONFIG_XVMALLOC) += zram/
obj-$(CONFIG_ZCACHE) += zcache/
obj-$(CONFIG_WLAGS49_H2) += wlags49_h2/
obj-$(CONFIG_WLAGS49_H25) += wlags49_h25/
obj-$(CONFIG_BATMAN_ADV) += batman-adv/
Expand Down
13 changes: 13 additions & 0 deletions kernel/drivers/staging/zcache/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 kernel/drivers/staging/zcache/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 48e3ec0

Please sign in to comment.