Skip site navigation (1)Skip section navigation (2)
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>
References:  <ZXHTAIPnrEOq4iaV@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000003ebba060bec2b04
Content-Type: text/plain; charset="UTF-8"

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?
> --
>
>

--00000000000003ebba060bec2b04
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Thu, Dec 7, 2023, 7:13 AM void &lt;<a href=3D"mailt=
o:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class=3D"gma=
il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef=
t:1ex">Hello list,<br>
<br>
Is there a way or a port available to invoke trim for ufs formatted<br>
ssds while multiuser &amp; mounted?<br></blockquote></div></div><div dir=3D=
"auto"><br></div><div dir=3D"auto">You need to tunefs that on and it will h=
appen as you go. There is no way to batch this up to do it in the backgroun=
d. But there&#39;s no advantage to trimming a block multiple=C2=A0times... =
:).</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div dir=
=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">
I know zfs has this ability, with the zpool -t poolname command<br>
and it runs fine while multiuser. I can&#39;t find an equivalent for<br>
ufs though. Is there one?<br>
-- <br>
<br>
</blockquote></div></div></div>

--00000000000003ebba060bec2b04--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg>