Whamcloud - gitweb
LU-13439 lmv: qos stay on current MDT if less full 45/43445/8
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 25 Apr 2021 11:02:19 +0000 (05:02 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 3 May 2021 22:51:35 +0000 (22:51 +0000)
commit645146c95feb6b330d0aaaf8edea1e5c09a6a46b
tree69a7f23a3f9e56b2afa2f075ee1cfd72c7ae0884
parentf167f78e3bfdae3a3c398f8f91604e92ed41627e
LU-13439 lmv: qos stay on current MDT if less full

Keep "space balanced" subdirectories on the parent MDT if it is less
full than average, since it doesn't make sense to select another MDT
which may occasionally be *more* full.  This also reduces random
"MDT jumping" and needless remote directories.

Reduce the QOS threshold for space balanced LMV layouts, so that the
MDTs don't become too imbalanced before trying to fix the problem.

Change the LUSTRE_OP_MKDIR opcode to be 1 instead of 0, so it can
be seen that a valid opcode has been stored into the structure.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iab34c7eade03d761aa16b08f409f7e5d69cd70bd
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lmv/lmv_obd.c
lustre/obdclass/lu_tgt_descs.c