Properly align partitions on SSD - How?
Posted: Sat Jun 12, 2010 3:03 pm
Hi. I'm planning to buy a Thinkpad T410s laptop with 128GB SSD drive - higher average r/w speeds, no noise, lower temperature, more silent compared to ordinary HDDs available in most laptops.
What got me pondering, though, is the knowledge that SSDs need to be properly taken care of and maintaned in order to reach best possible results.
It looks like SSD fragmentation can have dramatic impact on write speeds over a period of time:
http://www.pcper.com/article.php?aid=669
some solutions suggested in the article:
So, as you can see, only the first aligning issue is harder to deal with. That's where I need Your help. I've read this article:
http://ldn.linuxfoundation.org/blog-ent ... block-size
Which is quite an interesting read, but I do not fully know how to do it. I want to install Ubuntu 10.04.
The way I see it, it would be best to wipe the entire drive with HDDErase (as seen here: http://www.pcper.com/article.php?aid=66 ... pert&pid=6) so that I have no Windows 7 leftovers, and then boot from Ubuntu Live CD. Move into the text mode (Ctrl+Alt+F1, AFAIR) and execute these commands:
*) Would this be correct?
*) Why is the article's author using sdb instead of sda? Is this important?
*) What is the command to create a proper 1GB sda1 partition for /boot?
*) Will pvcreate and pvs work? and if they do and I log back into the GUI installer, what do I do next when I am taken into the partition chooser GUI?
Please read the whole article in order to fully understand what I am trying to do (I know about a bunch of "noatime" and similar fixes, but they are a completely different thing)
Thanks in advance!
PS.: Or maybe you know how to do it without LVM involved? Please share!
What got me pondering, though, is the knowledge that SSDs need to be properly taken care of and maintaned in order to reach best possible results.
It looks like SSD fragmentation can have dramatic impact on write speeds over a period of time:
http://www.pcper.com/article.php?aid=669
some solutions suggested in the article:
Code: Select all
Workaround #1: Change your usage pattern
Until Intel tweaks their write combining algorithms and revises their released firmware, there are ways to minimize your chances of falling into the fragmentation black hole. Here are some things to avoid:
* Disk partitions not properly aligned with flash block boundaries (to be covered in another article). //that's what I want to make sure I avoid!
* Heavy temporary file activity (think temporary internet files). // I can avoid that using ram as tmpfs (with 4GB of RAM)
* Heavy page / swap activity. //as above
* Applications that write random small chunks, even within a larger file (i.e. BitTorrent / Steam). // no plans to use such software
* Running *any* disk defragment utility (DON’T DO IT!). // not needed for Linux
http://ldn.linuxfoundation.org/blog-ent ... block-size
Which is quite an interesting read, but I do not fully know how to do it. I want to install Ubuntu 10.04.
The way I see it, it would be best to wipe the entire drive with HDDErase (as seen here: http://www.pcper.com/article.php?aid=66 ... pert&pid=6) so that I have no Windows 7 leftovers, and then boot from Ubuntu Live CD. Move into the text mode (Ctrl+Alt+F1, AFAIR) and execute these commands:
Code: Select all
# fdisk -H 224 -S 56 /dev/sdb
(now create a 1GB /boot partition as seen in the article, no idea how to do this)
# pvcreate –metadatasize 250k /dev/sda2
# pvs /dev/sda2 -o+pe_start
*) Would this be correct?
*) Why is the article's author using sdb instead of sda? Is this important?
*) What is the command to create a proper 1GB sda1 partition for /boot?
*) Will pvcreate and pvs work? and if they do and I log back into the GUI installer, what do I do next when I am taken into the partition chooser GUI?
Please read the whole article in order to fully understand what I am trying to do (I know about a bunch of "noatime" and similar fixes, but they are a completely different thing)
Thanks in advance!
PS.: Or maybe you know how to do it without LVM involved? Please share!