Date: Fri, 8 Dec 2023 07:13:07 -0700 From: Warner Losh <imp@bsdimp.com> To: Olivier Certner <olivier.freebsd@free.fr> Cc: FreeBSD FS <freebsd-fs@freebsd.org> Subject: Re: periodic trim for ufs2 ssds Message-ID: <CANCZdfro4MpuCqi1xwi3RJUqUg7g4H%2BBGabN0MCjq7nD%2BZf-9g@mail.gmail.com> In-Reply-To: <2959153.slGk94SIus@ravel> References: <ZXHTAIPnrEOq4iaV@int21h> <2959153.slGk94SIus@ravel>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Fri, Dec 8, 2023, 4:03 AM Olivier Certner <olivier.freebsd@free.fr> wrote: > Hi, > > Did you consider trying 'fsck_ffs -B -E' on a toy system? From a glance > at the code, these flags are not exclusive and should do what you expect. > I wouldn't expect that to work... If that works, then you also have the option of not turning on trim on the > FS and instead periodically doing it at once, like you can do on ZFS. > I'd go the other way. I'd turn trim on for UFS and monitor the system under load. Newer drives I've evaluated have much better pathological behavior than the drives of a few years ago... there's a lot of left over fud about how it's always terrible... Warner Regards. > > -- > Olivier Certner > > > > [-- Attachment #2 --] <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 8, 2023, 4:03 AM Olivier Certner <<a href="mailto:olivier.freebsd@free.fr">olivier.freebsd@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> <br> Did you consider trying 'fsck_ffs -B -E' on a toy system? From a glance at the code, these flags are not exclusive and should do what you expect.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I wouldn't expect that to work...</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> If that works, then you also have the option of not turning on trim on the FS and instead periodically doing it at once, like you can do on ZFS.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'd go the other way. I'd turn trim on for UFS and monitor the system under load. Newer drives I've evaluated have much better pathological behavior than the drives of a few years ago... there's a lot of left over fud about how it's always terrible...</div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Regards.<br> <br> -- <br> Olivier Certner<br> <br> <br> <br> </blockquote></div></div></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfro4MpuCqi1xwi3RJUqUg7g4H%2BBGabN0MCjq7nD%2BZf-9g>
