From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 20:20:17 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B296ED1 for ; Wed, 26 Mar 2014 20:20:17 +0000 (UTC) Received: from mp1-smtp-2.eutelia.it (mp1-smtp-2.eutelia.it [62.94.10.162]) by mx1.freebsd.org (Postfix) with ESMTP id F40FD6EB for ; Wed, 26 Mar 2014 20:20:16 +0000 (UTC) Received: from ns2.biolchim.it (ip-188-188.sn2.eutelia.it [83.211.188.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mp1-smtp-2.eutelia.it (Eutelia) with ESMTP id 09F76E0F8B for ; Wed, 26 Mar 2014 21:20:08 +0100 (CET) Received: from soth.ventu (adsl-ull-140-156.41-151.net24.it [151.41.156.140]) (authenticated bits=0) by ns2.biolchim.it (8.14.8/8.14.8) with ESMTP id s2QKK0U2022463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 26 Mar 2014 21:20:05 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: ns2.biolchim.it: Host adsl-ull-140-156.41-151.net24.it [151.41.156.140] claimed to be soth.ventu Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.8/8.14.7) with ESMTP id s2QKJrll008108 for ; Wed, 26 Mar 2014 21:19:54 +0100 (CET) (envelope-from ml@netfence.it) Message-ID: <53333669.7000802@netfence.it> Date: Wed, 26 Mar 2014 21:19:53 +0100 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Partition alignment Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ns2.biolchim.it [192.168.2.203]); Wed, 26 Mar 2014 21:20:05 +0100 (CET) X-Scanned-By: MIMEDefang 2.74 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 20:20:17 -0000 Hello. I'm looking for confirmation that the following partition alignement will *not* result in performance penalties: > root@:~ # mfiutil show volumes > mfi0 Volumes: > Id Size Level Stripe State Cache Name > mfid0 ( 835G) RAID-5 256k OPTIMAL Enabled > root@:~ # fdisk /dev/mfid0 > ******* Working on device /dev/mfid0 ******* > parameters extracted from in-core disklabel are: > cylinders=109053 heads=255 sectors/track=63 (16065 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=109053 heads=255 sectors/track=63 (16065 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 1751936382 (855437 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > root@:~ # bsdlabel /dev/mfid0s1 > # /dev/mfid0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 33554432 1224736768 4.2BSD 0 0 0 > b: 33554432 16777216 swap > c: 1751936382 0 unused 0 0 # "raw" part, don't edit > d: 16777216 0 4.2BSD 0 0 0 > e: 67108864 50331648 4.2BSD 0 0 0 > f: 33554432 117440512 4.2BSD 0 0 0 > g: 536870912 150994944 4.2BSD 0 0 0 > h: 536870912 687865856 4.2BSD 0 0 0 Or, again: > root@:~ # gpart show /dev/mfid0 > => 63 1751949249 mfid0 MBR (835G) > 63 1751936382 1 freebsd [active] (835G) > 1751936445 12867 - free - (6.3M) > root@:~ # gpart show /dev/mfid0s1 > => 0 1751936382 mfid0s1 BSD (835G) > 0 16777216 4 freebsd-ufs (8.0G) > 16777216 33554432 2 freebsd-swap (16G) > 50331648 67108864 5 freebsd-ufs (32G) > 117440512 33554432 6 freebsd-ufs (16G) > 150994944 536870912 7 freebsd-ufs (256G) > 687865856 536870912 8 freebsd-ufs (256G) > 1224736768 33554432 1 freebsd-ufs (16G) > 1258291200 493645182 - free - (235G) AFAICT the partition are correctly aligned within the slice, but I'm not sure about the slice itself. Thanks to anyone who will help. bye av.