From nobody Thu Dec 7 14:40:47 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 4SmH4y0WvBz535Xy for ; Thu, 7 Dec 2023 14:40:50 +0000 (UTC) (envelope-from void@f-m.fm) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmH4x4NVbz4GdQ for ; Thu, 7 Dec 2023 14:40:49 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm1 header.b=BSYfzkqM; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=Mav1pqTJ; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 66.111.4.27 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 50C4B5C020F for ; Thu, 7 Dec 2023 09:40:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 07 Dec 2023 09:40:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701960049; x=1702046449; bh=KN Fo0CuX6fg7NkBVHQ8+AHxARHC4ux3N2TAPzawQCcA=; b=BSYfzkqMJV8a3pXdGe LYJZndNE9+h1aW3YNrfGeQB6LeCBTvEV/IfaI1zOl3rKCGxNf+R2C+7iB9q/N8dD 41fvvroyz1gzJg3eO1tOMlYZ9bIA4+8nF7iWFnoGv28W8SUhxEvaWNHDadxCwf97 im0ffsw9pLQD+qgLqgf4SEYMqmyA46fLcqLaKvmiVlJCN0s6Ag7jG4/h2QHLQyMq yqslP1Vn6VUbxOM2/6BVF1a7V3aI/P6d4nLmBowQNq3EQqQiI2uHFK4KuL6FjgNv 1epHc5WzkB5diPAZ6ruqrcDVoyfYA5PnshIaCkR7j7xciXVxHX1AhqaRdkdd56Zm UJuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701960049; x=1702046449; bh=KNFo0CuX6fg7N kBVHQ8+AHxARHC4ux3N2TAPzawQCcA=; b=Mav1pqTJLjjRLjD7DwvDVf75crh49 AU01xcwTWpkfRp5/hAr0XXkY9F6Ea+oW/9DljaQwVws8V4Amo3JAypA5yQJd901I MOQq+rYXbQCnpFXpKrGndKYRMPmjUl5c1y1X/gRr5QTXZYiZ0RNHF3kYoGVM7xoD beQwn6cD9kBLHCxLGawQWGTXCg0CqOclvlyn8Ro03vB1hlR+kx3cB3FUuC+fA0MH /ywjlc2wDqG1sttYq1cHrECX9XMGeclX3YH4bTnxYoJl6mRnpv5bHD8veLuHh2xc riiqHQA511qL5OGQCeX9AlyX/DMjSUaOVe/qTOAWKA7wRqm/xSiouDb7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekfedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtro dttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgr thhtvghrnhepieevgfefgeffhffggfeitdejjefhteeffefgleefieevleevjeeuieduge elgffgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep vhhoihgusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 7 Dec 2023 09:40:48 -0500 (EST) Date: Thu, 7 Dec 2023 14:40:47 +0000 From: void To: freebsd-fs@freebsd.org Subject: Re: periodic trim for ufs2 ssds Message-ID: Mail-Followup-To: freebsd-fs@freebsd.org References: 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: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-5.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[66.111.4.27:from]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm1,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.27:from]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4SmH4x4NVbz4GdQ X-Spamd-Bar: ---- 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. --