From nobody Fri May 3 14:33:57 2024 X-Original-To: stable@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 4VWCwy6YFzz5K74b for ; Fri, 3 May 2024 14:34:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 4VWCwy4js9z4tsl for ; Fri, 3 May 2024 14:34:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a5557e3ebcaso526684066b.1 for ; Fri, 03 May 2024 07:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1714746849; x=1715351649; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jxvVqoMtwxGZYEEPj/oMaaDphexeY1fV7xt/Kx/rEhk=; b=rOc4V32V9+dR2Clv/27UdluEGjgwFkm3Lj+HIJVshoxbZ/lYGSxnKyfP/NQIRYEKOx K9YU9Jo5RKwLIwXpiKMgf4t04KNpJd1A4J7CNX+uQOrra2E4GAwqGHixZLATMMPnHANU aO+sJmyp07HuDVoeMjhNb0TZxZ8ZDQmpDXQltkE0Ml4c9FVDAfo7RMSrQPgL8rwLcHN2 hrysU9xDUz7hOwEsjLYJgLicWp1KtvSWSpX7nL4kIxQmp+/4IzIWup6EsqIIEKfibZ04 wCtVMEMD+g7N8gsyW60rGSeFqjnWZex2B+ndrO9pOmTH7oQ5oekQfvPcj53kVsllMOeu UryQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714746849; x=1715351649; h=cc: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=jxvVqoMtwxGZYEEPj/oMaaDphexeY1fV7xt/Kx/rEhk=; b=FxcmMV9Db1J5dF8oXztZ+JHW64+xjqQcW0ZRnz3XpAujLF0b66j3COQx5osxpEkhRP bw7JAvknjTJVUFVnmgSTTDQ83sZQDqB2e2E1WkIKUf32GmjrPgVJ90UUt/r7AD5euold ZW54CizeXkThxn7HMjlj+0bQ9mKVYYgJe5JeIXWizB3IbVFZDR5cDIkkqGvrSsyh8bxZ 77O+VM5zTxxtjAbTIycNfGgpvZXfQ/9GxpeqVwsTUiFINt5znUoDopzc6TuDC66Oz3J0 EGgjRzZApfy7aKundw/O+mnQ966i+84jKPcaSp4RTo75mt84hwmLxHA9Oxml5lt8pi5t ToVw== X-Forwarded-Encrypted: i=1; AJvYcCVjlE0XS67gE59DQqgBnQ9zm8DtySZSAua5MR0mk9k+taSilWhyHlzz4cTpB9NUgMG7uKjcsrwexxUk+65G6O1L9vg= X-Gm-Message-State: AOJu0YyHGPLiSzxQ4WWJeavX4LMA7JIV1QziLEcgqZMHx3hoDNQXjJrx RvCY6k7328fmY0X44v+DzA8GVuGcMDpzG35KMa9epHLnF+Nce3bTZk5XjCNRDfIz+mOGntdw7bR V5rFCIEnJYYPBjEf1lhOy8TNQq2NMl9GXLmzF69/rTaumjQV2 X-Google-Smtp-Source: AGHT+IFazotMmAiSA+57DlZEGGthZLFeMAkOMzfpGugJjLm0/ziUnijNSD+BqKNxyG73IZ4ID1SX27JCpOLyluAI1yE= X-Received: by 2002:a17:906:3b4b:b0:a58:e8cf:664f with SMTP id h11-20020a1709063b4b00b00a58e8cf664fmr4686140ejf.23.1714746848985; Fri, 03 May 2024 07:34:08 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Fri, 3 May 2024 08:33:57 -0600 Message-ID: Subject: Re: how to tell if TRIM is working To: Antony Uspensky Cc: mike tancsa , Matthew Grooms , stable@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d05ed606178d9c7e" X-Spamd-Bar: ---- 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:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4VWCwy4js9z4tsl --000000000000d05ed606178d9c7e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 3, 2024 at 8:17=E2=80=AFAM Antony Uspensky = wrote: > On Thu, 2 May 2024, Warner Losh wrote: > > > ZFS has a lot of knobs to control when / how / if this is done. > > trim(8) works on device level. > If you use ZFS, you rather need zpool-trim(8), which works on pool level. > Ah yes. You need to enable ZFS trim. I'd misread trim as zfs trim. The other trim destroys all the data on that partition. Warner --000000000000d05ed606178d9c7e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, May 3, 2024 at 8:17=E2=80=AFA= M Antony Uspensky <uspensky@x-art.r= u> wrote:
On Thu, 2 May 2024, Warner Losh wrote:

> ZFS has a lot of knobs to control when / how / if this is done.

trim(8) works on device level.
If you use ZFS, you rather need zpool-trim(8), which works on pool level.

Ah yes. You need to enable ZFS trim. I&#= 39;d misread trim as zfs trim. The other trim destroys all the data
on that partition.

Warner
<= /div> --000000000000d05ed606178d9c7e--