Whamcloud - gitweb
LU-2139 osc: Track number of "unstable" pages per osc 74/4374/10
authorPrakash Surya <surya1@llnl.gov>
Mon, 22 Oct 2012 20:38:11 +0000 (13:38 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 4 Nov 2013 03:09:46 +0000 (03:09 +0000)
commit07ee41661fec73addd3c73bea3d516a99d92d5c8
tree905df9a3eeeb25b946f61b2ca2a6f27d9e976cf4
parent586e95a5b3f7b9525d78e7efc9f2949387fc9d54
LU-2139 osc: Track number of "unstable" pages per osc

This change adds simple accounting hooks for "unstable" pages on a per
OSC basis. Now, in addition to the per filesystem tracking, each OSC
will maintain a running total of its unstable pages. These counters are
exported through the proc interface, and can be read using the lctl
command.

For example:

    # Read number of unstable pages contained by each OSC
    lctl get_param osc.*.unstable_stats

The motivation for this change is in anticipation of implementing a
"soft sync" functionality, urging servers to commit these unstable
pages to stable storage. The per OSC accounting allows a client to
limit the soft sync request to only the OSCs which have outstanding
unstable pages.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: Ife1f90515cb60ba9f85daba5d50483562f2697d1
Reviewed-on: http://review.whamcloud.com/4374
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/osc/lproc_osc.c
lustre/osc/osc_cache.c