Date: Sat, 1 Dec 2018 13:55:43 -0700 From: Warner Losh <imp@bsdimp.com> To: ish@amail.plala.or.jp Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: How to use trim command ?,Re: How to use trim command ? Message-ID: <CANCZdfqsVo_mk4TqJy8pmp%2BDQvDSg-cgwxM03%2BxgT5_Y%2BVKvnA@mail.gmail.com> In-Reply-To: <20181201.202332.546134930481017424.ish@amail.plala.or.jp> References: <7e69211c-6ffb-6155-b17a-a845c0b3586d@grosbein.net> <20181201.093153.893601099798031027.ish@amail.plala.or.jp> <1c7139bd-258c-e7d2-2572-052da3803b3b@freebsd.org> <20181201.202332.546134930481017424.ish@amail.plala.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 1, 2018 at 4:41 AM Masachika ISHIZUKA <ish@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqsVo_mk4TqJy8pmp%2BDQvDSg-cgwxM03%2BxgT5_Y%2BVKvnA>