Whamcloud - gitweb
LU-4933 osc: Automatically increase the max_dirty_mb 46/10446/7
authorHongchao Zhang <hongchao.zhang@intel.com>
Thu, 22 May 2014 04:26:25 +0000 (12:26 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Jul 2014 04:40:08 +0000 (04:40 +0000)
commitbdc5bb52c55470cf8020933f80e327c397810603
treea889dc5ac5bfdf4907261ad5f0a195c451016dc7
parent0723b8be34503b31dbfc6c877d7a855091c625b4
LU-4933 osc: Automatically increase the max_dirty_mb

When RPC size or the max RPCs in flight is increased, the actual
limit might be max_dirty_mb. This patch automatically increases
the max_dirty_mb value at connection time and when the related
values are tuned manually by proc file system.

this patch also changes the unit of "cl_dirty" and "cl_dirty_max"
in client_obd from byte to page.

Change-Id: Ieaea7660caa8008365b38f548b4ecba4027e080b
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: http://review.whamcloud.com/10446
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/osc/lproc_osc.c
lustre/osc/osc_cache.c
lustre/osc/osc_request.c
lustre/ptlrpc/import.c