Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754129AbZDRH2k (ORCPT ); Sat, 18 Apr 2009 03:28:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751660AbZDRH2a (ORCPT ); Sat, 18 Apr 2009 03:28:30 -0400 Received: from mail.gmx.net ([213.165.64.20]:35943 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751310AbZDRH23 (ORCPT ); Sat, 18 Apr 2009 03:28:29 -0400 X-Authenticated: #14349625 X-Provags-ID: V01U2FsdGVkX1+d/eodQYedbdkxxXFEB9HjBm5qH2u4lRLNLdYHL1 Q/32FUFlhk0hx8 Subject: Re: [PATCH] Add ext3 data=guarded mode From: Mike Galbraith To: Amit Shah Cc: Theodore Tso , Chris Mason , Jan Kara , Linus Torvalds , Linux Kernel Developers List , Ext4 Developers List In-Reply-To: <20090418060312.GA10943@amit-x200.pnq.redhat.com> References: <1239816159-6868-1-git-send-email-chris.mason@oracle.com> <1239910921.21233.98.camel@think.oraclecorp.com> <20090417180906.GA8363@amit-x200.pnq.redhat.com> <20090417201342.GF26479@mit.edu> <20090418060312.GA10943@amit-x200.pnq.redhat.com> Content-Type: text/plain Date: Sat, 18 Apr 2009 09:28:21 +0200 Message-Id: <1240039701.6298.12.camel@marge.simson.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5600000000000001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2420 Lines: 54 On Sat, 2009-04-18 at 11:33 +0530, Amit Shah wrote: > On (Fri) Apr 17 2009 [16:13:42], Theodore Tso wrote: > > On Fri, Apr 17, 2009 at 11:39:06PM +0530, Amit Shah wrote: > > > # 4GiB file, kernel 9f76208c33984ab777eace5d07a4e36e88703e02 + ext3-guarded > > > > > > filesystem posix-fallocate mmap chunk-4096 chunk-8192 > > > ext3-guarded 85 97 459 90 > > > ext3-writeback 86 95 140 94 > > > ext3-ordered 86 96 277 95 > > > > > > Running the test in single user mode, I get the following results: > > > > > > # 4GiB file, kernel 9f76208c33984ab777eace5d07a4e36e88703e02 + ext3-guarded > > > > > > filesystem posix-fallocate mmap chunk-4096 chunk-8192 > > > ext3-guarded 84 86 163 91 > > > ext3-writeback 84 88 217 91 > > > ext3-ordered 84 86 226 91 > > > > > > The difference between guarded and writeback in chunk-4096 looking at > > your desktop timings and your single user times is.... surprising. > > Surely. I re-ran the guarded test immediately after that one and got a > time of 353s with the desktop. Another run much latergave me a 189s time, > so it seems to vary quite a lot. Initially when I was getting high > numbers, I thought it could be related to the IO scheduler but looks like > it's just some background tasks trying to get cpu or io time. Of course, > the whole system becomes sluggish once these tests start. > > > In particular, the fact that the guarded time is 3 times longer than > > ext3-writeback when the desktop is running, and 20% faster in single > > user mode. Are these results reproducible? And do you have any > > thoughts as to what might be causing them? > > I initially thought there was something but I also got lower numbers > (189s), so I can't really say what it is even though I call sync before > starting the tests. Probably because you're swapping heavily, and that is perturbing your test? With my setup, 3GB ram + 2GB swap, I can't even run the 4GB test without an mmap() failure/abort, but with 3GB size, box swaps insanely. (If I drop file size to 2GB, I see zip difference for all three mounts modes. 4k chunk time is ~27s for all three. Actually, all numbers emitted are around 27s.) -Mike -- 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/