From owner-freebsd-questions@FreeBSD.ORG Thu Oct 14 17:26:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C344316A4CE for ; Thu, 14 Oct 2004 17:26:14 +0000 (GMT) Received: from tierra2.ng.fadesa.es (tierra2.ng.fadesa.es [195.55.55.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id A432A43D31 for ; Thu, 14 Oct 2004 17:26:13 +0000 (GMT) (envelope-from fandino@ng.fadesa.es) Received: from [195.55.55.163] ([195.55.55.163]) (authenticated bits=0) by tierra2.ng.fadesa.es (8.12.10/8.12.10) with ESMTP id i9EHQ9i3008960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 14 Oct 2004 19:26:12 +0200 Message-ID: <416EB6B1.6060405@ng.fadesa.es> Date: Thu, 14 Oct 2004 19:26:09 +0200 From: fandino User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: gl, en, es MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: user fandino from 195.55.55.163 X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on tierra2 X-Virus-Status: Clean Subject: FreeBSD and poor ata performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fandino@ng.fadesa.es List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 17:26:14 -0000 Hello list, This is an interesting issue. While I was installing FreeBSD 5.3BETA7 I wonder about the performance that the new branch will bring to my computer, and it was a deception how bad FreeBSD performs compared with Linux on the same hardware (even I repeat the test on different PC with identical results). A simple test is create one gibabyte file and later read this file again. To conduct an impartial test the disk (in UDMA5 mode), was formated in both operating systems with the native filesystem just to be sure that the physical position of the file will be the same in both tests. for linux it took about 23 seconds write the file and 18 read it. # time dd if=/dev/zero of=aa bs=1024k count=1024 1024+0 records in 1024+0 records out real 0m23.408s user 0m0.000s sys 0m4.470s # time dd if=aa of=/dev/null bs=1024k 1024+0 records in 1024+0 records out real 0m18.311s user 0m0.000s sys 0m5.850s and for FreeBSD it took 40 seconds write the file and 42 read it: # dd if=/dev/zero of=aa bs=1024k count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 40.143630 secs (26747502 bytes/sec) # dd if=aa of=/dev/null bs=1024k 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 42.711242 secs (25139560 bytes/sec) so as you can see linux was two times faster that FreeBSD :-? I would like to know if anyone knows if this is normal or is a bug? thank you. dmesg: http://lists.freebsd.org/pipermail/freebsd-geom/2004-October/000350.html