From owner-freebsd-questions Mon Jun 18 14: 8:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from maile.telia.com (maile.telia.com [194.22.190.16]) by hub.freebsd.org (Postfix) with ESMTP id 5ABDB37B403 for ; Mon, 18 Jun 2001 14:08:07 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maile.telia.com (8.11.2/8.11.0) with ESMTP id f5IL85802966 for ; Mon, 18 Jun 2001 23:08:05 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id XAA06598 for ; Mon, 18 Jun 2001 23:08:04 +0200 (CEST) Received: (qmail 44681 invoked by uid 1001); 18 Jun 2001 21:07:36 -0000 Date: Mon, 18 Jun 2001 23:07:36 +0200 From: Erik Trulsson To: Rick Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Significant Performance Drop during 4.0-4.3 Upgrade Message-ID: <20010618230736.A44631@student.uu.se> Mail-Followup-To: Rick , freebsd-questions@FreeBSD.ORG References: <01061813442301.17965@trap.geckobot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01061813442301.17965@trap.geckobot.com> User-Agent: Mutt/1.3.19i 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 Mon, Jun 18, 2001 at 01:44:23PM -0700, Rick wrote: > Hi! > > I just upgraded 3 servers from 4.0 to 4.3 FreeBSD using sysinstall, and I > noticed that some rm -r operations seemed a little slow after the upgrade. > > Coincidentally I've been working on an ISAM alternative to B-tree so I have a > bunch of performance benchmarks handy. The results: > > Disk hits are *much* slower after the upgrade. Many times slower, in fact. > I also had Berkley DB benchmarks that I was using for comparison and they too > were heavily impacted. > > For the life of me, I can't figure out what the heck happened! SOFTUPDATES > were off before the upgrade and I didn't change of the disk tuning. I did > tweak my kernel a bit, but nothing should have had this effect-- I just > removed a few things that weren't being used like EISA and some network > cards. When I examine dmesg everything still seems to be recognized as ULTRA > DMA, etc. I've tried putting everything back in my kernel and I've try the > GENERIC kernel with no improvements. > > I've looked through the release notes, etc., and couldn't find anythingd > etailing this problem. Did I miss something? Am I just extra lucky? Yes, you missed one small thing. Write caching for IDE disks were turned off by default in 4.3-RELEASE. It has since been turned back on in 4.3-STABLE on since the performance hit was too big. (The reason it was turned off is that if you have the write-cache turned on can result in serious data-loss if you have a power failure.) You can turn it back on by setting hw.ata.wc=1 from the loader. See the manpages for ata(4) and loader(8) for more information. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message