From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C76DBC433F5 for ; Wed, 5 Jan 2022 01:33:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236905AbiAEBdy (ORCPT ); Tue, 4 Jan 2022 20:33:54 -0500 Received: from drax.kayaks.hungrycats.org ([174.142.148.226]:35458 "EHLO drax.kayaks.hungrycats.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234314AbiAEBdx (ORCPT ); Tue, 4 Jan 2022 20:33:53 -0500 Received: by drax.kayaks.hungrycats.org (Postfix, from userid 1002) id 8068013AB17; Tue, 4 Jan 2022 20:33:52 -0500 (EST) Date: Tue, 4 Jan 2022 20:33:52 -0500 From: Zygo Blaxell To: Eric Levy Cc: "linux-btrfs@vger.kernel.org" Subject: Re: "hardware-assisted zeroing" Message-ID: References: <487b4d965a6942d6c2d1fad91e4e5a4aa29e2871.camel@ericlevy.name> <2193547e-d88e-9f53-6777-793b58130afd@gmx.com> <18d02df50fc7f9c63ff07b5433a445d911538be6.camel@ericlevy.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18d02df50fc7f9c63ff07b5433a445d911538be6.camel@ericlevy.name> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Jan 04, 2022 at 08:26:41PM -0500, Eric Levy wrote: > On Tue, 2022-01-04 at 20:21 -0500, Zygo Blaxell wrote: > > > ZNS SSD devices do address mapping entirely in reverse--in a write > > command, the host says "append this block to zone Z", the drive > > chooses > > a block address for the data within that zone, and sends the written > > block address back to the host filesystem as part of the command > > reply. > > This allows the drive to implement writes in parallel (so they are > > subject to reordering) without having to store where it put user data > > in the SSD's own memory. > > How does the host remember the mapping, and where does it get applied > during followup access? That's up to the host filesystem implementation. ZNS devices require filesystems that speak ZNS protocol. They don't implement a traditional LBA-oriented interface (or if they do, they provide a separate logical device interface for that).