Date: Sat, 1 Dec 2018 20:41:36 -0700 From: Warner Losh <imp@bsdimp.com> To: RW <rwmaillists@googlemail.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: How to use trim command ?,Re: How to use trim command ? Message-ID: <CANCZdfq8Gxe_QSE2gKpnv4iY-RQere1FH_rw=SrE%2ByDjy3CrWQ@mail.gmail.com> In-Reply-To: <20181201222424.0ae8abfd@gumby.homeunix.com> 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> <CANCZdfqsVo_mk4TqJy8pmp%2BDQvDSg-cgwxM03%2BxgT5_Y%2BVKvnA@mail.gmail.com> <12404.1543699424@critter.freebsd.dk> <20181201222424.0ae8abfd@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 1, 2018, 3:27 PM RW via freebsd-hackers < freebsd-hackers@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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq8Gxe_QSE2gKpnv4iY-RQere1FH_rw=SrE%2ByDjy3CrWQ>