Whamcloud - gitweb
LU-744 osc: add lru pages management - new RPC
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Wed, 16 May 2012 03:11:37 +0000 (20:11 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Oct 2012 20:59:26 +0000 (16:59 -0400)
commitc2ddf78e51e7a674c3bf9e40559c5b7ca2bfe120
treeee15ec133672633ed42ca4cb98d2f56293b25f07
parent54d7c3fc1cb808676dbf337b83cd04c51925242d
LU-744 osc: add lru pages management - new RPC

Add a cache management at OSC layer, this way we can control how much
memory can be used to cache lustre pages and avoid complex solution
as what we did in b1_8.

In this patch, admins can set how much memory will be used for caching
Lustre pages per file system. A self-adapative algorithm is used to
balance those budget among OSCs.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I76c840aef5ca9a3a4619f06fcaee7de7f95b05f5
Reviewed-on: http://review.whamcloud.com/2514
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
19 files changed:
libcfs/include/libcfs/linux/linux-prim.h
libcfs/include/libcfs/posix/libcfs.h
libcfs/include/libcfs/user-lock.h
libcfs/include/libcfs/user-prim.h
lustre/include/lclient.h
lustre/include/lprocfs_status.h
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/lov/lov_obd.c
lustre/obdclass/cl_page.c
lustre/obdclass/lprocfs_status.c
lustre/osc/lproc_osc.c
lustre/osc/osc_cl_internal.h
lustre/osc/osc_internal.h
lustre/osc/osc_page.c
lustre/osc/osc_request.c