Results 1 to 5 of 5

Thread: Custom partition layout for SSD?

  1. #1
    Join Date
    Jul 2008
    Location
    Stafford
    Beans
    254
    Distro
    Kubuntu 12.04 Precise Pangolin

    Custom partition layout for SSD?

    I will be replacing my hard drive in my laptop with a 60GB SSD. Swap usually isn't recommended on a SSD and I've read that you should use a ext2 partition of 256mb for /boot.

    I am considering using a custom compiled Linux 3.4 Kernel which has good changes for btrfs, but reading around it is recommend to still use ext4 for the / partition.

    Is there any partition recommendation on getting maximum performance out of a SSD?

    Thanks!

  2. #2
    Join Date
    Nov 2007
    Beans
    297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Custom partition layout for SSD?

    Quote Originally Posted by ojdon View Post
    Is there any partition recommendation on getting maximum performance out of a SSD?
    Is performance defined in terms of speed, longevity, or data safety?

  3. #3
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Custom partition layout for SSD?

    You do not need separate /boot. You may want to consider use gpt partitioning as that is recommended by Arch.
    https://wiki.archlinux.org/index.php/Solid_State_Drives
    https://wiki.archlinux.org/index.php/GPT
    GPT Advantages srs5694:
    http://ubuntuforums.org/showthread.php?t=1457901
    GPT or MBR
    http://ubuntuforums.org/showthread.php?t=1625285

    New partition tools set partition start points correctly. Just be sure to use newer gparted not an old copy.

    First, understand that most partitioning tools have moved to a policy of aligning partitions on 1 MiB (2048-sector) boundaries as a way of improving performance with some types of arrays and some types of new hard disks (those with 4096-byte physical sectors). See article by srs5694:
    http://www.ibm.com/developerworks/li...-sector-disks/
    Post on 8-sector boundaries alignment by srs5694
    http://ubuntuforums.org/showthread.php?t=1685666
    it's 8-sector (4096-byte) alignment - post 8
    http://ubuntuforums.org/showthread.php?t=1768635

    Since partitions will be small you can use ext4, but turn off journal. Supposedly some advantages to ext4 with journal off over ext2.
    You still need discard for trim and noatime to reduce writes as settings in fstab.
    Make sure BIOS is in AHCI mode.
    change to noop i/o scheduler

    Do SSD need customization?
    http://ubuntuforums.org/showthread.php?t=1981478
    Last edited by oldfred; August 3rd, 2012 at 05:09 AM.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  4. #4
    Join Date
    Jan 2007
    Beans
    6,542
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Custom partition layout for SSD?

    Quote Originally Posted by ojdon View Post
    I've read that you should use a ext2 partition of 256mb for /boot.
    That's a bit of a strange recommendation. Where did you read that? Normally the only reason to have a separate /boot is if you're doing something weird with your partitioning or filesystems, simply using an SSD isn't a reason.

    Is there any partition recommendation on getting maximum performance out of a SSD?
    Nope. The partitioning tools should handle alignment these days. There are some options for optimisation, but they don't relate specifically to partitioning. Things you could do:
    1. Edit your /etc/fstab so that your parttiions mount with the option discard
    2. Also have them mount with the option noatime instead of the default relatime
    3. Move /tmp and possibly others such as browser cache and /var/logs into ramdisks
    4. Use a swapfile instead of a swap partition or mount swap on a magnetic drive

    Personally I do 1, 3 and 4, but don't bother with 2. Some people also recommend using a non-journaling filesystem, but I think that's giving up too much for a negligible benefit on modern SSDs.

  5. #5
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,505
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Custom partition layout for SSD?

    Quote Originally Posted by Paqman View Post
    1. ....
    2. ....
    3. ....
    4. Use a swapfile instead of a swap partition or mount swap on a magnetic drive

    Personally I do 1, 3 and 4, but don't bother with 2. Some people also recommend using a non-journaling filesystem, but I think that's giving up too much for a negligible benefit on modern SSDs.
    There is no point whatsoever in using a swap file instead of a swap partition on a SSD because the Linux kernel automatically uses Discard on Swap partitions.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •