ssd https://www.gremwell.com/ en Ubuntu 11 on Kingston SV100S2/256G SSD https://www.gremwell.com/node/396 <span>Ubuntu 11 on Kingston SV100S2/256G SSD</span> <div><p>Here are some notes about my attempt to install Ubuntu 11 on Kingston SV100S2/256G SSD (on Dell Latitude E6510 laptop). Just in case somebody else finds it useful.</p> <p>I have Googled around for information about SSD disk optimization for Linux and found that there are two main things to consider: partition alignment and filesystem options.</p> <p>It appears to be important to (try to) align disk writes by the boundaries of SDD erase block size. This [1] article talks about LVM volumes alignment.</p> <p>Most tutorials out there seems to blindly assume SSD erase block size is 128KB, unclear on what ground. This post [3] suggest the kind of disk I have features 1MB erase block size. I decided to take use this value.</p> <p>Finally, I have ended up with the following partition layout, with alignment by 1MB:<br /><code><br /> $ sudo fdisk -S 64 -H 32 /dev/sdb<br /> ...<br /> Command (m for help): p</code></p> <p>Disk /dev/sdb: 256.1 GB, 256060514304 bytes<br /> 32 heads, 63 sectors/track, 248074 cylinders<br /> Units = cylinders of 2016 * 512 = 1032192 bytes<br /> Sector size (logical/physical): 512 bytes / 512 bytes<br /> I/O size (minimum/optimal): 512 bytes / 512 bytes<br /> Disk identifier: 0xfeb3c9c1</p> <p> Device Boot Start End Blocks Id System<br /> /dev/sdb1 1 103 103792+ 83 Linux<br /> /dev/sdb2 104 248074 249954768 8e Linux LVM<br /></p> <p>Creating LVM physical volume, with its meta-data size set to align start offset of its extents to with 1MB boundary.<br /><code><br /> $ sudo pvcreate --metadatasize 994k /dev/sdb2<br /> Physical volume "/dev/sdb2" successfully created<br /> $ sudo pvs /dev/sdb2 -o+pe_start<br /> PV VG Fmt Attr PSize PFree 1st PE<br /> /dev/sdb2 lvm2 -- 238.38g 238.38g 1.00m<br /></code></p> <p>Create physical volume group and logical volume.<br /><code><br /> $ sudo vgcreate e6510-ssd1 /dev/sdb2<br /> Volume group "e6510-ssd1" successfully created<br /> $ sudo lvcreate --size 32G --name root e6510-ssd1<br /> Logical volume "root" created<br /></code></p> <p>Finally, create a file system, with stripe width set to 1MB (256 x 4K blocks). "Resize" parameter limits the maximum size your filesystem can grow live, it is optional parameter, just saves a few megabytes.<br /><code><br /> $ sudo mke2fs -t ext4 -E stripe-width=256,resize=250G /dev/e6510-ssd1/root<br /></code></p> <p>To make use the instructions above, you will need to use alternative installer CD which lets you interfere with partitioning/filesystem creation process.</p> <p>References:<br /> [1] <a href="http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/">http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-…</a> (also available at <a href="http://web.archive.org/web/20101130200444/http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/">http://web.archive.org/web/20101130200444/http://thunk.org/tytso/blog/2…</a>)<br /> [2] <a href="http://williamscott.me/blog/2010/12/ssd-tweaks-linux-align-partitions/">http://williamscott.me/blog/2010/12/ssd-tweaks-linux-align-partitions/</a><br /> [3] <a href="http://forum.notebookreview.com/notebook-news-reviews/395398-kingston-ssdnow-v-series-notebook-upgrade-kit-review-6.html">http://forum.notebookreview.com/notebook-news-reviews/395398-kingston-s…</a></p> </div> <span><span lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="">abb</span></span> <span>Sat, 10/08/2011 - 13:40</span> Sat, 08 Oct 2011 11:40:17 +0000 abb 396 at https://www.gremwell.com