From owner-freebsd-hackers Tue Mar 5 16:59:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by hub.freebsd.org (Postfix) with ESMTP id E6F2937B416 for ; Tue, 5 Mar 2002 16:59:23 -0800 (PST) Received: from i8k.babbleon.org ([66.57.85.154]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Tue, 5 Mar 2002 18:54:18 -0500 Received: by i8k.babbleon.org (Postfix, from userid 111) id 9AE73BA03; Tue, 5 Mar 2002 18:54:04 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Julian Elischer , Lars Eggert Subject: Re: A weird disk behaviour Date: Tue, 5 Mar 2002 18:54:04 -0500 X-Mailer: KMail [version 1.3] Cc: Zhihui Zhang , "Rogier R. Mulhuijzen" , freebsd-hackers@FreeBSD.ORG References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020305235404.9AE73BA03@i8k.babbleon.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 05 March 2002 06:29 pm, Julian Elischer wrote: > On Tue, 5 Mar 2002, Lars Eggert wrote: > > Zhihui Zhang wrote: > > > Several times slower! The point is that writing less data performs > > > worse. So I call it weird. > > > > Huh? You originally said: > > > (1) Write each block fully and sequentially, ie. 8192 bytes. > > > > > > (2) I still write these blocks sequentially, but for each block I only > > > write part of it. > > > > ... > > > > > I find out the the performance of (2) is several times better than the > > > performance of (1). Can anyone explain to me why this is the case? > > > > If (2) is better than (1), then writing *less* data is faster. Which is > > it, now? > > Um yeah that is what all my suggestions were based on.. If, however, the later mail is right and the earlier mail is wrong, this *would* be easily explained: Many disks have optimization for the case of linear writes and seeking slows them down a *lot*. Why? Because it's very common to do linear writes, and it make sense to optimize the common case. But it'll be easier for us all to explain away the results if you can tell us what the results actually are :-) > > > Lars > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) ME --> http://www.babbleon.org http://www.eff.org <-- GOOD GUYS --> http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message