From nobody Sun Dec 10 13:49:49 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 4Sp5pq3YZDz53rNl for ; Sun, 10 Dec 2023 13:49:55 +0000 (UTC) (envelope-from void@f-m.fm) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 4Sp5pp0t0Cz4cJY for ; Sun, 10 Dec 2023 13:49:54 +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=CMCZ47pj; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="ar/g42YK"; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 64.147.123.21 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id ED4EA3200AD8 for ; Sun, 10 Dec 2023 08:49:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 10 Dec 2023 08:49:52 -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=1702216191; x=1702302591; bh=fb o0SwbiHyJSuWvXH2BHVU2QWuU7fQeMotFlUBRCOOM=; b=CMCZ47pjgqtI/0vn8e dfJIg1yPZ9ednlboKIHUtw+MAqiuvMF9rLe93aZBipEsI8yF1fHM1a1B30yJ58GE rNzV2v8YQzIxt0Lmx8A1JrAGRcYbW9riZx/HMlz6EEA/UuFXTPsQ2/iTIgihLJ62 pz9XpVSoDyTgmgVjnI2/WR8vu/tMJcnppMHoRt6yrVRSSekz7A02CrGVV67Z562h Cdj1KqBlLjE+zpTBp02ndUCmMhWNEppeKySrmR2cctBxhhbrEKboct4FNZ25ljwn 4m1dCQ8zoXCi3oYfHI1BE9lUzVa7BJu0FhxdY2MRSSvkEUyffjMCQXe4P4GHPV4N WluQ== 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=1702216191; x=1702302591; bh=fbo0SwbiHyJSu WvXH2BHVU2QWuU7fQeMotFlUBRCOOM=; b=ar/g42YKvToDNDDJCObBRFC3/8NKe JRJxaHJ6H77ekWLAYuKNSfiDsIaOdLlVmCFBionZS45vtmSckp+sgTIY7iOKAy01 WwmR5Ad3RCIXEhOMcW21yVvFYXfQdtEh1O+g3wPIDOpa39xoW+5aQDgp8MgSPd7p AYrmK+AQrP8E3sN3KDwKFqI19r4l8l6Zp68P8TtHRNC6YsUWgIujDoarrJG4Doz9 iLbDUzanox5Q/XlVWEnFNWPeV00dKSh0QnhpP6zhvpFLF9oTsyFXp5Sziwo1EX4g hew3YXtT2OP1TZ2VlMQ873oFdy6DAxsJb6+Lh4h9xPSbVR3QSzjpifeSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeltddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgr thhtvghrnhepkeeluddvlefhieelfefggffhffektdehleelgfdugfdvgeekjeejuddthe ehgfeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep vhhoihgusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 10 Dec 2023 08:49:50 -0500 (EST) Date: Sun, 10 Dec 2023 13:49:49 +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 [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.21:from]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm1,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.21:from]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim]; 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: 4Sp5pp0t0Cz4cJY X-Spamd-Bar: --- On Fri, Dec 08, 2023 at 06:19:51PM -0800, Mark Millard wrote: >One can sometimes use: > ># gstat -spod > >for monitoring alternatives and get an idea if on-the-fly >trim is rate limiting activity compared to not having it >enabled. thanks. Consumer-grade ssds seem to have sometimes a catastrophic mode of failure where the ssd cannot even be read, by anything. I hope that trim might, in the long run, help with delaying that. From what I've read so far, trim is considered non-harmful. On systems with enterprise-grade ssds in a zpool, I have (manual, zpool) trim running as a cron job a few minutes before other automatic jobs with heavy I/O. The trim job takes about 3 minutes to run. The SSDs are pci not m.2. Hopefully this extends their life to the maximum possible extent (together with weekly zpool scrub) --