Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp488887pxk; Thu, 24 Sep 2020 10:22:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1nfYfGfIZP4JfYYOSfnkoqTxN1RTop7jFUUIN86XeR7d9wQuv6LEdeWVlCuh8PEs7dXny X-Received: by 2002:aa7:c3d4:: with SMTP id l20mr1017036edr.263.1600968129561; Thu, 24 Sep 2020 10:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600968129; cv=none; d=google.com; s=arc-20160816; b=ATivIK7cYexW7ZZF+tNxd/aDrHnBZTIlszxlAJNzT7P+t3BQi7xzRGotfaL/sEVN5z 2GE3rs6THaIA9dYbSmgJergDYxToWVKNC8vma3kjoTFHx2umrLV4xVHzVkmz0EJ7NiDp 5ZU3LXQKwKQ5EqKf0nICNPCN0DxUW7Cwj6g0mi96GrsHtBakNOSgSQidHFD7BzQ2JuAN aHXrYIDgrO/boCjsON2kIwuRqbMzW7EEfD/V/VwgmdgkexTcGWJRizfLN6pXRJtiy3ee YBfVieV/NL9ENtRjFYRu2v3qD6i2ejGHJf6WDPyQgqbyJhI1bne1tNF3NXoQDDhqK2a2 wPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kAbZd3vS2mRaNP4IzKbD5ITPH51zcyuJzcimZuIDrHU=; b=AAx+NYRcnDd49HTcyBAnDThXMr589cdP5SY79WcQg/IySoMe0ViiAkwsqfmDxrAxds Wv3W5r1rl45thn9H584GXsknPbGzEKvGIEXivZ0EJSWpGfdYUlAWIV5VPJHnjhzPScX8 mVyloTMkyF65FfbRjzUWMLIJxqIelHSr+GE+DZkYiif0ByzEBxxWkZWT9XepinV4e6Pr gluCQLShSmQZ7a8Fo6g2J1vLL/RMFz5uhxUQ92721DBdAoGsC/5t0MqbPVKUUqyf8FIK PiEjusKM/US1ZNniHdDFUUpB0oUWhNOKkcUDdnKibLSlkmUyDczpa+eRzY1zIGv4qdKW uydg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qNlQD2VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nq4si80663ejb.678.2020.09.24.10.21.46; Thu, 24 Sep 2020 10:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qNlQD2VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728663AbgIXRT4 (ORCPT + 99 others); Thu, 24 Sep 2020 13:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727216AbgIXRT4 (ORCPT ); Thu, 24 Sep 2020 13:19:56 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3EBC0613CE; Thu, 24 Sep 2020 10:19:56 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id s12so4661299wrw.11; Thu, 24 Sep 2020 10:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kAbZd3vS2mRaNP4IzKbD5ITPH51zcyuJzcimZuIDrHU=; b=qNlQD2VUwuZlfp3QTbChXLwkrg3TPs4FW/cPGjFxkYsyIdgolpsVHCzK+JtmhzuOVy pdi0dktqgCnXlIOv5hDbMPTnXdMBVdkZQoe7O2BW6Bbczk9+1s2DIwD9PrSuK6v+sEaF DI5dYuyUqGJB5Cqg0RJ5MGE9wp6SI2DQKTHm83cS8wjNJQ+D8i9i22W5Wc0KAEJPt/lI lMqIAU3dAoFQknurRyITwbWpD/XwQwQH7f+RMIfkHbp/eYOroyMTFqQ42nmLRTZ0AFEs ZImi//w1eD9Vr/kJD930rSvZA6+0qyZXWvUYBdxkM9YPx/4j22h5EaLNGpyTSrXMbCwO YKUA== 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=kAbZd3vS2mRaNP4IzKbD5ITPH51zcyuJzcimZuIDrHU=; b=V21uYvRbHZmmTSh3fWjo8BfbaL41yrIXH/LzNGG90j0d+TEjVPxei13O3cZ/CpZi+w dsQ5Rxqv8mfkZ3D/pKzhGpeonQs2ixAtmuCBguC+xWnAICRlXSDVEll/jQrmPgCJYruh KllSIWPU7j23jrqZi4AFt2/qZBce5bWkFU9a3e9ODDq1/ml3Fk0EI1QgXibidClGM8OI ncDnarO0V5INSytdvFJnjZ4G59CJnm48s5WRI3gvbqYIF7dbkiI5xB80SlFjVubtCGSU P9GYtyPCCG2iA5FhX7sSPkgXvlcTSlbcqbHQoXP3lT1DLMkkOzOkXMFH0cm0Akxu2jQv TrMw== X-Gm-Message-State: AOAM530qgixWz+BMK83Ty3+x2kopAJJW9TEPB6zrRV56pBTp1V6WUU8e VJqic41txBqV6JiPJvkwadNM0DDkiCM0YaRmwXf1XTevHy6UDYEwhJE= X-Received: by 2002:adf:dd51:: with SMTP id u17mr834011wrm.355.1600967994708; Thu, 24 Sep 2020 10:19:54 -0700 (PDT) MIME-Version: 1.0 References: <20200731091416.GA29634@infradead.org> <20200731094135.GA4104@infradead.org> <20200731125110.GA11500@infradead.org> <20200814081411.GA16943@infradead.org> <20200908151801.GA16742@infradead.org> In-Reply-To: <20200908151801.GA16742@infradead.org> From: Kanchan Joshi Date: Thu, 24 Sep 2020 22:49:28 +0530 Message-ID: Subject: Re: [PATCH v4 6/6] io_uring: add support for zone-append To: "hch@infradead.org" Cc: Damien Le Moal , Jens Axboe , Pavel Begunkov , Kanchan Joshi , "viro@zeniv.linux.org.uk" , "bcrl@kvack.org" , Matthew Wilcox , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-aio@kvack.org" , "io-uring@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-api@vger.kernel.org" , SelvaKumar S , Nitesh Shetty , Javier Gonzalez , Johannes Thumshirn , Naohiro Aota Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 8, 2020 at 8:48 PM hch@infradead.org wrote: > > On Mon, Sep 07, 2020 at 12:31:42PM +0530, Kanchan Joshi wrote: > > But there are use-cases which benefit from supporting zone-append on > > raw block-dev path. > > Certain user-space log-structured/cow FS/DB will use the device that > > way. Aerospike is one example. > > Pass-through is synchronous, and we lose the ability to use io-uring. > > So use zonefs, which is designed exactly for that use case. Not specific to zone-append, but in general it may not be good to lock new features/interfaces to ZoneFS alone, given that direct-block interface has its own merits. Mapping one file to a one zone is good for some use-cases, but limiting for others. Some user-space FS/DBs would be more efficient (less meta, indirection) with the freedom to decide file-to-zone mapping/placement. - Rocksdb and those LSM style DBs would map SSTable to zone, but SSTable file may be two small (initially) and may become too large (after compaction) for a zone. - The internal parallelism of a single zone is a design-choice, and depends on the drive. Writing multiple zones parallely (striped/raid way) can give better performance than writing on one. In that case one would want to file that seamlessly combines multiple-zones in a striped fashion. Also it seems difficult (compared to block dev) to fit simple-copy TP in ZoneFS. The new command needs: one NVMe drive, list of source LBAs and one destination LBA. In ZoneFS, we would deal with N+1 file-descriptors (N source zone file, and one destination zone file) for that. While with block interface, we do not need more than one file-descriptor representing the entire device. With more zone-files, we face open/close overhead too. -- Joshi