From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 05:24:55 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3FA016A4CE for ; Tue, 19 Oct 2004 05:24:55 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C31F43D54 for ; Tue, 19 Oct 2004 05:24:55 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i9J5PBnr042174; Mon, 18 Oct 2004 23:25:11 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <4174A4CB.3090003@freebsd.org> Date: Mon, 18 Oct 2004 23:23:23 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: fandino@ng.fadesa.es References: <20041015190638.C5A0E5D04@ptavv.es.net> <41715E7F.7060509@ng.fadesa.es> <20041018100045.f8koww0skcco0woo@www.sweetdreamsracing.biz> <4173D66F.6010200@DeepCore.dk> <4173F2E9.7010407@ng.fadesa.es> In-Reply-To: <4173F2E9.7010407@ng.fadesa.es> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, hits=0.2 required=3.8 tests=NORMAL_HTTP_TO_IP autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-current@freebsd.org Subject: Re: FreeBSD 5.3b7and poor ata performance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 05:24:56 -0000 fandino wrote: > Hello Søren, > > Søren Schmidt wrote: > >>>> GNU/Linux 2.4.18 with ext2: 56848 K/sec >>>> FreeBSD 5.3b7 with default fs: 26347 K/sec >>>> FreeBSD 5.3b7 with default fs(async): 26566 K/sec >>>> FreeBSD 5.3b7 ata raid0* (two disks): 26131 K/sec >>>> FreeBSD 5.3b7 geom stripe* (two disks): 30063 K/sec >>>> FreeBSD 5.3b7 geom stripe** (four disks): 31891 K/sec >>>> OpenBSD 3.5 UFS fs: 55277 K/sec >>>> >>>> * Each disk of the raid had a throughput of approx. 15000 K/sec >>>> ** Each disk of the raid had a throughput of approx. 7500 K/sec >>>> Each disk of the read split the throughput by half. >>>> >>>> How is possible that FreeBSD performs as bad? >>>> >>>> >>> If you're still using the GENERIC kernel, that could explain it, and >>> judging >>> from other emails I've seen from you, you're still using the GENERIC >>> kernel. >> >> >> Right, and you should also use -U (softupdates) on you newfs line. > > > > > FreeBSD 5.3b7 with default fs(+softupdates): 26615 K/sec > http://195.55.55.164/tests/fbsd+softupdates.txt > > > > I was running FreeBSD-4.x for two years with this problem, waiting > for FreeBSD-5 because ATAng looks very promising. > > Unfortunately the performance problem persist :-( and I'd like to > call the attention about performance over raw devices, whilst it's > a very scientific test it's very curious: > > # dd if=/dev/ad4 of=/dev/null bs=1024k count=1024 > 1024+0 records in > 1024+0 records out > 1073741824 bytes transferred in 31.090536 secs (34535970 bytes/sec) > > over 34000 K/sec, using raw devices (for sequential access obviously) > not softupdates, filesystems or caches are involved, and with all this > FreeBSD performace is very deficient. Tests with OpenBSD and Linux > using raw devices shows a throughput of approx 60000 K/sec. > The question here is why using low-level access to disks is so bad? > > Perphas I'm missing something but this seems very weird to me. > > I'd like to know wich is you opinion about this. > > Thank you. After you run your test, can you send the output of 'sysctl hw.busdma'? Thanks, Scott