Whamcloud - gitweb
LU-13799 llite: Do not get/put DIO pages
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 19 Jan 2022 15:49:04 +0000 (10:49 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 17:19:26 +0000 (17:19 +0000)
commit46c6dc75f53539225c0ef28301972a2b80efa0df
tree5a467380531e7441e60021d2f8d050f9ce68b919
parent8eba9a2ef31238e0ddc2d227a6f4921c2f818123
LU-13799 llite: Do not get/put DIO pages

We've already told the kernel we're working with these pages
using the get/put_user_pages functions, and userspace must
hold references on them throughout the i/o anyway.

So getting/putting these vmpages is unnecessary.  This
saves around 7% of the time in DIO page submission, netting
about that much of a performance improvement.

This patch reduces i/o time in ms/GiB by:
Write: 22 ms/GiB
Read: 19 ms/GiB

Totals:
Write: 135 ms/GiB
Read: 143 ms/GiB

mpirun -np 1  $IOR -w -r -t 64M -b 64G -o ./iorfile --posix.odirect

With previous patches in series:
write     6470 MiB/s
read      6354 MiB/s

Plus this patch:
write     7531 MiB/s
read      7179 MiB/s

Lustre-change: https://review.whamcloud.com/39438
Lustre-commit: 881b4c722296ff7ac22c6fd7988363f2cdad9f1e

Signed-off-by: Patrick Farrel <pfarrell@whamcloud.com>
Change-Id: Icfd5bc73ba4254898d6051f11ab6aea624948763
Reviewed-on: https://review.whamcloud.com/44686
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/vvp_page.c