How to use trim command ?,Re: How to use trim command ?

Warner Losh imp at bsdimp.com
Sat Dec 1 20:55:55 UTC 2018


On Sat, Dec 1, 2018 at 4:41 AM Masachika ISHIZUKA <ish at amail.plala.or.jp>
wrote:

> >>   I misunderstood trim was equivalent to fstrim in linux.
> >>   I undotstood that the trim command is the SSD bulk erase tool.
> >
> > If you want to enable TRIM on a UFS filesystem, tunefs is the command
> > you are looking for.
>
>   Thank you for mail.
>
>   I'm using 'tunefs -t enable /dev/ada0pXX', that is equivalent
> to 'discard' in fstab on linux.
>
> > The equivalent to fstrim for UFS is fsck_ffs -E:
>
>   I think 'fsck_ffs -E' is not suitable for daily midnight cron
> job.
>

FreeBSD doesn't have an equivalent of a daemon that runs and trims blocks
after a while of being idle (trimd on linux I think).

Warner


More information about the freebsd-hackers mailing list