From owner-freebsd-geom@FreeBSD.ORG Wed Sep 15 09:57:02 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 878451065673 for ; Wed, 15 Sep 2010 09:57:02 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3BCE8FC1B for ; Wed, 15 Sep 2010 09:57:01 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o8F9uiqi088068; Wed, 15 Sep 2010 11:56:59 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o8F9uiLh088066; Wed, 15 Sep 2010 11:56:44 +0200 (CEST) (envelope-from olli) Date: Wed, 15 Sep 2010 11:56:44 +0200 (CEST) Message-Id: <201009150956.o8F9uiLh088066@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, zeus@ibs.dn.ua In-Reply-To: <20100914180729.GC92933@relay.ibs.dn.ua> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Wed, 15 Sep 2010 11:56:59 +0200 (CEST) Cc: Subject: Re: storage configuration for Advanced Format X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@FreeBSD.ORG, zeus@ibs.dn.ua List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2010 09:57:02 -0000 Zeus V Panchenko wrote: > Bruce Cran (bruce@cran.org.uk) [10.09.14 18:35] wrote: > > On Tue, 14 Sep 2010 18:23:52 +0300 > > Zeus V Panchenko wrote: > > > > > 2. gpart add -b 2048 -s 1953521664 -t freebsd-ufs /dev/ad4 > > > > You can use suffixes to specify the size if you want - e.g. "-s 500G". > > Or, omit it altogether to use all available space. > > what i wanted to detalize is `-b 2048' option ... am i correct, > it causes the data ajustment to benefit 4k blocks peformance? It lets the partition start at 1 MB offset, which is of course aligned to 4k. 1 MB is also standard in Windows, I think, although I'm not sure why. I usually let the first partition start at 64K, because the fdisk(1) default is a "geometry" with 63 sectors per track, so I let the first partition start at sector 65 in the first slice (63 + 65 = 128 sectors = 64Kb). By using a fragment size of 4KB with the newfs command, you make sure that there will be no misaligned accesses. Regarding your mentioning of "performance": You are aware that the WD "green" drives are pretty slow, aren't you? If you need good performance, you can get much faster drives for just a few Dollars/Euros/whatever more. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "It combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript." -- Jamie Zawinski, when asked: "What's wrong with perl?"