Skip site navigation (1)Skip section navigation (2)
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>

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

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

--000000000000a68690060c002fa2
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 Fri, Dec 8, 2023, 4:03 AM Olivier Certner &lt;<a hr=
ef=3D"mailto:olivier.freebsd@free.fr">olivier.freebsd@free.fr</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
der-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Did you consider trying &#39;fsck_ffs -B -E&#39; on a toy system?=C2=A0 Fro=
m a glance at the code, these flags are not exclusive and should do what yo=
u expect.<br></blockquote></div></div><div dir=3D"auto"><br></div><div dir=
=3D"auto"><br></div><div dir=3D"auto">I wouldn&#39;t expect that to work...=
</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quo=
te"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t: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=3D"auto"><br></div><div dir=3D"auto">I&#39;=
d go the other way. I&#39;d turn trim on for UFS and monitor the system und=
er load. Newer drives I&#39;ve evaluated have much better pathological beha=
vior than the drives of a few years ago... there&#39;s a lot of left over f=
ud about how it&#39;s always terrible...</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"><blockquote class=3D"gmail_quote" style=3D"margi=
n: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>

--000000000000a68690060c002fa2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfro4MpuCqi1xwi3RJUqUg7g4H%2BBGabN0MCjq7nD%2BZf-9g>