From patchwork Tue Mar 11 06:56:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darrick Wong X-Patchwork-Id: 328963 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 931F22C00AB for ; Tue, 11 Mar 2014 17:57:20 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754678AbaCKG5S (ORCPT ); Tue, 11 Mar 2014 02:57:18 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:32854 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754662AbaCKG5O (ORCPT ); Tue, 11 Mar 2014 02:57:14 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2B6v09t005776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Mar 2014 06:57:01 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2B6uw7S014156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Mar 2014 06:56:59 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s2B6uwOS017172; Tue, 11 Mar 2014 06:56:58 GMT Received: from localhost (/67.160.151.179) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 Mar 2014 23:56:57 -0700 Subject: [PATCH 28/49] mke2fs: set block_validity as a default mount option To: tytso@mit.edu, darrick.wong@oracle.com From: "Darrick J. Wong" Cc: linux-ext4@vger.kernel.org Date: Mon, 10 Mar 2014 23:56:56 -0700 Message-ID: <20140311065656.30585.8614.stgit@birch.djwong.org> In-Reply-To: <20140311065356.30585.47192.stgit@birch.djwong.org> References: <20140311065356.30585.47192.stgit@birch.djwong.org> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The block_validity mount option spot-checks block allocations against a bitmap of known group metadata blocks. This helps us to prevent self-inflicted catastrophic failures such as trying to "share" critical metadata (think bitmaps) with file data, which usually results in filesystem destruction. In order to test the overhead of the mount option, I re-used the speed tests in the metadata checksum testing script. In short, the program creates what looks like 15 copies of a kernel source tree, except that it uses fallocate to strip out the overhead of writing the file data so that we can focus on metadata overhead. On a 64G RAM disk, the overhead was generally about 0.9% and at most 1.6%. On a 160G USB disk, the overhead was about 0.8% and peaked at 1.2%. When I changed the test to write out files instead of merely fallocating space, the overhead was negligible. Signed-off-by: Darrick J. Wong --- misc/mke2fs.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/misc/mke2fs.conf.in b/misc/mke2fs.conf.in index 4c5dba7..de0250d 100644 --- a/misc/mke2fs.conf.in +++ b/misc/mke2fs.conf.in @@ -1,6 +1,6 @@ [defaults] base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr - default_mntopts = acl,user_xattr + default_mntopts = acl,user_xattr,block_validity enable_periodic_fsck = 0 blocksize = 4096 inode_size = 256