Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Ahci(4) needed for TRIM

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    42 Posts 12 Posters 30.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      The old regex worked fine when I tested it, e.g.

      $ cat test.txt 
      ad0
      da0
      ada0
      $ grep '^[ad][da]a*[0-9]\{1,2\}$' test.txt 
      ad0
      da0
      ada0
      $ ls /dev | grep '^[ad][da]a*[0-9]\{1,2\}$'
      ad4
      ad6
      ada0
      ada1
      da0
      

      The newer one is definitely better, but the old one wasn't broken on any system I tried it on.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • M
        markn62
        last edited by

        This thread got TRIM enabled on an AMD64.  Curious if "time" is the best optimization method or if it's even worth looking into.

        [2.1-RC1][admin@pfsense.router]/(2): tunefs -p /
        tunefs: POSIX.1e ACLs: (-a)                                disabled
        tunefs: NFSv4 ACLs: (-N)                                  disabled
        tunefs: MAC multilabel: (-l)                              disabled
        tunefs: soft updates: (-n)                                disabled
        tunefs: gjournal: (-J)                                    disabled
        tunefs: trim: (-t)                                        enabled
        tunefs: maximum blocks per file in a cylinder group: (-e)  2048
        tunefs: average file size: (-f)                            16384
        tunefs: average number of files in a directory: (-s)      64
        tunefs: minimum percentage of free space: (-m)            8%
        tunefs: optimization preference: (-o)                      time
        tunefs: volume label: (-L)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.