summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
authorTao Ma2009-02-24 17:53:25 +0100
committerMark Fasheh2009-04-03 20:39:18 +0200
commitfeb473a6e8bd19297d0f3bb377b25055c0228c0a (patch)
tree4ceae3a185fc430c8927dc0bbb197a3694c37194 /fs/ocfs2/dlm/dlmcommon.h
parentocfs2: Allocate inode groups from global_bitmap. (diff)
downloadkernel-qcow2-linux-feb473a6e8bd19297d0f3bb377b25055c0228c0a.tar.gz
kernel-qcow2-linux-feb473a6e8bd19297d0f3bb377b25055c0228c0a.tar.xz
kernel-qcow2-linux-feb473a6e8bd19297d0f3bb377b25055c0228c0a.zip
ocfs2: Optimize inode group allocation by recording last used group.
In ocfs2, the block group search looks for the "emptiest" group to allocate from. So if the allocator has many equally(or almost equally) empty groups, new block group will tend to get spread out amongst them. So we add osb_inode_alloc_group in ocfs2_super to record the last used inode allocation group. For more details, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/InodeAllocationStrategy. I have done some basic test and the results are a ten times improvement on some cold-cache stat workloads. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
0 files changed, 0 insertions, 0 deletions