kernel-aes67/fs/ext3
Mingming Cao 21fe3471c3 [PATCH] ext3: reduce allocate-with-reservation lock latencies
Currently in ext3 block reservation code, the global filesystem reservation
tree lock (rsv_block) is hold during the process of searching for a space
to make a new reservation window, including while scaning the block bitmap
to verify if the avalible window has a free block.  Holding the lock during
bitmap scan is unnecessary and could possibly cause scalability issue and
latency issues.

This patch tries to address this by dropping the lock before scan the
bitmap.  Before that we need to reserve the open window in case someone
else is targetting at the same window.  Question was should we reserve the
whole free reservable space or just the window size we need.  Reserve the
whole free reservable space will possibly force other threads which
intended to do block allocation nearby move to another block group(cause
bad layout).  In this patch, we just reserve the desired size before drop
the lock and scan the block bitmap.  This patch fixed a ext3 reservation
latency issue seen on a cvs check out test.  Patch is tested with many fsx,
tiobench, dbench and untar a kernel test.

Signed-Off-By: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-28 21:20:35 -07:00
..
acl.c [PATCH] quota: ext3: Improve quota credit estimates 2005-06-24 00:05:20 -07:00
acl.h [PATCH] remove <linux/xattr_acl.h> 2005-06-23 09:45:33 -07:00
balloc.c [PATCH] ext3: reduce allocate-with-reservation lock latencies 2005-06-28 21:20:35 -07:00
bitmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file.c [PATCH] ext3: reduce allocate-with-reservation lock latencies 2005-06-28 21:20:35 -07:00
fsync.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hash.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ialloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c [PATCH] quota: ext3: Improve quota credit estimates 2005-06-24 00:05:20 -07:00
ioctl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
namei.c [PATCH] quota: ext3: Improve quota credit estimates 2005-06-24 00:05:20 -07:00
resize.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
super.c [PATCH] coverity: fs/ext3/super.c: match_int return check 2005-06-28 21:20:34 -07:00
symlink.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr_security.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr_trusted.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr.c [PATCH] quota: ext3: Improve quota credit estimates 2005-06-24 00:05:20 -07:00
xattr.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00