Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Ubuntu 14.04 Finally Enables SSD TRIM By Default

  1. #11
    Join Date
    Jan 2010
    Posts
    368

    Default

    Quote Originally Posted by jockinator View Post
    adding discard options to ext4 on SSD is not a good idea.
    when removing a lot of small files (make clean ?), it can freeze a computer for 5-10min.
    it's the case on my laptop (quad-core with 6G RAM), and a better method is to add fstrim to a crontab.
    If you had read the Google+ post, you would know that they actually do this. The are aware of the fact that kernel managed trim has issues.

  2. #12
    Join Date
    Sep 2008
    Location
    Toulouse France
    Posts
    17

    Default

    Quote Originally Posted by brent View Post
    If you had read the Google+ post, you would know that they actually do this. The are aware of the fact that kernel managed trim has issues.
    oh you're right, the source https://blueprints.launchpad.net/ubu...1-ssd-trimming said it is a cron job using fstrim, but the phoronix article is inaccurate :

    Supporting TRIM requires setting the discard mount option for using TRIM when deleting files as it's not enabled by default

    I observe freeze on my work PC, when I build a whole Android tree, and then delete the "out/" folder (~30GB, ), but that's a known issue. Most blog posts I've seen on TRIM on Linux, choose fstrim over discard mount option.

  3. #13
    Join Date
    Oct 2009
    Location
    Brisbane, Queensland, Australia
    Posts
    154

    Default

    Quote Originally Posted by jockinator View Post
    adding discard options to ext4 on SSD is not a good idea.
    when removing a lot of small files (make clean ?), it can freeze a computer for 5-10min.
    it's the case on my laptop (quad-core with 6G RAM), and a better method is to add fstrim to a crontab.
    If I understand things correctly, this problem was addressed in Serial ATA revision 3.1 (released in July 2011) with the introduction of the Queued Trim Command. Support for the Queued Trim Command was introduced in the 3.12 kernel - see https://lkml.org/lkml/2013/9/3/277

Posting Permissions

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