Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758964AbYFWUzd (ORCPT ); Mon, 23 Jun 2008 16:55:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758735AbYFWUzO (ORCPT ); Mon, 23 Jun 2008 16:55:14 -0400 Received: from sca-es-mail-2.Sun.COM ([192.18.43.133]:59089 "EHLO sca-es-mail-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754469AbYFWUzM (ORCPT ); Mon, 23 Jun 2008 16:55:12 -0400 Date: Mon, 23 Jun 2008 14:55:01 -0600 From: Andreas Dilger Subject: Re: Performance of ext4 In-reply-to: To: Holger Kiehl Cc: Theodore Tso , Eric Sandeen , "Aneesh Kumar K.V" , Jan Kara , Solofo.Ramangalahy@bull.net, Nick Dokos , linux-ext4@vger.kernel.org, linux-kernel Message-id: <20080623205501.GW6239@webber.adilger.int> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-GPG-Key: 1024D/0D35BED6 X-GPG-Fingerprint: 7A37 5D79 BF1B CECA D44F 8A29 A488 39F5 0D35 BED6 References: <20080616175408.GF3279@atrey.karlin.mff.cuni.cz> <20080616181353.GA20686@skywalker> <20080619155645.GA8582@mit.edu> <485A8C2D.1090806@redhat.com> <20080619174211.GB9119@mit.edu> <20080620085922.GH9119@mit.edu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1590 Lines: 32 On Jun 20, 2008 09:21 +0000, Holger Kiehl wrote: > When the benchmark runs it writes to stdout and with tee to the result > file. It first writes some information about the system, prepares the > test files (creates lots of small files), calls sync and then starts > the test. Then every minute one line gets written to the result file. > Often I have seen that everything after the sync was missing. But > sometimes it happened that some parts at the end are missing. But it > was always a clean cut, that is there where no lines that where cut > partially. The lines where always complete. Could you enhance your test to record the file size from "stat -c %s {file}" at the end of the test, and also "dumpe2fs -c -R 'stat ' {dev}" where is from "stat -c %i {file}". If these two don't match after 60s, or after a "sync; sync" then there will likely be a data loss. With delalloc it is expected that the "debugfs" output will not match up to 30s+ after the last modification, because the write is only in memory. With ext3 this window would be much smaller, and in fact not visible from userspace because "debugfs" would be accessing the same (in memory) buffer as the kernel, so it can't even access the stale data on disk. Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. -- 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/