Whamcloud - gitweb
LU-15252 mdc: add client tunable to disable LSOM update 19/45619/3
authorAlexander Boyko <alexander.boyko@hpe.com>
Fri, 19 Nov 2021 08:08:16 +0000 (03:08 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Dec 2021 03:52:32 +0000 (03:52 +0000)
commit19172ed37851fdd5731b1319c12151f5cb1fe267
tree8e7854cbd0f988093359c5f85382332dd79fb97a
parent789038c97ae1072874dcd6afcc9cd78e9c885368
LU-15252 mdc: add client tunable to disable LSOM update

It seems that mdt_lsom_update() has a serious issue with a single
shared file because of its mdt-level mutex for every close request.
The patch adds mdc_lsom parameter to mdc, base on it state client
sends or not LSOM updates to MDT. By default LSOM is on.

lctl set_param mdc.*.mdc_lsom=[on|off]

For a configuration when LSOM is not used the patch helps
MDT with load avarage with a specific load when many threads
open/read/close for a single file.

HPE-bug-id: LUS-10604
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: Iba0e745a94825641da6b0a1c09488b1e2f54658b
Reviewed-on: https://review.whamcloud.com/45619
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/mdc/lproc_mdc.c
lustre/mdc/mdc_request.c