From owner-freebsd-questions@FreeBSD.ORG Fri Oct 15 16:02:03 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 A141A16A4CE for ; Fri, 15 Oct 2004 16:02:03 +0000 (GMT) Received: from tierra2.ng.fadesa.es (tierra2.ng.fadesa.es [195.55.55.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7795943D2F for ; Fri, 15 Oct 2004 16:02:02 +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 i9FG1xi3013322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 15 Oct 2004 18:02:00 +0200 Message-ID: <416FF477.4010408@ng.fadesa.es> Date: Fri, 15 Oct 2004 18:01:59 +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 References: <416EB6B1.6060405@ng.fadesa.es> <416F849F.8020508@solid-state-logic.com> <416F90E6.10108@ng.fadesa.es> <200410151223.33355.howells@kde.org> In-Reply-To: <200410151223.33355.howells@kde.org> Content-Type: text/plain; charset=us-ascii; 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: Re: 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: Fri, 15 Oct 2004 16:02:03 -0000 Chris Howells wrote: > On Friday 15 October 2004 09:57, fandino wrote: > >>I'm out of ideas, It doesn't matter if I use other PC or hard disks, >>performance >>sucks compared to Linux :-( > > > OK, so you came to conclusion that "performance sucks" based on the the > theoretical throughput figures using dd and /dev/zero? > > Why don't you try measuring real world performace, with real files, not > somethig which is more than likely completely meaningless when two operating > systems cache file system operations in different ways. well, my usage pattern is write a big file and few seconds later read it. So my tests were valid for the use of the computer. But you have reason, I must provide a more formal report. I redid all test with bonnie++ and results shows Linux (56848 K/sec) two times faster than FreeBSD (26347 K/sec) Any help will be appreciated! Linux test (slackware 8.1, kernel 2.4.18, ext2 filesystem): root@darkstar:/mnt# bonnie++ -s 2048 -u root Using uid:0, gid:0. Writing a byte at a time...done Writing intelligently...done Rewriting...done Reading a byte at a time...done Reading intelligently...done start 'em...done...done...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.93c ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP darkstar 2G 951 97 35108 14 21964 11 1321 99 56848 16 166.4 1 Latency 10024us 2203ms 896ms 16845us 9552us 4118ms Version 1.93c ------Sequential Create------ --------Random Create-------- darkstar -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 2413 98 +++++ +++ +++++ +++ 2437 98 +++++ +++ 3822 90 Latency 9366us 37us 67us 18604us 23us 862us FreeBSD 5.3b7 (default filesystem): # bonnie++ -s 2048 -u root Using uid:0, gid:0. Writing a byte at a time...done Writing intelligently...done Rewriting...done Reading a byte at a time...done Reading intelligently...done start 'em...done...done...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.93c ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP 2G 194 99 22506 12 10636 7 473 99 26347 11 132.8 7 Latency 59164us 253ms 538ms 37925us 48156us 4554ms Version 1.93c ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 762 6 +++++ +++ 1449 8 760 5 +++++ +++ 1417 9 Latency 28352us 226us 22030us 30386us 139us 995us