]> git.karo-electronics.de Git - karo-tx-linux.git/commit
swap: make each swap partition have one address_space
authorShaohua Li <shli@kernel.org>
Wed, 20 Feb 2013 02:14:39 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:46 +0000 (16:52 +1100)
commitdebb9db0b884496f75a8b6892374f0455c859e36
tree76b91b50b1a70a64187f9151bf19dbffb074eaa7
parente87c802fa635c6b19ed9f08f1bde26dae1cfda05
swap: make each swap partition have one address_space

When I use several fast SSD to do swap, swapper_space.tree_lock is heavily
contended.  This makes each swap partition have one address_space to
reduce the lock contention.  There is an array of address_space for swap.
The swap entry type is the index to the array.

In my test with 3 SSD, this increases the swapout throughput 20%.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Cc: Hugh Dickins <hughd@google.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/meminfo.c
include/linux/swap.h
mm/memcontrol.c
mm/mincore.c
mm/swap.c
mm/swap_state.c
mm/swapfile.c
mm/util.c