From nobody Fri May 3 15:28:04 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 4VWF7T206Sz5KC5Z for ; Fri, 3 May 2024 15:28:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 4VWF7T0Fj8z562M for ; Fri, 3 May 2024 15:28:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a5200afe39eso1225932866b.1 for ; Fri, 03 May 2024 08:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1714750096; x=1715354896; 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=cg/PYfTyAiEE2Dbf98k81owCQcwXUU0iDLEBFAj/yG4=; b=bpXOK8HYz2xAeS7i00gui9enGP1xBdGHUqhmLysnZdTKBT3EjS8EL20neA68RGtXSF K0xp6c4IFmAX6sZLof4x7jktamKHrau9Q9+8pWpwjWC5tK0OEyUgVzZTvzgtEew/SSKW QJSKOYj/cE04+nuaDfc3miLsayiDmAI6sQr6tbiTQVn9C6eZlXOQ9NTg9D8sOPRQv6T8 963+ULDN/yocOnKUPDQzgkPT/UJzgAtjwm6khTk9J+fNI9fHOG2GPHCES54j5nTMX8e0 EoAT6NPKObNYyF6uNVIgWwWVQgO7Tbv5VYR6pA14ILMbg1ab2Nk8kAW+18dWqd2kfk7O drgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714750096; x=1715354896; 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=cg/PYfTyAiEE2Dbf98k81owCQcwXUU0iDLEBFAj/yG4=; b=PZgWE72vDVhW2kPfXHe3lavtL7vdOpTjYRYiMyactansPbjDSZg/Vux/LqkLuW4y8d 4aSCzbYUbbdwb3/pthLAoo9itfRCx81CuVuAY8eccJ7tSv1Llo2J/QkU43xH+VQxvxUn IHtbHsZsFrXIyZa0I/7oNjPbvjJH6mnmElNhWq2bwmBR+Goz3DnT4XpzaTRtFHY2LAlF 7meVhudH8pblkZ/xlr2/xrOA/m2Wcq2keDPdUjceBvwjzbu8Dz0v5LHrJC+8M5sztGni zJk9DM+F67iLEppnLT4GSfVpAgalpPkR9+GR0ORu6Sjcgq6W3CnAyDF21PUXK2prNMXD Ot2g== X-Forwarded-Encrypted: i=1; AJvYcCWHbJQbd06IKc+Gx1dePwZxdVRp0UQiuDlOujd2BBXcMjRBVU5w5JN61w5xFa+JcHUAybgB/Uiy+3aHMusah0LWWzg= X-Gm-Message-State: AOJu0YyieS2LDNmRqQIgYSMpLiGcY0g0eZJxfLVm9LcwTiLnmIAwQazO zUDo1bcZPX8YHu1cQfot7CB4bWVsczrgRi+kgiCWhMDBFpcjU7MIQgFqqz0JRhQ08+OSnAo6map 9aEDvKr4IqBA9vABLflsDj0JNjhEBXxlAbU7XOA== X-Google-Smtp-Source: AGHT+IHeeOO7efWNhXc62OCMUCYIEwtPl7HzBI/Hzw+BJGYWc+gFJJBGY88f7ft6kh0xRf3K+OfiIHE/AodFW2dxFdQ= X-Received: by 2002:a17:906:4a8b:b0:a56:ee1:5695 with SMTP id x11-20020a1709064a8b00b00a560ee15695mr2155005eju.19.1714750096171; Fri, 03 May 2024 08:28:16 -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 09:28:04 -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="0000000000005c82cd06178e5efc" 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: 4VWF7T0Fj8z562M --0000000000005c82cd06178e5efc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 3, 2024 at 9:16=E2=80=AFAM Antony Uspensky = wrote: > On Fri, 3 May 2024, Warner Losh wrote: > > > Ah yes. You need to enable ZFS trim. > > Do you mean autotrim property? No, better to run zpool trim manually. > It depends on the drives... But with cheap, crappy consumer drives, you're correct. I meant that you had to do it via zpool, not any specific method though. > > The other trim destroys all the data on that partition. > > Not always. It sends TRIM subcommand. > True. While technically the contents are allowed to be the same, often times they are not... Hence the warning... and even if they are the same right now, there's no guarantee they will remain the same in the future... Warner --0000000000005c82cd06178e5efc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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

> Ah yes. You need to enable ZFS trim.

Do you mean autotrim property? No, better to run zpool trim manually.

It depends on the drives... But with cheap, = crappy consumer drives, you're correct.

I mean= t that you had to do it via zpool, not any specific method though.
=C2=A0
> The other trim destroys all the data on that partition.

Not always. It sends TRIM subcommand.

T= rue. While technically the contents are allowed to be the same, often times= they are not... Hence the warning... and even if they are the same right n= ow, there's no guarantee they will remain the same in the future...

Warner
--0000000000005c82cd06178e5efc--