Whamcloud - gitweb
LU-18448 llite: read dir on open 69/57069/16
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Fri, 15 Nov 2024 09:16:04 +0000 (12:16 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Mar 2025 23:31:12 +0000 (23:31 +0000)
commit4a14a51a8e000e05e6a3c0dae7bf64b8d43f8254
tree5d1e1269c885edaf8d204c243842128e6544f226
parent2b8c8e1373ba4f894b80a1cd58e13d1048946694
LU-18448 llite: read dir on open

Let's read some pages at directory start,
a clients needs it probably.

walk over ~100k directories with 150 files on last leaf.

readdir on open enabled.

    real    0m39.977s
    user    0m0.121s
    sys     0m7.161s

readdir on open disabled

    real    1m18.106s
    user    0m0.151s
    sys     0m15.666s

HPE-bug-id: LUS-7695
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: Iaa674ce0d2e5723b380d7ca09407b27a90bc37f5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57069
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
24 files changed:
lustre/include/lu_object.h
lustre/include/lustre_dlm.h
lustre/include/lustre_export.h
lustre/include/lustre_mdc.h
lustre/include/lustre_osc.h
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/llite/namei.c
lustre/llite/statahead.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_locks.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/mdt/mdt_open.c
lustre/obdclass/dt_object.c
lustre/obdclass/lprocfs_status.c
lustre/tests/sanity.sh