SSDで遊ぼう
せっていをめも
cf. http://wiki.centos.org/HowTos/Disk_Optimization
cf. http://www.nuclex.org/blog/personal/80-aligning-an-ssd-on-linux
kouhei@lion:~$ sudo fdisk -S32 -H 32 /dev/sdd Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-305255, default 1): 2 Last cylinder, +cylinders or +size{K,M,G} (2-305255, default 305255): Using default value 305255 Command (m for help): p Disk /dev/sdd: 160.0 GB, 160041885696 bytes 32 heads, 32 sectors/track, 305255 cylinders Units = cylinders of 1024 * 512 = 524288 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: **************** Device Boot Start End Blocks Id System /dev/sdd1 2 305255 156290048 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. kouhei@lion:~$ sudo mkfs.ext4 -b 4096 -E stride=32,stripe-width=32 /dev/sdd1 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=32 blocks, Stripe width=32 blocks 9773056 inodes, 39072512 blocks 1953625 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 1193 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 33 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.