From owner-freebsd-fs@freebsd.org Tue Nov 13 22:58:57 2018 Return-Path: Delivered-To: freebsd-fs@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 9B4101135C8C for ; Tue, 13 Nov 2018 22:58:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 CD96D7D3ED for ; Tue, 13 Nov 2018 22:58:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd36.google.com with SMTP id b26-v6so9618392ioc.6 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=qaG8NIouWSYFmSCSwa7hVkLFG2Y9Aaa33lTaCj3T5uV+JxbNrHlV3QD1DqVsXtcaIH lZ+SSc80V5zFBXdvuW2w55zXNDQj2TzURUrpxRsJ3UheVI2v1WAA8MS87setY7CnNsLh sYqqWsGarGnHYyI6Ikua5ZJXX1OcdTb5zEHfbPma6+4FTR4jd4bl/mtnC5+YTF4Oo1d6 F4mFwmHLic6qzFyr6DAlpA9IQbFcNyWejbQLaNZhDDtFxP1JqyNtJsfTKFdeCAwCXwM9 LOLliZsdirY2MGibAFGup1GiS+gKax6F4Z7lUbdcPvJ54/d0k5ji62Y2PH2nkWmVE5Rs UHhw== X-Gm-Message-State: AGRZ1gIYwHnzyVR7QS1yAdJpTBagAyHkJPJS9y6PrfFJZp8ThWiax/p/ w8omkbd1VG03LEF5xw2w4y+Bbi09Q5aSyjNvSLKxJA== 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: CD96D7D3ED 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-fs@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)[6.3.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-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems 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