Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Do I need to enable TRIM?

  1. #1
    drhedberg NNTP User

    Default Do I need to enable TRIM?

    Fresh install of Tumbleweed KDE on an intel 660p 1TB ssd. Is it necessary to enable trim on openSUSE? I have always done this on my other disto installs with:

    Code:
    sudo systemctl enable fstrim.timer
    I'd like to maximize the lifespan of my ssd. Thanks

  2. #2
    Join Date
    Apr 2016
    Location
    North America
    Posts
    524

    Default Re: Do I need to enable TRIM?

    Check with

    Code:
    systemctl status fstrim.timer
    Personally, I disable it and just run the command (fstrim -Av) once a week.

    https://en.opensuse.org/SDB:Disable_btrfsmaintenance

  3. #3
    drhedberg NNTP User

    Default Re: Do I need to enable TRIM?

    Quote Originally Posted by ravas View Post
    Check with

    Code:
    systemctl status fstrim.timer
    Personally, I disable it and just run the command (fstrim -Av) once a week.

    https://en.opensuse.org/SDBisable_btrfsmaintenance
    Code:
    systemctl status fstrim.timer
    ● fstrim.timer - Discard unused blocks once a week
       Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
       Active: active (waiting) since Sun 2019-09-01 13:18:34 EDT; 1h 13min ago
      Trigger: Mon 2019-09-02 00:00:00 EDT; 9h left
         Docs: man:fstrim
    Does the above indicate that it is enabled on my system? Thanks

  4. #4
    Join Date
    Apr 2016
    Location
    North America
    Posts
    524

    Default Re: Do I need to enable TRIM?

    Yep. Here's mine:
    Code:
    ● fstrim.timer - Discard unused blocks once a week
       Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; disabled; vendor preset: enabled)
       Active: inactive (dead)
      Trigger: n/a
         Docs: man:fstrim

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,768
    Blog Entries
    14

    Default Re: Do I need to enable TRIM?

    I've been on SSD's for as long as they're there. And never did any of the things from 'the internet' thanks to Greg KH's "kernel and systemd should take care of this". Many people hack on their systems resulting in manually created maintenance where automated was already present. To add: none of the SSD's died from wearing. In fact, apart from 2 that had a broken controller all of them are still alive.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,654
    Blog Entries
    15

    Default Re: Do I need to enable TRIM?

    Quote Originally Posted by Knurpht View Post
    I've been on SSD's for as long as they're there. And never did any of the things from 'the internet' thanks to Greg KH's "kernel and systemd should take care of this". Many people hack on their systems resulting in manually created maintenance where automated was already present. To add: none of the SSD's died from wearing. In fact, apart from 2 that had a broken controller all of them are still alive.
    Hi
    Likewise, the only thing I do is switch i/o scheduler to the bfq group (mq-deadline for SSD's) by adding scsi_mod.use_blk_mq=1 to grub kernel boot options.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    drhedberg NNTP User

    Thumbs up Re: Do I need to enable TRIM?

    Quote Originally Posted by ravas View Post
    Yep. Here's mine:
    Code:
    ● fstrim.timer - Discard unused blocks once a week
       Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; disabled; vendor preset: enabled)
       Active: inactive (dead)
      Trigger: n/a
         Docs: man:fstrim
    Thanks! Very helpful. openSUSE continues to impress with it's default settings.

  8. #8
    drhedberg NNTP User

    Default Re: Do I need to enable TRIM?

    Quote Originally Posted by Knurpht View Post
    I've been on SSD's for as long as they're there. And never did any of the things from 'the internet' thanks to Greg KH's "kernel and systemd should take care of this". Many people hack on their systems resulting in manually created maintenance where automated was already present. To add: none of the SSD's died from wearing. In fact, apart from 2 that had a broken controller all of them are still alive.
    Appreciate the insight. I'm realizing that I don't have to do anything to my system as a new openSUSE user. Very efficient.

  9. #9
    drhedberg NNTP User

    Default Re: Do I need to enable TRIM?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Likewise, the only thing I do is switch i/o scheduler to the bfq group (mq-deadline for SSD's) by adding scsi_mod.use_blk_mq=1 to grub kernel boot options.
    Always learn something new from you Malcolm!

  10. #10
    Join Date
    Apr 2016
    Location
    North America
    Posts
    524

    Default Re: Do I need to enable TRIM?

    Quote Originally Posted by Knurpht View Post
    Many people hack on their systems resulting in manually created maintenance where automated was already present.
    I'm one of those. I'd much rather start a data drive maintenance process when I know I'm not going to be using that drive, and I don't intend on shutting down my computer. The automated approach interfered with my boot and shutdown on multiple occasions. The extra effort involved with the manual approach is insignificant.

Page 1 of 4 123 ... LastLast

Posting Permissions

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