Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSD alignment for debian

8 views
Skip to first unread message

Daniel Dalton

unread,
Dec 22, 2012, 3:50:01 AM12/22/12
to
Hello,

I've installed debian with a separate /home partition on my samsung 830
series ssd drive.

I would like to verify partition alignment is correct though.

Could someone tell me how to verify this or let me know if it is
correct?

Here is output of fdisk -l on my ssd:
daniel@vostro-3350:/tmp$ sudo fdisk -l /dev/sda

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3f5f6184

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 31459327 15728640 83 Linux
/dev/sda2 31459328 44042239 6291456 82 Linux swap / Solaris
/dev/sda3 44042240 250069679 103013720 83 Linux

sda1 is / sda2 is swap and sda3 is /home.

Thanks in advance for any help.

Cheers,
Dan


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/2012122208...@gwsc.vic.edu.au

Stan Hoeppner

unread,
Dec 22, 2012, 4:50:02 AM12/22/12
to
On 12/22/2012 2:30 AM, Daniel Dalton wrote:

> I've installed debian with a separate /home partition on my samsung 830
> series ssd drive.
>
> I would like to verify partition alignment is correct though.

Regardless of what you've read on the interwebs, there is no such thing
as proper or improper partition alignment on solid state disks. The
physical sector size is 512B, not 4096. So you'll never see the RMW
penalty of AF drives with their 4096B sectors.

Some people try to align to the "erase block" size, but this isn't
possible unless you know this parameter for your drive. No manufacturer
publishes this information, and for good reason.

To add insult to injury, you're a laptop user. Thus you're never going
to put sufficient IO load on the drive to notice a difference between
standard 512B alignment and the theoretically perfect "erase block"
alignment.

So the short answer to your question is:

It's not possible to incorrectly partition an SSD.

--
Stan


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/50D5814...@hardwarefreak.com

Daniel Dalton

unread,
Dec 22, 2012, 6:50:01 AM12/22/12
to
On Sat, Dec 22, 2012 at 03:45:45AM -0600, Stan Hoeppner wrote:
> So the short answer to your question is:
>
> It's not possible to incorrectly partition an SSD.

Right ok, that's nice to hear.

Thanks,
Dan


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/2012122211...@gwsc.vic.edu.au

berenge...@neutralite.org

unread,
Dec 22, 2012, 9:20:02 AM12/22/12
to
Le 22.12.2012 15:10, Hugo Vanwoerkom a écrit :
> Daniel Dalton wrote:
>> Hello,
>> I've installed debian with a separate /home partition on my samsung
>> 830
>> series ssd drive.
>> I would like to verify partition alignment is correct though.
>> Could someone tell me how to verify this or let me know if it is
>> correct?
>>
>
> <skip>
>
> I have the same SSD. Surprise: doing a suspend to disk to that swap
> file you have on it makes no difference at all! Just as slow as to a
> regular HDD. Why?
>
> Hugo

AFAIK, speed difference between SSD and mechanical HD is mostly due to
the fact SSD have fast random access.
When you suspend on disk, you write huge amount of data in a single
location of the disk, so the need of mechanical moves become slightly
less problematic.
That's why on FAT, defragmentation is very important to fasten HD
access.

Of course, it depends on the controller's speed.

Another possibility would be that linux writes data in swap regularly,
so there are not so many things to write when you suspend/hibernate.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/5bbfaa69ef277573...@neutralite.org

Hugo Vanwoerkom

unread,
Dec 22, 2012, 9:20:02 AM12/22/12
to
Daniel Dalton wrote:
> Hello,
>
> I've installed debian with a separate /home partition on my samsung 830
> series ssd drive.
>
> I would like to verify partition alignment is correct though.
>
> Could someone tell me how to verify this or let me know if it is
> correct?
>

<skip>

I have the same SSD. Surprise: doing a suspend to disk to that swap file
you have on it makes no difference at all! Just as slow as to a regular
HDD. Why?

Hugo


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/kb4f0r$d3f$1...@ger.gmane.org

Daniel Dalton

unread,
Dec 25, 2012, 10:10:02 PM12/25/12
to
On Sat, Dec 22, 2012 at 08:10:42AM -0600, Hugo Vanwoerkom wrote:
> I have the same SSD. Surprise: doing a suspend to disk to that swap
> file you have on it makes no difference at all! Just as slow as to a
> regular HDD. Why?

suspend takes about 2 second to go into suspend and 2 second to wake
from suspend.

However, pm-hibernate does not work, but "hibernate" command does.

No idea why, I think it stopped working after I made my ssd optomisation
changes, but I couldn't track this down to anything.

Also could not find any useful logs.

Cheers,
Dan


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/2012122603...@gwsc.vic.edu.au
0 new messages