Date: Thu, 7 Dec 2023 07:20:10 -0700 From: Warner Losh <imp@bsdimp.com> To: FreeBSD FS <freebsd-fs@freebsd.org> Subject: Re: periodic trim for ufs2 ssds Message-ID: <CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg@mail.gmail.com> In-Reply-To: <ZXHTAIPnrEOq4iaV@int21h>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Thu, Dec 7, 2023, 7:13 AM void <void@f-m.fm> wrote: > Hello list, > > Is there a way or a port available to invoke trim for ufs formatted > ssds while multiuser & mounted? > You need to tunefs that on and it will happen as you go. There is no way to batch this up to do it in the background. But there's no advantage to trimming a block multiple times... :). Warner I know zfs has this ability, with the zpool -t poolname command > and it runs fine while multiuser. I can't find an equivalent for > ufs though. Is there one? > -- > > [-- Attachment #2 --] <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 7, 2023, 7:13 AM void <<a href="mailto:void@f-m.fm">void@f-m.fm</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br> <br> Is there a way or a port available to invoke trim for ufs formatted<br> ssds while multiuser & mounted?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You need to tunefs that on and it will happen as you go. There is no way to batch this up to do it in the background. But there's no advantage to trimming a block multiple times... :).</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"> I know zfs has this ability, with the zpool -t poolname command<br> and it runs fine while multiuser. I can't find an equivalent for<br> ufs though. Is there one?<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?CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg>
