The patch consists of three parts. The first part changes the implementation of both the block and hash chains of an mb_cache from list_head to hlist_bl_head and also introduces new members, including a spinlock to mb_cache_entry, as required by the second part. The second part introduces higher degree of parallelism to the usages of the mb_cache and mb_cache_entries and impacts all ext filesystems. The third part of the patch further increases the scalablity of an ext4 filesystem by having each ext4 fielsystem allocate and use its own private mbcache structure, instead of sharing a single mcache structures across all ext4 filesystems, and increases the size of its mbcache hash tables. Here are some of the benchmark results with the changes. Using ram disk, there seems to be no peformance differences with aim7 for all workloads on all platforms tested. With regular disk filesystems with inode size of 128 bytes, forcing the uses of external xattr, there seems to be some good peformance increases with some of the aim7's workloads on all platforms tested. Here are some of the performance improvement on aim7 with 2000 users. On a 60 core machine: --------------------------- | | % increase | --------------------------- | alltests | 30.97 | --------------------------- | custom | 41.18 | --------------------------- | dbase | 32.06 | --------------------------- | disk | 125.02 | --------------------------- | fserver | 10.23 | --------------------------- | new_dbase | 14.58 | --------------------------- | new_fserve | 9.62 | --------------------------- | shared | 52.56 | --------------------------- On an 40 core machine: --------------------------- | | % increase | --------------------------- | custom | 63.45 | --------------------------- | disk | 133.25 | --------------------------- | fserver | 78.29 | --------------------------- | new_fserver | 80.66 | --------------------------- | shared | 56.34 | --------------------------- The changes have been tested with ext4 xfstests to verify that no regression has been introduced. Changed in v4: - New performance data - New diff summary - New patch architecture Changed in v3: - New idff summary Changed in v2: - New performance data - New diff summary T Makphaibulchoke (3): fs/mbcache.c change block and index hash chain to hlist_bl_node mbcache: decoupling the locking of local from global data ext4: each filesystem creates and uses its own mc_cache fs/ext4/ext4.h | 1 + fs/ext4/super.c | 24 ++- fs/ext4/xattr.c | 51 ++--- fs/ext4/xattr.h | 6 +- fs/mbcache.c | 491 ++++++++++++++++++++++++++++++++++-------------- include/linux/mbcache.h | 11 +- 6 files changed, 402 insertions(+), 182 deletions(-) -- 1.7.11.3 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html