Whamcloud - gitweb
LU-13799 osc: Don't get time for each page
authorPatrick Farrell <farr0186@gmail.com>
Fri, 7 May 2021 15:35:28 +0000 (11:35 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Aug 2021 17:18:47 +0000 (17:18 +0000)
commit49a090e59bc15ad51993a592dae8215adf8c7bb3
treeec9ba3d9e8acfb56ac9dea5062f2cfd04ae2b99a
parent3eeb1505cd174ccd5f789d2b7dc89c74fc07dac8
LU-13799 osc: Don't get time for each page

Getting the time when each batch of pages starts is
sufficiently accurate, and ktime_get() is several % of the
CPU time when doing AIO + DIO.

This relies on previous patches in this series.

Measuring this in milliseconds/gigabyte lets us measure the
improvement in absolute terms, rather than just relative
terms.

This patch reduces i/o time in ms/GiB by:
Write: 17 ms/GiB
Read: 6 ms/GiB

Totals:
Write: 237 ms/GiB
Read: 223 ms/GiB

IOR:
mpirun -np 1  $IOR -w -r -t 64M -b 64G -o ./iorfile --posix.odirect
Without the patch:
write     4030 MiB/s
read      4468  MiB/s

With patch:
write     4326 MiB/s
read      4587 MiB/s

Lustre-change: https://review.whamcloud.com/39437
Lustre-commit: 485976ab451dd6708d4d46bce3bbed9991f5d356

Signed-off-by: Patrick Farrell <farr0186@gmail.com>
Change-Id: I02897bf810683bc77a7d09156cdb83ba1d25ebf1
Reviewed-on: https://review.whamcloud.com/39437
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44439
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
lustre/include/lustre_osc.h
lustre/osc/osc_io.c
lustre/osc/osc_page.c