diff options
author | Dan Magenheimer <dan.magenheimer@oracle.com> | 2011-06-08 15:26:33 -0600 |
---|---|---|
committer | Dan Magenheimer <dan.magenheimer@oracle.com> | 2011-06-08 15:26:33 -0600 |
commit | eea72c31d3ada2a567e3ec8ef02346bb8ad792f0 (patch) | |
tree | 8ef586c95050ed4b97bb3992f8e55d0632a533b3 /mm | |
parent | 3319832fa2e6caa370aea425bea34c29a5d6ac42 (diff) |
mm: frontswap: config and doc files
This fourth patch of four in the frontswap series adds configuration
and documentation files.
[v5: change config default to n]
[v4: rebase to 2.6.39]
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jan Beulich <JBeulich@novell.com>
Cc: Rik Riel <riel@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/Kconfig | 17 | ||||
-rw-r--r-- | mm/Makefile | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig index 8ca47a5ee9c8..42d4fba19fff 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -370,3 +370,20 @@ config CLEANCACHE in a negligible performance hit. If unsure, say Y to enable cleancache + +config FRONTSWAP + bool "Enable frontswap pseudo-RAM driver to cache swap pages" + depends on SWAP + default n + help + Frontswap is so named because it can be thought of as the opposite of + a "backing" store for a swap device. The storage is assumed to be + a synchronous concurrency-safe page-oriented pseudo-RAM device (such + as Xen's Transcendent Memory, aka "tmem") which is not directly + accessible or addressable by the kernel and is of unknown (and + possibly time-varying) size. When a pseudo-RAM device is available, + a signficant swap I/O reduction may be achieved. When none is + available, all frontswap calls are reduced to a single pointer- + compare-against-NULL resulting in a negligible performance hit. + + If unsure, say Y to enable frontswap. diff --git a/mm/Makefile b/mm/Makefile index 836e4163c1bf..72c9e4fdde00 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -25,6 +25,7 @@ obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o obj-$(CONFIG_BOUNCE) += bounce.o obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o thrash.o +obj-$(CONFIG_FRONTSWAP) += frontswap.o obj-$(CONFIG_HAS_DMA) += dmapool.o obj-$(CONFIG_HUGETLBFS) += hugetlb.o obj-$(CONFIG_NUMA) += mempolicy.o |