diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-04 12:28:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-04 12:28:45 -0700 |
commit | a3fe778c7895cd847d23c25ad566d83346282a77 (patch) | |
tree | 53ba1b736dac08680a08753f7163a1890d7a0d03 /mm/Kconfig | |
parent | 9171c670b4915e30360c2aed530b8377fbbcc852 (diff) | |
parent | 165c8aed5bbc6bdddbccae0ba9db451732558ff9 (diff) | |
download | kernel_goldelico_gta04-a3fe778c7895cd847d23c25ad566d83346282a77.zip kernel_goldelico_gta04-a3fe778c7895cd847d23c25ad566d83346282a77.tar.gz kernel_goldelico_gta04-a3fe778c7895cd847d23c25ad566d83346282a77.tar.bz2 |
Merge tag 'stable/frontswap.v16-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/mm
Pull frontswap feature from Konrad Rzeszutek Wilk:
"Frontswap provides a "transcendent memory" interface for swap pages.
In some environments, dramatic performance savings may be obtained
because swapped pages are saved in RAM (or a RAM-like device) instead
of a swap disk. This tag provides the basic infrastructure along with
some changes to the existing backends."
Fix up trivial conflict in mm/Makefile due to removal of swap token code
changing a line next to the new frontswap entry.
This pull request came in before the merge window even opened, it got
delayed to after the merge window by me just wanting to make sure it had
actual users. Apparently IBM is using this on their embedded side, and
Jan Beulich says that it's already made available for SLES and OpenSUSE
users.
Also acked by Rik van Riel, and Konrad points to other people liking it
too. So in it goes.
By Dan Magenheimer (4) and Konrad Rzeszutek Wilk (2)
via Konrad Rzeszutek Wilk
* tag 'stable/frontswap.v16-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/mm:
frontswap: s/put_page/store/g s/get_page/load
MAINTAINER: Add myself for the frontswap API
mm: frontswap: config and doc files
mm: frontswap: core frontswap functionality
mm: frontswap: core swap subsystem hooks and headers
mm: frontswap: add frontswap header file
Diffstat (limited to 'mm/Kconfig')
-rw-r--r-- | mm/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -389,3 +389,20 @@ config CLEANCACHE in a negligible performance hit. If unsure, say Y to enable cleancache + +config FRONTSWAP + bool "Enable frontswap to cache swap pages if tmem is present" + 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 data is stored into + "transcendent memory", memory that is not directly accessible or + addressable by the kernel and is of unknown and possibly + time-varying size. When space in transcendent memory is available, + a significant 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 + and swap data is stored as normal on the matching swap device. + + If unsure, say Y to enable frontswap. |