From nobody Thu Dec 07 15:21:44 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmJ095MV3z538ZJ for ; Thu, 7 Dec 2023 15:21:45 +0000 (UTC) (envelope-from SRS0=aNgP=HS=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmJ094Tggz4MG3 for ; Thu, 7 Dec 2023 15:21:45 +0000 (UTC) (envelope-from SRS0=aNgP=HS=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Thu, 7 Dec 2023 16:21:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1701962504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2XNU9CMIp/mALKnC+B0VEvDfpLx1wrpA9Gg2WIWWaHw=; b=H5vdu9QvWYP2zpqLFLRQq6M1gxrPO9Rj4OJtp1+Phw/rDIooKAsOUizbVJcgjhB1Fo9z8e DqFdf01mmm7km+cyAkVyUpDyLPnmgJR/9x38nrGQsl6Z6YMQA/Nd1RJtaDjyMvjsx8/ETZ 5vdnJZdJtvLYX5iSbRhlhZoEdn+JsxW3Ix0t6ZCTlvgpbGdVC2XyElAwV7GEDZyT9PrT/k 9Zc/uSDrvkhmwkqatbJOoZSvksq+itRryA1aYpKffwODumZr4SdYR348Ca8+ULOKkTVFXS fw6W6EsY0KZJ99OmrltAezw0TvPn0bimcyBcdZI3A1V3pcAM1taI/UipoMIMNQ== From: Ronald Klop To: void Cc: freebsd-fs@freebsd.org Message-ID: <66097626.208187.1701962504337@localhost> In-Reply-To: References: Subject: Re: periodic trim for ufs2 ssds List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_208186_1038978366.1701962504334" X-Mailer: Realworks (681.40) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SmJ094Tggz4MG3 ------=_Part_208186_1038978366.1701962504334 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: void 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

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