Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5275775pxu; Tue, 22 Dec 2020 12:33:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhv4IPobeuFL+SZA+lSnmKjT7Xo9pQS8HwG6wR+ihirfiXv8JQTV2amV2Kxg1Xbm4rJfwh X-Received: by 2002:a17:906:94cf:: with SMTP id d15mr20740193ejy.271.1608669212595; Tue, 22 Dec 2020 12:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608669212; cv=none; d=google.com; s=arc-20160816; b=E7GBXoNZDmakUI0NIMZb0arYTuH9isVzGhifEwyIQQZq3lrETLsuoOa6bfSQJmeFZ+ C5QNsf01XkpsLG0hZGImHLPbv13+gpLqAHxoEDm4re7Ffao8cCBLBhXtX8+5zaEs88Hy XMjsp3Po+Jn7TX4xbynf4CerqlH5EB5pEA352j95T9H/1R/Cz6Q+I7ynzhFpj8eqHANn 1nmCAISzyvtqtbwehy/fDXtJHxER1at5RaGCGj1p3UISrMmIILpUVZeJ6CVy53hYtgdb Nek8XU4M+7ghYHYQHov2SGQZtejHRPlIITLARaMT8jy9wGqrovX+sk1SCPzr+3osAvmg 0/1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=K3t0gQbM6vz2TJwWgefdmZ2h7DY9X/bWdXKHVBct5Bo=; b=lM1wWp8xCNsjrLg99dI/iEy7yI2zfd0/DbIylNa654gu1K2VgL11M278F0bfFxMMaB THi/Ybop7JOJAvF409Q7Imo8jw2agtcYi6OlPQfAYXOFAT7SFVeUHS5LUiBheUmaLD2R gaj5XMRRhpp6fVKh348rEQCc0DmVRIHTw/fTOfsBTsK1rf6MeG1BgPST56QZhtV/1VmZ ST12PV1iG1xWq0M/H9LsjssfhEeYx8oDmvjSJ+753BYyOUmprS4DZTu8DI8GzAjbElYd MiJHGq0M1EPx7aLBGHSvzIDyp83ZHy8n4oR7FTqEMt0NHhw0vSGp6DU1QOboc7BZKZds vIxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=xIcXQn7R; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si10588989eje.650.2020.12.22.12.33.09; Tue, 22 Dec 2020 12:33:32 -0800 (PST) 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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=xIcXQn7R; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbgLVUcV (ORCPT + 99 others); Tue, 22 Dec 2020 15:32:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbgLVUcU (ORCPT ); Tue, 22 Dec 2020 15:32:20 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7474C06179C for ; Tue, 22 Dec 2020 12:31:40 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id t6so8020633plq.1 for ; Tue, 22 Dec 2020 12:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=K3t0gQbM6vz2TJwWgefdmZ2h7DY9X/bWdXKHVBct5Bo=; b=xIcXQn7R4olfb6NcIyMf0NYfvpPgw6QMgzZqfGR/vN1YUULDWUjonzB1u1/ySq/1+2 LxpwMMHsEwVO8g1rS3R3TIZjoli5f69LDfyF5ZNNXGfOU+tHVbnyiyN+Y+zWKr1/JZL5 S+uqgfDwY2RRWm2ZHdTC0BJLvhQzV0y417kxiPUtc2/qhs2GQA6POOqa+KU+OdEfXMoA A+6e3BNovWaPuA16HnA874KhkukNH+vohj9uEjGTi1uBHlJlZCvOBUoJ1T1oL8MmpH71 t0tFwT2gvcsPX5zjaFyLTscOoRU9spDL3/Lu9+cRSLHINPBTUkaFuLh2mAlsqZtI20q4 WB5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=K3t0gQbM6vz2TJwWgefdmZ2h7DY9X/bWdXKHVBct5Bo=; b=jHy9bD8TbFR7jhsMHkhwQ8mLMLImN1mtJUuDSK3/V3ODsF9DE3vFEaaBHMiVViMOF7 LVA3KVesQgfzfWZQhqvYRWmM+/1NiYn0SPkBXVIZqCDFCpEg+lPpsh9KQH8PJDwXtVKe jxXmdsJQDJvdwm5sslbDLHDMuPKboo0dK1apzXBWteSOb8braRCcDYq9ze5b8hBEh9jw gW44axNhOUqB+s0pmYSNZ0gF6k5I2P869wYLzGx08EMDHJfcUqNR7hCELTJkj5bo3drV gTh4ZXPWBuIbQp43BwyGN6WswsafBdKT/mP2JMvbC1DF5VPA6quUrEVacLyjSs8Z6yUR +3AA== X-Gm-Message-State: AOAM5302ZrVr5lw4Gbvp/n4xrgC+vpIdwx05U7atE16BdqqFic7VbVGU RNthXptfoweVjDItk5tkLRdbuQ== X-Received: by 2002:a17:90a:e005:: with SMTP id u5mr23339455pjy.64.1608669100205; Tue, 22 Dec 2020 12:31:40 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id w27sm17486740pfq.104.2020.12.22.12.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 12:31:39 -0800 (PST) Date: Tue, 22 Dec 2020 12:31:39 -0800 (PST) X-Google-Original-Date: Tue, 22 Dec 2020 12:31:37 PST (-0800) Subject: Re: [dm-devel] [PATCH v1 0/5] dm: dm-user: New target that proxies BIOs to userspace In-Reply-To: <20201222133246.GA5099@infradead.org> CC: josef@toxicpanda.com, bvanassche@acm.org, Christoph Hellwig , snitzer@redhat.com, corbet@lwn.net, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, dm-devel@redhat.com, linux-kselftest@vger.kernel.org, shuah@kernel.org, agk@redhat.com, michael.christie@oracle.com From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Dec 2020 05:32:46 PST (-0800), Christoph Hellwig wrote: > On Mon, Dec 14, 2020 at 07:00:57PM -0800, Palmer Dabbelt wrote: >> I haven't gotten a whole lot of feedback, so I'm inclined to at least have some >> reasonable performance numbers before bothering with a v2. > > FYI, my other main worry beside duplicating nbd is that device mapper > really is a stacked interface that sits on top of other block device. > Turning this into something else that just pipes data to userspace > seems very strange. Agreed. It certainly doesn't fit the DM model. We'd considered doing a non-DM version of this (maybe "ubd"), but decided to stick with dm-user because we didn't want to duplicate all the device creation stuff that DM provides. A simple version of that wouldn't be that hard to do, but the DM version has a lot of features and we get that all for free. We essentially decided to run with DM until it gets in the way, and the only sticking point we ended up with was that REQUEUE stuff (though not sure how that would show up with a bare block device) and that scheduler question. I'm going to stick with DM for now, unless it gets in the way, to avoid coming up with a device creation scheme myself. In the long term it's probably best to have this be a standalone thing, but I don't want to dump a bunch of time into putting that stuff together only to find that this isn't interesting enough from a performance perspective to stick around.