Return-Path: <ricwheeler@gmail.com>
Received: from po14.mit.edu ([unix socket])
	by po14.mit.edu (Cyrus v2.1.5) with LMTP; Thu, 10 Jul 2008 08:37:26 -0400
X-Sieve: CMU Sieve 2.2
Received: from pacific-carrier-annex.mit.edu by po14.mit.edu (8.13.6/4.7) id m6ACbQ6G014604; Thu, 10 Jul 2008 08:37:26 -0400 (EDT)
Received: from mit.edu (W92-130-BARRACUDA-3.MIT.EDU [18.7.21.224])
	by pacific-carrier-annex.mit.edu (8.13.6/8.9.2) with ESMTP id m6ACbE1f013342
	for <tytso@mit.edu>; Thu, 10 Jul 2008 08:37:14 -0400 (EDT)
Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.246])
	by mit.edu (Spam Firewall) with ESMTP id 4E65D1016A46
	for <tytso@mit.edu>; Thu, 10 Jul 2008 08:37:01 -0400 (EDT)
Received: by hs-out-0708.google.com with SMTP id j58so787908hsj.6
        for <tytso@mit.edu>; Thu, 10 Jul 2008 05:37:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:subject:content-type
         :content-transfer-encoding;
        bh=Q3vuSbDah+NFZQiXQmNHoHTk7GMCtqWA0jV/fjpoMmE=;
        b=eKICrRHCLrQYylvB+PinaxCIRON0cNg1rqeZ2mimMXpjo/DFG1FmCJWKo78uTIbmy6
         dNn49hW7nOHPrORQ6F6LbXb99fd/+GR9d9Fo/f1ZTK1qcmRIKC0x8Gt45/5yXiJLkVf2
         Pr3/wjsx6EvjgMe1eKMp8T457pAfAErbZXhew=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject
         :content-type:content-transfer-encoding;
        b=VXpOqF4nZ3UjzUNmAnhlloTqQc84ZcZWz5ENA8rwm3Uv4vhm7tR76/rpRXf9qBXzFP
         08wREnSoKz8/WLJy5a0yYQMC+w9KqJdOb+2P4RYrHUu0ctPyNamtOgJLfbv+uWoYf+6K
         /f/ZPG+cx9q7vzF23VQLQAOpKVRi0kl5sYwA0=
Received: by 10.100.140.12 with SMTP id n12mr7560808and.147.1215693421025;
        Thu, 10 Jul 2008 05:37:01 -0700 (PDT)
Received: from ?10.16.15.168? ( [66.187.234.199])
        by mx.google.com with ESMTPS id 4sm10169719yxd.2.2008.07.10.05.36.53
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Thu, 10 Jul 2008 05:37:00 -0700 (PDT)
Message-ID: <4876025A.80909@gmail.com>
Date: Thu, 10 Jul 2008 08:36:42 -0400
From: Ric Wheeler <ricwheeler@gmail.com>
User-Agent: Thunderbird 1.5.0.12 (X11/20071129)
MIME-Version: 1.0
To: linux-ext4-owner@vger.kernel.org, Theodore Tso <tytso@mit.edu>
Subject: suspiciously good fsck times?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.00
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42


Just to be mean, I have been trying to test the fsck speed of ext4 with 
lots of small files.  The test I ran uses fs_mark to fill a 1TB Seagate 
drive with 45.6 million 20k files (distributed between 256 subdirectories).

Running on ext3, "fsck -f" takes about one hour.

Running on ext4, with uninit_bg, the same fsck is finished in a bit over 
5 minutes - more than 10x faster.  (Without uninit_bg, the fsck takes 
about 10 minutes).

Is this too good to be true? Below is the fsck run itself, the tree is 
Ted's latest git tree and his 1.41 WIP tools,

ric


[root@localhost Perf]# time /sbin/fsck.ext4 -t -t -f /dev/sdb1
e4fsck 1.41-WIP (07-Jul-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 1: Memory used: 40632k/69424k (36424k/4209k), time: 204.95/78.22/25.58
Pass 1: I/O read: 11140MB, write: 0MB, rate: 54.35MB/s
Pass 2: Checking directory structure
Pass 2: Memory used: 70184k/61968k (51803k/18382k), time: 76.47/50.27/ 8.77
Pass 2: I/O read: 3023MB, write: 0MB, rate: 39.53MB/s
Pass 3: Checking directory connectivity
Peak memory: Memory used: 70184k/61968k (59256k/10929k), time: 
281.72/128.59/34.35
Pass 3A: Memory used: 70184k/61968k (59256k/10929k), time:  0.00/ 0.00/ 
0.00
Pass 3A: I/O read: 0MB, write: 0MB, rate: 0.00MB/s
Pass 3: Memory used: 70184k/61968k (51803k/18382k), time:  0.03/ 0.00/ 0.00
Pass 3: I/O read: 1MB, write: 0MB, rate: 37.86MB/s
Pass 4: Checking reference counts
Pass 4: Memory used: 70184k/44968k (27354k/42831k), time:  2.37/ 2.36/ 0.00
Pass 4: I/O read: 0MB, write: 0MB, rate: 0.00MB/s
Pass 5: Checking group summary information
Pass 5: Memory used: 70184k/240k (64619k/5566k), time: 19.40/ 5.52/ 0.29
Pass 5: I/O read: 34MB, write: 0MB, rate: 1.75MB/s
/dev/sdb1: 45600268/61054976 files (0.0% non-contiguous), 
232657574/244190000 blocks
Memory used: 70184k/240k (64889k/5296k), time: 303.54/136.48/34.65
I/O read: 14198MB, write: 1MB, rate: 46.77MB/s

real    5m3.993s
user    2m16.477s
sys     0m35.041s
