Whamcloud - gitweb
LU-6138 lfsck: set async windows size properly 18/13818/5
authorFan Yong <fan.yong@intel.com>
Mon, 24 Nov 2014 21:02:28 +0000 (05:02 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 23 Feb 2015 18:02:13 +0000 (18:02 +0000)
commitbcabadc92e1212b8397438e798ba7d47ee67f5fc
tree33e58c48b7b3e403e0da26af948d6f25937fea50
parentf6d744d259fe6bc0b8750127565fb13fb2e66c06
LU-6138 lfsck: set async windows size properly

If the async windows size is set as zero, then the LFSCK main engine
on the MDT will pre-load objects as fast as possible. Under such case,
if the peer server(s) cannot handle the pre-load requests in time, it
will cause a lot of pre-load requests waiting on the MDT as to memory
pressure. To avoid such trouble, we will forbid to set the LFSCK async
windows size as zero or other too large (> LFSCK_ASYNC_WIN_MAX) valid.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I3468236a4a0705ea60b49704583b051c99c77cd5
Reviewed-on: http://review.whamcloud.com/13818
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/lfsck/lfsck_bookmark.c
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/utils/lustre_lfsck.c