Results 1 to 2 of 2

Thread: Installed Ubuntu 12.04 64 bit on SSD - Trim Enabled?

  1. #1
    Join Date
    May 2011
    Beans
    30

    Installed Ubuntu 12.04 64 bit on SSD - Trim Enabled?

    Hi,
    Just installed a fresh 12.04 64bit version on my new SSD from a USB thumb drive. Took 5-7 minutes. It's fast. Wanted to ask about Trim. This is my first SSD and have seen mention of this Trim feature/command wonder if it's enabled by default/supported in Ubuntu?

    Any info/advice?

    Thanks

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

    Re: Installed Ubuntu 12.04 64 bit on SSD - Trim Enabled?

    You need to change some settings in fstab.

    You need to add noatime & discard like this:
    Typical fstab entry:
    UUID=d65e4ad3-6315-4838-97a1-ec574cb8575f / ext4 noatime,discard,errors=remount-ro 0 1

    I had not updated my fstab right away and did this:
    Alternate to discard, call fstrim via cron
    http://opensuse.14.n6.nabble.com/SSD...td3313048.html
    fred@fred-Precise:~$ sudo fstrim -v /
    /: 23267893248 bytes were trimmed

    You should have partitioned ok by default, the new standard is to start at 2048 and use 1K boundaries.

    Some of these links may be getting older, I have not recently reviewed them.

    BIOS settings (SSD but also most systems)
    http://www.ocztechnologyforum.com/fo...l=1#post567561

    How to Tweak Your SSD in Ubuntu for Better Performance
    http://www.howtogeek.com/62761/how-t...r-performance/
    See comment: There’s no reason to use BOTH noatime and nodiratime, using noatime implies nodiratime.
    http://techgage.com/print/enabling_a...rt_under_linux

    You normally want journal to speed up system recovery if you have to do repairs or run fsck. But if partition is small then it does not take long to fsck anyway and without journal writing is reduced.

    With SSD or Flash drives, Use ext2 or ext4 without journal:
    sudo tune2fs -O ^has_journal /dev/sda1

    No swap or set swapiness or install 'Dynamic Swap Space Manager' from the Ubuntu Software Center

    After installing, change the fstab so that everything gets mounted with noatime.
    change to noop i/o scheduler
    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.







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
  •