From owner-freebsd-arch@freebsd.org Tue Nov 13 22:58:57 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F7391135C8B for ; Tue, 13 Nov 2018 22:58:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D2DD77D3EF for ; Tue, 13 Nov 2018 22:58:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd2e.google.com with SMTP id h4so6159586iom.5 for ; Tue, 13 Nov 2018 14:58:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CqMUpo493atzjgSsixYS/AHpw8MT4SJMAwHthPoo5oI=; b=eQOOhp1HL/CWvF3DBRFGqOp99pDToSgvqqzefes/wNDYPLo1yxHxnvQiXh1a1wUBXM IYnhDxwMzUvvaDW6Rvk6zw1MfDChRam6SNTXQO3cET1gwIJWN1m7fi2kVgUYF5f7b39c h8X4nW4mwgxJ3EBsKGQgzCsHPav8MlCyASO0tbONpW5Dh/bJs6HYfkD4XjHYPtT0VecU 2GlZKhm2ckgl2zZlnT1FYTWOT4/c4zIrOVBH39+NR/5pQIPrRYzCUvcsiIMrlHlcbRpB eUkjro2DfkHiAMxIyIguJGDWPBVZadXsMss5XIJkiiy8b7fLBwQtd5Aj9XjgmNcAt4EZ GR/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CqMUpo493atzjgSsixYS/AHpw8MT4SJMAwHthPoo5oI=; b=HguhmJxXu83S2IVbGvuQGaFTuVDnkm/8S1a6d8WfiKtHIbG73OfqlpQqAPoE3m8uL9 3pw9sDgjYr4NARm9m7Yn/hUreICt0hiMiLzLoGYO4QE4K+7JSftpUvXrQO9nldqO28j4 6C7BuRkokxckVuNerpZ07JAQtuIxTvSTXomVUKVZdSU0NTDzTZYBTPemLQD8qFE5rJBE 4e9PiNitPnamUsw6VcDHpzV68o0vBxhnFWoxv6tSfl54H/UKPw+fv5+lohO1QnuzX2KL k/AHeWIpDk8tOuzbZjQVh5U8AJleEXPPVa2iP2Ns0NEkZZdS/+cPyNqE6nTU3KrtLxWL T6iA== X-Gm-Message-State: AGRZ1gJC/eSaDx2JEmu2PuP1NwENCML3G1eeuarvfxuqwiLmAnyeA9BH 4KGBAUjSeK9wSvhtyeG6Yf67GRcaLEF4xTES3WAl1GwD X-Google-Smtp-Source: AJdET5eu+7U4suaKglvNO4F0FtxTdgyrK2kOm2p4KnXNUA3T2fuVwgL45Duoe4g7HSmZz15N79zKm6ZMBEoaEuMgxkE= X-Received: by 2002:a6b:7809:: with SMTP id j9-v6mr5562930iom.299.1542149936083; Tue, 13 Nov 2018 14:58:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Tue, 13 Nov 2018 15:58:45 -0700 Message-ID: Subject: Re: Hole-punching, TRIM, etc To: "Conrad E. Meyer" Cc: Alan Somers , FreeBSD FS , FreeBSD Current , "freebsd-arch@freebsd.org" X-Rspamd-Queue-Id: D2DD77D3EF X-Spamd-Result: default: False [-3.94 / 200.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[e.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.95)[-0.950,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.98)[ipnet: 2607:f8b0::/32(-2.88), asn: 15169(-1.91), country: US(-0.09)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 22:58:57 -0000 On Tue, Nov 13, 2018 at 3:52 PM Conrad Meyer wrote: > Geom devices have the DIOCGDELETE ioctl, which translates into > BIO_DELETE (which is TRIM, as I understand it). > Correct. TRIM is both the catch-all term people use, as well as the name of a specific DSM (data set management) command in the ATA command set. All FLASH technologies have it (thought what it means under the covers varies a bit). Thin provisioned resources like in VMs also have it. Warner