This might be very specific but I got tired of diving into fstab and sorting out my btrfs pool every distro hop so I made a script to take care of it. It’s based on bazzite’s file structure and Flatpak permissions.

  • Voytrekk@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 days ago

    If you were curious what the gaming optimized options were, here is the snippet from the script.

    TRUE noatime "Do not update access times (speeds up reads)" \
      TRUE ssd "Enable SSD optimizations" \
      TRUE space_cache=v2 "Improved space cache" \
      TRUE discard=async "Asynchronous TRIM" \
      FALSE compress=zstd:1 "Zstandard compression (space-saving, may slow access)"
    
    • Destide@feddit.ukOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      Yeah nothing ground breaking these just gave my pool the best benchmarks with fio

    • Static_Rocket@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Asynchronous trim is interesting to see in a performance optimized config. I remember it actually being slower at deleting files and causing more ware on SSDs that periodic trim.