From nobody Thu Dec 7 14:20:10 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 4SmGdN5btXz534GJ for ; Thu, 7 Dec 2023 14:20:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmGdN17rqz4CxJ for ; Thu, 7 Dec 2023 14:20:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=hBTzZEJm; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::634) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9e1021dbd28so125290766b.3 for ; Thu, 07 Dec 2023 06:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1701958822; x=1702563622; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=xXm4zoYGeniTg0vw94BdfTxCWOfXEYzUBocHzDILDGw=; b=hBTzZEJm/QsA9P4VE1VYsiBuHYm5GZESeI7rSDzPjS3Itw7g5hYptaAfyNIRmCyCvS /dGy7+fvrY1V2ASMtFknaabfCvKk2gji9cr5nVUk7KaV2csxOXlqylJKno+8NvdseDfK Wds4cXM/ZSRhRM7lxpnMawqSfTMxMEH/mqTwv5UvgNjW1AeZUfh9Q+MLZH9llslidMLo mcqQ9NfmXPr9tApAAXzRDMsBb8MVGjoacyJ7Q85dsQd0f2Qakptmgq+2/UwXaUnr6Mi4 hOd6k1dcf6f6FmRcyQqW4E0tapa/NRlNegrlkboExJnbS4QeabTmgex2E1LJc4k9VqvG YvcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701958822; x=1702563622; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xXm4zoYGeniTg0vw94BdfTxCWOfXEYzUBocHzDILDGw=; b=cV5WyZxHMQmDNGkwAutkAqKWkx1WIG5bOjpLGY2zPWeVO+IGw5ruLRvQ3OYbg/G7wR IzYokJ9gyIbVBf4F1VC77tF2N/EcMX0NEoTneOLhxDF7B0iiGcvo2ozVUB6kaUi0e3pB j+c/if0sXaJs5tHVzHLkBxQ678EWbxPMixEecY4nvw7nR1xXLFsruouE4znK1ShYJa46 lkgVp61H6sxYKEdCKhJuOrMANa1VOEWH6fqqF+xFidwUQpp/oCiKpS9o8zFoWcYc7D8q FGrjgsUDMK0arEjzvhkHOpSExMdbfVj3DoSnbKwNCSCwR9rf19yM44fM3W6dJ0lb20Zv 92hg== X-Gm-Message-State: AOJu0Yw2TCVJB0JSSORQq95C0NXLD5XV+8O0bGFqCGIx8Tlm5Z3QEbuJ Q7gp5ELb1gDNN17RHnfq/ihCna/9efye2a7HQ12TtSUob82LFr5N X-Google-Smtp-Source: AGHT+IFRf4t0mMRi9jtMLYWbzGUYtj8Hjsy4IM9mq+bj9fryhs9NHGnnkNkN9h3XadV+TVgurxG5BPxFO/j6DN0+P2M= X-Received: by 2002:a17:906:f2cf:b0:a1b:e80a:b68 with SMTP id gz15-20020a170906f2cf00b00a1be80a0b68mr1524256ejb.143.1701958822122; Thu, 07 Dec 2023 06:20:22 -0800 (PST) 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 References: In-Reply-To: From: Warner Losh Date: Thu, 7 Dec 2023 07:20:10 -0700 Message-ID: Subject: Re: periodic trim for ufs2 ssds To: FreeBSD FS Content-Type: multipart/alternative; boundary="00000000000003ebba060bec2b04" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::634:from]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsdimp.com]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com] X-Rspamd-Queue-Id: 4SmGdN17rqz4CxJ X-Spamd-Bar: -- --00000000000003ebba060bec2b04 Content-Type: text/plain; charset="UTF-8" On Thu, Dec 7, 2023, 7:13 AM void wrote: > Hello list, > > Is there a way or a port available to invoke trim for ufs formatted > ssds while multiuser & mounted? > 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... :). Warner I know zfs has this ability, with the zpool -t poolname command > and it runs fine while multiuser. I can't find an equivalent for > ufs though. Is there one? > -- > > --00000000000003ebba060bec2b04 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Dec 7, 2023, 7:13 AM void <void@f-m.fm> wrote:
Hello list,

Is there a way or a port available to invoke trim for ufs formatted
ssds while multiuser & mounted?

You need to tunefs that on and it will h= appen as you go. There is no way to batch this up to do it in the backgroun= d. But there's no advantage to trimming a block multiple=C2=A0times... = :).

Warner

I know zfs has this ability, with the zpool -t poolname command
and it runs fine while multiuser. I can't find an equivalent for
ufs though. Is there one?
--

--00000000000003ebba060bec2b04--