Whamcloud - gitweb
LU-4841 osc: revise unstable pages accounting 03/10003/11
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 15 May 2014 16:47:11 +0000 (09:47 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 12 Jun 2014 18:41:19 +0000 (18:41 +0000)
commit48eceeec98da3db2c93d980bb5f7e1c1f7c333cc
treec1b1d52472b05aef744c4f4017b547fd2b588bf9
parentef82e43c8ff4b060ca4519816dc049a54bb24374
LU-4841 osc: revise unstable pages accounting

A few changes are made in this patch for unstable pages tracking:

1. Remove kernel NFS unstable pages tracking because it killed
   performance
2. Track unstable pages as part of LRU cache. Otherwise Lustre
   can use much more memory than max_cached_mb
3. Remove obd_unstable_pages tracking to avoid using global
   atomic counter
4. Make unstable pages track optional. Tracking unstable pages is
   turned off by default, and can be controled by
   llite.*.unstable_stats.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I3bfae9376aac2e2c38539577d9db29a375bc95af
Reviewed-on: http://review.whamcloud.com/10003
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/cl_object.h
lustre/include/lclient.h
lustre/include/obd_support.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/obdclass/class_obd.c
lustre/osc/osc_cache.c
lustre/osc/osc_internal.h
lustre/osc/osc_page.c
lustre/osc/osc_request.c