Whamcloud - gitweb
LU-32 osd: keep root node BH ref of IAM container
authorLiang Zhen <liang@whamcloud.com>
Mon, 27 Dec 2010 05:35:20 +0000 (13:35 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 28 Nov 2012 18:09:56 +0000 (13:09 -0500)
commit1d903eb2c0c767144f1ad2d2bf72862726846845
tree96dc5cbab9bd330364798bb8e66a93e077e0623d
parent45cb8ced9c25016bca7dad16016a7e4d9b0580d8
LU-32 osd: keep root node BH ref of IAM container

IAM in ldiskfs-osd will always consume some slots in bh_lru (see:
fs/buffer.c), if we keep buffer_head reference on root node,
we can save one slot in bh_lru and could be somehow helpful for
overall performance, I did some tests, LRU hits rate increased
5%-10% while creating files if we always keep this reference.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: I954f26932462169c9bfc6bbfe1a57b5348624179
Reviewed-on: http://review.whamcloud.com/1826
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4514
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam.c
lustre/osd-ldiskfs/osd_iam.h