Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752536AbaAXScE (ORCPT ); Fri, 24 Jan 2014 13:32:04 -0500 Received: from g1t0026.austin.hp.com ([15.216.28.33]:11439 "EHLO g1t0026.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbaAXScB (ORCPT ); Fri, 24 Jan 2014 13:32:01 -0500 From: T Makphaibulchoke To: viro@zeniv.linux.org.uk, tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: aswin@hp.com, T Makphaibulchoke Subject: [PATCH v4 0/3] ext4: increase mbcache scalability Date: Fri, 24 Jan 2014 11:31:25 -0700 Message-Id: <1390588288-66930-1-git-send-email-tmac@hp.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1377186876-57291-1-git-send-email-tmac@hp.com> References: <1377186876-57291-1-git-send-email-tmac@hp.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/