f2fs: fix performance issue observed with multi-thread sequential read
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Aug 2018 00:53:34 +0000 (17:53 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Sep 2018 22:21:53 +0000 (15:21 -0700)
commit54f3a3a8c3e9b51d968b83fa8aa1932b59f1ffc1
tree4a3748bf6f6dd46a1039abbb51ec058941c3afc9
parent3cc9792fa1ea67bbfdaee28737e37f9045976b76
f2fs: fix performance issue observed with multi-thread sequential read

This reverts the commit - "b93f771 - f2fs: remove writepages lock"
to fix the drop in sequential read throughput.

Test: ./tiotest -t 32 -d /data/tio_tmp -f 32 -b 524288 -k 1 -k 3 -L
device: UFS

Before -
read throughput: 185 MB/s
total read requests: 85177 (of these ~80000 are 4KB size requests).
total write requests: 2546 (of these ~2208 requests are written in 512KB).

After -
read throughput: 758 MB/s
total read requests: 2417 (of these ~2042 are 512KB reads).
total write requests: 2701 (of these ~2034 requests are written in 512KB).

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c
fs/f2fs/sysfs.c