From: Andreas Dilger Subject: Re: Performance of ext4 Date: Mon, 23 Jun 2008 14:55:01 -0600 Message-ID: <20080623205501.GW6239@webber.adilger.int> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Cc: Theodore Tso , Eric Sandeen , "Aneesh Kumar K.V" , Jan Kara , Solofo.Ramangalahy@bull.net, Nick Dokos , linux-ext4@vger.kernel.org, linux-kernel To: Holger Kiehl Return-path: 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 In-reply-to: Content-disposition: inline Sender: linux-ext4-owner@vger.kernel.org List-ID: 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.