From owner-freebsd-performance@FreeBSD.ORG Mon May 2 21:58:16 2005 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D58BD16A4CE; Mon, 2 May 2005 21:58:16 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id E84A343D1F; Mon, 2 May 2005 21:58:15 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001376566.msg; Mon, 02 May 2005 22:53:32 +0100 Message-ID: <00fe01c54f61$df220d60$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Poul-Henning Kamp" References: <19879.1115061648@critter.freebsd.dk> Date: Mon, 2 May 2005 22:56:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Mon, 02 May 2005 22:53:32 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Mon, 02 May 2005 22:53:34 +0100 cc: Robert Watson cc: freebsd-performance@freebsd.org cc: Eric Anderson Subject: Re: Very low disk performance on 5.x X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 21:58:17 -0000 ----- Original Message ----- From: "Poul-Henning Kamp" > On -current and 5.4 you don't have to make partitions if you > intend to use the entire disk (and provided you don't want > to boot from it). You can simply: > > newfs /dev/da0 > mount /dev/da0 /where_ever /dev/da0: 1526216.3MB (3125691008 sectors) block size 16384, fragment size 2048 using 8306 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. mount /dev/da0 /mnt dd if=/dev/zero of=/mnt/testfile bs=64k count=100000 100000+0 records in 100000+0 records out 6553600000 bytes transferred in 44.424588 secs (147521908 bytes/sec) /usr/bin/time -h dd of=/dev/null if=/mnt/testfile bs=64k count=100000 100000+0 records in 100000+0 records out 6553600000 bytes transferred in 48.150473 secs (136106658 bytes/sec) 48.27s real 0.01s user 12.33s sys /usr/bin/time -h cat /mnt/testfile > /dev/null 48.12s real 0.26s user 14.92s sys Raw read: /usr/bin/time -h dd of=/dev/null if=/dev/da0 bs=64k count=100000 100000+0 records in 100000+0 records out 6553600000 bytes transferred in 32.028544 secs (204617482 bytes/sec) 32.02s real 0.02s user 2.73s sys /usr/bin/time -h dd of=/dev/null if=/dev/da0 bs=1m count=6000 6000+0 records in 6000+0 records out 6291456000 bytes transferred in 31.518195 secs (199613460 bytes/sec) 31.51s real 0.00s user 1.87s sys > One thing you could try is to use a larger block/fragment size > on your filesystem. Try: > > newfs -b 32768 -f 4096 /dev/da0 /dev/da0: 1526216.3MB (3125691008 sectors) block size 32768, fragment size 4096 using 2063 cylinder groups of 740.00MB, 23680 blks, 47360 inodes. /usr/bin/time -h dd if=/dev/zero of=/mnt/testfile bs=64k count=100000 100000+0 records in 100000+0 records out 6553600000 bytes transferred in 35.237328 secs (185984590 bytes/sec) 35.34s real 0.07s user 28.81s sys /usr/bin/time -h dd of=/dev/null if=/mnt/testfile bs=64k count=100000 100000+0 records in 100000+0 records out 6553600000 bytes transferred in 39.154845 secs (167376477 bytes/sec) 39.16s real 0.01s user 14.33s sys Slower than the default :( ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.