]> Git Repo - linux.git/commit - mm/page_io.c
mm, swap: skip swapcache for swapin of synchronous device
authorMinchan Kim <[email protected]>
Thu, 16 Nov 2017 01:33:07 +0000 (17:33 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:02 +0000 (18:21 -0800)
commit0bcac06f27d7528591c27ac2b093ccd71c5d0168
treeb8261d05b232e57a58a7fe90306cad5d545de900
parent539a6fea7fdcade532bd3e77be2862a683f8f0c9
mm, swap: skip swapcache for swapin of synchronous device

With fast swap storage, the platforms want to use swap more aggressively
and swap-in is crucial to application latency.

The rw_page() based synchronous devices like zram, pmem and btt are such
fast storage.  When I profile swapin performance with zram lz4
decompress test, S/W overhead is more than 70%.  Maybe, it would be
bigger in nvdimm.

This patch aims to reduce swap-in latency by skipping swapcache if the
swap device is synchronous device like rw_page based device.  It
enhances 45% my swapin test(5G sequential swapin, no readahead, from
2.41sec to 1.64sec).

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Ross Zwisler <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Ilya Dryomov <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Huang Ying <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/swap.h
mm/memory.c
mm/page_io.c
mm/swapfile.c
This page took 0.058247 seconds and 4 git commands to generate.