From owner-freebsd-questions Sun Feb 10 5:50:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A81D37B405; Sun, 10 Feb 2002 05:50:48 -0800 (PST) Received: from i8k.babbleon.org ([66.57.85.154]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 10 Feb 2002 01:36:30 -0500 Received: by i8k.babbleon.org (Postfix, from userid 111) id 9733B408E; Sun, 10 Feb 2002 01:31:40 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Sam , freebsd-questions@FreeBSD.ORG Subject: Re: Normal behavior? Date: Sun, 10 Feb 2002 01:31:39 -0500 X-Mailer: KMail [version 1.3] Cc: freebsd-stable@FreeBSD.ORG References: <3C5D4702.661789BA@vortex.wa4phy.net> In-Reply-To: <3C5D4702.661789BA@vortex.wa4phy.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020210063140.9733B408E@i8k.babbleon.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 03 February 2002 09:19 am, Sam wrote: > I'd appreciate some clarification about the behavior of the softupdates > as it relates to disk writes. Situation: Have noticed that during an > ftp session with relatively high (150 Kbs) data stream, I notice after > what appears to be a short burst, i.e., 130 packets (viewed with systat > -vm) there is a considerable delay before the next batch. Graphicaly > viewing thruput with xsysinfo, I watch the disk write for each "batch", > but while the write is happening, there appears to be a significant > delay before the next packet stream is graphicaly displayed. Is this a > function of softupdates, combined with the fact that the ATA drive has > to be serviced by the processor, and the switcher can't service two > things at once, or what. How often does the data that needs to be > written actually get written to the disk, or do I misunderstand how > softupdates works? Essentially, what it appears to me that is > happening, is the packet stream is "suspended" while the disk is being > written to. Is that a correct assumption? Since softupdates is on by > default now, what damage would I do if I turned it off? Is that to my > best interest? softupdates will "batch up" writes to the disk that otherwise would be done one at a time. So the total time taken up by disk writes shouldn't be any larger, and if you turn off write caching it should actually be lots smaller by dint of the batching up. If you have write caching turned on (and I do not recommend this practice with typical IDE disks!), then it should be the same speed either way, just batched up vs. spread out. When interspersed with network i/o, it is possible that your total throughput would be faster if you turn them, if the timing is such that the disk i/o happens when the network i/o is waiting anyway, and vice-versa, but in practice it seems unlikely that the timing will always work out quite so conveniently. Most likely it would be the same or slower if you turn off softupdates, as you get just as much "drag" from the disk i/o, but in a less "bursty" fashion. But the only way to know is to do repeated before-and-after testing. If you do, please post the results back here. It should prove interesting either way. > > Thanks.. > > Sam -- 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-questions" in the body of the message