Permanently Deleted

  • iod@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    the Arch wiki has some info. Not too sure but i think enabling the systemd timer is enough.

  • recursive_recursion [they/them]@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    3 years ago

    not sure about manual but on ArchLinux and NixOS, TRIM can be automatically handled with BTRFS options:discard=async:

    • Enables discarding of freed file blocks in large chunks before queuing for TRIM.

    not sure if this helps but I’ll be open sourcing my NixOS build and configuration.nix files in a bit(after school schedule stablizes)

  • WadamT@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    3 years ago

    Edited

    lsblk --discard to check support and non zero DISC returns mean TRIM supported. And then you need to add discard options to supported partitions in /etc/fstab. Then enable fstrim.timer with systemctl. And it will automatically run weekly. You can edit the run frequency by editing the fstrim.timer file.

    This is what I have done from reading Arch wiki. https://wiki.archlinux.org/title/Solid_state_drive#TRIM

  • MrMcGasion@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    3 years ago

    There are some differences between distros as to whether TRIM is enabled by default or not (I’ve read Ubuntu enables it by default, but Debian does not). That said, depending on what file-system your ssd is formatted with it may be enabled by default at that level. The most-often recommended file-systems for SSDs are Btrfs and F2FS, both of which support and enable TRIM by default (as of Linux 6.2 for Btrfs, so if you are running an older kernel version you might need to manually enable it). I think most distro installers support using Btrfs as the main file-system, but F2FS is a bit more hit and miss I think. Safest bet would be to investigate once you settle on a distro, but support should be pretty standard, even if it’s not enabled by default.

      • AProfessional@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        3 years ago

        This is a bit of misinformation. There is no evidence other filesystems have any downsides on an SSD. Use the default choice of your distribution. Roughly nobody uses F2FS on desktops. EXT4 is entirely reasonable and supports TRIM.

        • RogerWilco@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          3 years ago

          XFS supports trim too, and is arguably the highest performing filesystem for NVMEs in terms of multi-theaded use-cases. BTRFs is among the slowest filesystems for NVMEs both in IOPS and sequential metrics.

          • AProfessional@lemmy.world
            link
            fedilink
            English
            arrow-up
            3
            ·
            3 years ago

            Indeed. BTRFS is a different class of filesystem in terms of features too. Their merits are more than “SSD support”.