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

Warner Losh imp at bsdimp.com
Sun Dec 2 03:41:49 UTC 2018


On Sat, Dec 1, 2018, 3:27 PM RW via freebsd-hackers <
freebsd-hackers at freebsd.org wrote:

> On Sat, 01 Dec 2018 21:23:44 +0000
> Poul-Henning Kamp wrote:
>
>
> > Why would you run 'fsck_ffs -E' in cron anyway ?
> >
> > If the file-system is has TRIM enabled, it would be a no-op, unless
> > there are bugs in the fs ?
>
> There's a school of thought that trimming in real-time, after file
> deletion, slows down I/O on the device. Some people advocate
> turning-off trim support in the file-system and trimming all the
> unused space in one go from cron when the system is likely to be idle.
>

That's an interesting idea. One that would be hard to do on FreeBSD.


I don't know whether there's any truth in it. It sounds unlikely with
> modern drives.
>

I'm working on a better way to meter the TRIMs to the drive fast enough to
make progress, but slow enough to not affect other operations. I think the
locking will be simpler than trimd, and the feedback loop will keep trims
in budget.

There are still drives out there which need it. The low end is still...
under resourced...

Warner

_______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list