From owner-freebsd-stable@FreeBSD.ORG Sun Jul 25 03:59:01 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE2B7106564A for ; Sun, 25 Jul 2010 03:59:01 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id 969F38FC17 for ; Sun, 25 Jul 2010 03:59:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id DD7BD5093D for ; Sun, 25 Jul 2010 04:59:00 +0100 (BST) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FGdc3hN5KG3D for ; Sun, 25 Jul 2010 04:58:59 +0100 (BST) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id 8E35C5089E for ; Sun, 25 Jul 2010 04:58:59 +0100 (BST) Message-ID: <4C4BB672.3090109@langille.org> Date: Sat, 24 Jul 2010 23:58:42 -0400 From: Dan Langille Organization: The FreeBSD Diary User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: freebsd-stable References: <4C4BA50B.6050507@langille.org> In-Reply-To: <4C4BA50B.6050507@langille.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gpart -b 34 versus gpart -b 1024 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2010 03:59:02 -0000 On 7/24/2010 10:44 PM, Dan Langille wrote: > You may have seen my cunning plan: > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=883310+0+current/freebsd-stable > > > I've been doing some testing today. The first of my tests comparing > partitions aligned on a 4KB boundary are in. I created a 5x2TB zpool, > each of which was set up like this: > > gpart add -b 1024 -s 3906824301 -t freebsd-zfs -l disk01 ada1 > or > gpart add -b 34 -s 3906824301 -t freebsd-zfs -l disk01 ada1 > > Repeat for all 5 HDD. And then: > > zpool create storage raidz2 gpt/disk01 gpt/disk02 gpt/disk03 gpt/disk04 > gpt/disk05 > > Two Bonnie-64 tests: > > First, with -b 34: > > # ~dan/bonnie-64-read-only/Bonnie -s 5000 > File './Bonnie.12315', size: 5242880000 > Writing with putc()...done > Rewriting...done > Writing intelligently...done > Reading with getc()...done > Reading intelligently...done > Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... > -------Sequential Output-------- ---Sequential Input-- --Random-- > -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- > GB M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU > 5 110.6 80.5 115.3 15.1 60.9 8.5 68.8 46.2 326.7 15.3 469 1.4 > > > > > And then with -b 1024 > > # ~dan/bonnie-64-read-only/Bonnie -s 5000 > File './Bonnie.21095', size: 5242880000 > Writing with putc()...done > Rewriting...^[[1~done > Writing intelligently...done > Reading with getc()...done > Reading intelligently...done > Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... > -------Sequential Output-------- ---Sequential Input-- --Random-- > -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- > GB M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU > 5 130.9 94.2 118.3 15.6 61.1 8.5 70.1 46.8 241.2 12.7 473 1.4 > > > My reading of this: All M/sec rates are faster except sequential input. > Comments? > > I'll run -s 20000 and -s 50000 tests overnight and will post them in the > morning. Well, it seems I'm not sleeping yet, so: -b 34 -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- GB M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU 50 113.1 82.4 114.6 15.2 63.4 8.9 72.7 48.2 142.2 9.5 126 0.7 -b 1024 -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- GB M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU 50 110.5 81.0 112.8 15.0 62.8 9.0 72.9 48.5 139.7 9.5 144 0.9 Here, the results aren't much better either... am I not aligning this partition correctly? Missing something else? Or... are they both 4K block aligned? -- Dan Langille - http://langille.org/