Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 07:42:18 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        'User Wojtek' <wojtek@wojtek.tensor.gdynia.pl>, rozhuk.im@gmail.com, freebsd-hackers@freebsd.org
Subject:   Re: proper newfs options for SSD disk
Message-ID:  <alpine.BSF.2.00.1205220731070.51493@wonkity.com>
In-Reply-To: <20120522061734.GA1210@tiny>
References:  <alpine.BSF.2.00.1205182209010.9350@wojtek.tensor.gdynia.pl> <4fb7dfd6.736a980a.186d.ffff902f@mx.google.com> <20120519180901.GA1264@tiny> <4fb7e819.6968700a.7a7f.ffff9153@mx.google.com> <20120522061734.GA1210@tiny>

index | next in thread | previous in thread | raw e-mail

On Tue, 22 May 2012, Matthias Apitz wrote:

> El día Sunday, May 20, 2012 a las 03:36:01AM +0900, rozhuk.im@gmail.com escribió:
>>
>> Do not use MBR (or manually do all to align).
>> 63 - not 4k aligned.
>
> To create the above shown partition layout I have not used gpart(8); I
> just said:
>
>    # fdisk -I /dev/ada0
>    # fdisk -B /dev/ada0
>
>    # bsdlabel -w ada0s1 auto
>    # bsdlabel -B ada0s1
>
>    changed partition "a" from "unused" to "4.2BSD" as partition type:
>
>    # setenv EDITOR /usr/bin/vi
>    # bsdlabel -e ada0s1
>
>    created the future root-filesystem on it
>
>    # newfs -m 0 -o space /dev/ada0s1a
>
> The 2nd SSD was formated like this:
>
>    # dd if=/dev/zero of=/dev/ada1 count=2
>    # fdisk -I /dev/ada1
>    # newfs -m 0 -o space /dev/ada1s1a
>    # echo "/dev/ada1s1a  /usr/local  ufs  rw,noatime  1  1" >> /etc/fstab
>    # mount /usr/local
>
> What is wrong with this procedure?

The filesystem partitions end up at locations that aren't even multiples 
of 4K.  This can reduce performance.  How much probably depends on the 
SSD.
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1205220731070.51493>