Whamcloud - gitweb
LU-744 obdclass: revise stats for cl_object cache
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 7 Dec 2012 18:01:53 +0000 (10:01 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Dec 2012 21:09:48 +0000 (16:09 -0500)
commit5cae09a2409dcd396a1ee7be1eca7d3bbf77365e
treee5a511656a23b394204bf7947390afc7c372ab8b
parent6dd41a43e3cdff1b2e0713cfc163734889d8650a
LU-744 obdclass: revise stats for cl_object cache

It turns out that atomic doesn't scale well for highly contented
cl_page stats. Enable it only when CONFIG_DEBUG_PAGESTATE_TRACKING
is turned on.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I0163f65557135759f100fddde70c7e3ee2e45aed
Reviewed-on: http://review.whamcloud.com/4519
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
lustre/autoconf/lustre-core.m4
lustre/include/cl_object.h
lustre/obdclass/cl_lock.c
lustre/obdclass/cl_object.c
lustre/obdclass/cl_page.c