Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2023 16:21:44 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        void <void@f-m.fm>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: periodic trim for ufs2 ssds
Message-ID:  <66097626.208187.1701962504337@localhost>
In-Reply-To: <ZXHZbxCAuVJtKVgo@int21h>
References:  <ZXHTAIPnrEOq4iaV@int21h> <CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg@mail.gmail.com> <ZXHZbxCAuVJtKVgo@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_208186_1038978366.1701962504334
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Van: void <void@f-m.fm>
Datum: donderdag, 7 december 2023 15:40
Aan: freebsd-fs@freebsd.org
Onderwerp: Re: periodic trim for ufs2 ssds
> 
> On Thu, Dec 07, 2023 at 07:20:10AM -0700, Warner Losh wrote:
> 
> >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... :).
> 
> ok, thanks.
> 
> (I should have mentioned 14-stable amd64 context)
> 
> I booted single-user then ran: fsck -y /dev/ada0s1a
> fsck_ffs -E /dev/ada0s1a
> tunefs -t /dev/ada0s1a
> fsck_ffs -E /dev/ada0s1a
> 
> then booted multiuser
> 
> will console/messages or some other log show when it runs?
> smartctl(8) makes no mention of trim.
> -- 
>  
> 
> 
> 


A tool like "gstat -d" will show columns for deletion which means trim.

Regards,
Ronald.
 
------=_Part_208186_1038978366.1701962504334
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body><br>
<p><strong>Van:</strong> void &lt;void@f-m.fm&gt;<br>
<strong>Datum:</strong> donderdag, 7 december 2023 15:40<br>
<strong>Aan:</strong> freebsd-fs@freebsd.org<br>
<strong>Onderwerp:</strong> Re: periodic trim for ufs2 ssds</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">On Thu, Dec 07, 2023 at 07:20:10AM -0700, Warner Losh wrote:<br>
<br>
&gt;You need to tunefs that on and it will happen as you go. There is no way to<br>
&gt;batch this up to do it in the background. But there's no advantage to<br>
&gt;trimming a block multiple times... :).<br>
<br>
ok, thanks.<br>
<br>
(I should have mentioned 14-stable amd64 context)<br>
<br>
I booted single-user then ran: fsck -y /dev/ada0s1a<br>
fsck_ffs -E /dev/ada0s1a<br>
tunefs -t /dev/ada0s1a<br>
fsck_ffs -E /dev/ada0s1a<br>
<br>
then booted multiuser<br>
<br>
will console/messages or some other log show when it runs?<br>
smartctl(8) makes no mention of trim.<br>
--&nbsp;<br>
&nbsp;</div>

<hr></div>
</blockquote>
<br>
<br>
A tool like "gstat -d" will show columns for deletion which means trim.<br>
<br>
Regards,<br>
Ronald.<br>
&nbsp;</body></html>
------=_Part_208186_1038978366.1701962504334--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66097626.208187.1701962504337>