1

I've installed 19.10 with ZFS on one of my laptops because I want to learn the file system and under the impression it's "the file system of the future" (let's not discuss that here). Since I'm new and storage on my laptop is a SSD I was wondering if there's any form of trim necessary or even possible with ZFS on Ubuntu 19.10?

3
  • 1
    Trim is not related to a filesystem you are using. It is enabled by default in Ubuntu.
    – Pilot6
    Dec 8, 2019 at 18:34
  • 1
    Does this answer your question? How to enable TRIM?
    – Pilot6
    Dec 8, 2019 at 18:35
  • Thanks. I was wondering after having read this: phoronix.com/… which seems to inficated that trim wasn't ready for ZFS in 2018.
    – Christian
    Dec 9, 2019 at 3:22

1 Answer 1

1

ZFS in Ubuntu 19.10 has support for trim, but I don't believe it's done by default by the periodic script/task scheduler (cron or systemd). You should either create one, or call zpool trim [pool-name], and I believe there is a property where you can set autotrim, but I haven't investigated that personally. See autotrim=on|off in the zpool(8) manpage.

1
  • There are two kinds of trim: periodic and auto. The first one is done no matter of FS.
    – Pilot6
    Dec 9, 2019 at 15:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .