Files
android_kernel_motorola_sm6225/include/linux
Minchan Kim 0bcac06f27 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/1505886205-9671-5-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ilya Dryomov <idryomov@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-11-15 18:21:02 -08:00
..
…
…
…
…
…
…
…
…
…
…
2017-11-13 01:34:49 +01:00
…
…
…
…
…
…
2017-11-10 19:53:25 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-11-13 01:41:20 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-11-15 18:21:01 -08:00
…
…
2017-10-12 15:41:05 +02:00
…
…
2017-11-15 18:21:01 -08:00
…
…
…
…
…
…
…
…
2017-10-19 10:08:56 +02:00
…
2017-10-07 10:45:02 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-10-20 09:37:32 +02:00
…
…
…
…
…
…
…
…
2017-11-13 01:41:26 +01:00
…
…
…
…
…
…
2017-11-13 01:33:48 +01:00
…
2017-11-13 09:48:56 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-11-07 12:22:21 +01:00
…
…
…
…
…
…
…
…
…
…
…
2017-11-15 18:21:01 -08:00
2017-11-15 18:21:01 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…