Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] new machine : (2) HDD or SSD ?
Date: Mon, 23 Jul 2012 14:55:48
Message-Id: CAEH5T2Njd-aT7-sfQTFQ-piS39X+qWD=35wohK6Vbn8yEK7GcA@mail.gmail.com
In Reply to: Re: [gentoo-user] new machine : (2) HDD or SSD ? by Florian Philipp
1 On Sun, Jul 22, 2012 at 1:46 PM, Florian Philipp <lists@×××××××××××.net> wrote:
2 > Am 22.07.2012 20:35, schrieb Michael Hampicke:
3 >> Am 22.07.2012 19:46, schrieb Florian Philipp:
4 >>> Am 22.07.2012 19:30, schrieb Pandu Poluan:
5 >>>>
6 >>>> On Jul 23, 2012 12:05 AM, "Michael Hampicke" <gentoo-user@××××.biz
7 >>>> <mailto:gentoo-user@××××.biz>> wrote:
8 >>>>>
9 >>>>>> I have just a (maybe silly) question...
10 >>>>>> I saw on some forums that partitionning SSDs could slow down read/write
11 >>>>>> access.
12 >>>>>> Is it true or simply intox ?
13 >>>>>> On my sata HD, i have boot, /, usr and home separated partitions.
14 >>>>>> What do you think of it ?
15 >>>>>
16 >>>>> This could happen of the partitions on the SSD are not properly aligned.
17 >>>>> The guides I know on this subject are german, but thats no problem, just
18 >>>>> do a google search for something like "linux ssd partition alignment".
19 >>>>> There you will find all the ansers you need.
20 >>>>>
21 >>>>> If I remember correctly parted has a built-in alignment check.
22 >>>>>
23 >>>>
24 >>>> Even the venerable fdisk now properly align partitions, IIRC.
25 >>>>
26 >>>> Rgds,
27 >>>>
28 >>>
29 >>> cfdisk is one of the few that don't.
30 >>>
31 >>
32 >> Right, cfdisk was the one, but I always likes it's console 'gui' as it
33 >> was so easy to use. But cgdisk (of sys-apps/gptfdisk) is a good
34 >> replacement for cfdisk.
35 >>
36 >
37 > Good to know. cfdisk was my favorite, too.
38
39 You can still use it, you just have to specify the start sector
40 yourself and don't accept the default. :)
41
42 4MB is almost always a safe starting point to use for SSD or other
43 flash-based storage. (Most fdisk tools default now to 1MB which should
44 be safe for all HDDs but not necessarily the best choice for flash
45 storage because of erase blocks etc.) Unfortunately the exact perfect
46 alignment depends on the specific device you're using so there is no
47 catch-all solution. There are tools like flashbench will will try to
48 reveal the optimal settings via destructive tests.