Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3921047rwl; Sun, 2 Apr 2023 18:50:03 -0700 (PDT) X-Google-Smtp-Source: AKy350ZmGoxMzaa3EpD3nuZyboOgn05IR5N4bB3Qsw6JM6nScU8HhpkxWrbplM8nT+bWsoCCSNaK X-Received: by 2002:a17:90b:38cc:b0:23d:4e0e:cf34 with SMTP id nn12-20020a17090b38cc00b0023d4e0ecf34mr38993056pjb.34.1680486602752; Sun, 02 Apr 2023 18:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680486602; cv=none; d=google.com; s=arc-20160816; b=NuYZqMhh/bc2tBAuRBubJCTtuphEglUWQIt4FXeNy8qCBev55IfnWkqqOUBmBM4cDo BWXkVDx4oM9gMDoJ6f7L0FUMrBOH0i13I4jx5q3v0fsmYaX0vbcRg1rkED3L+GD+E8jw Qb3Hh/9KCx7wpTtqYTj2kUepdSCiA1Tf+Wj7I3G8sJN+w2vI/kVgYweojIga/2XIfPaG FZhNvepepyE53rUJ4/6l31R/RsLVEu+X3c7gW407bOgEQlv1YtRD/MHEUl6vAIkHRlfV Dch2Fw3y9JysjWwPruW+F3vcq2Tf8nSqxy5pdtZM4VzJNiTF6QDJdSvJVH8kwPI3v+Qn M8FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kULG8pOF6j41wBUUG8M7GoBq42bx2nu3Fa8BgwSuDdU=; b=IcS1LMUihU3h2M8LZRaSSe+TRum+92jdoq+2K+q7BnNW3O9iJL2YICRE+ho7N5hTdW 5tfry/hMGBLO01sGzOcOW2UayCV6hQl58tcp+GCJr8Vxu0ZeRLYlV9ig8B7rJnasmsvg 3sM405mH53drF/6QJ9zAGDdD4M7bf3BVgNBdky/4khQg0inJN2g9MEmJKWHZeH5x5Tlq lsSoo0kf9Z1b5A+3SLJXWcGY87q4OPPnbWgY7RQIn8SKB/cx2+9Hx8yjFB9ALBBP79SM u0mn2baxE3lISKPu+Dvd46WK6UZKVOZwxb/rw5CWdrYFsdzApKI8F4lYZSGzm2QBVPBU HPUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=w6QYMAq5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a17090acf9200b002369d39671fsi6887863pju.160.2023.04.02.18.49.51; Sun, 02 Apr 2023 18:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=w6QYMAq5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbjDCBY0 (ORCPT + 99 others); Sun, 2 Apr 2023 21:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231382AbjDCBYW (ORCPT ); Sun, 2 Apr 2023 21:24:22 -0400 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501E91FE2 for ; Sun, 2 Apr 2023 18:24:21 -0700 (PDT) Received: by mail-ua1-x92c.google.com with SMTP id i22so19757734uat.8 for ; Sun, 02 Apr 2023 18:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; t=1680485060; x=1683077060; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kULG8pOF6j41wBUUG8M7GoBq42bx2nu3Fa8BgwSuDdU=; b=w6QYMAq5WfJF34MdtpGxNWUC0NcVfmexz/ogm+B3xa+j/KT53oyCFtSwoAFqy75O8S SLkSX7yO5hceO65ypFmlIim/+63eK270bPnUCKvIvUMYAsQZRj9cg98h9n3H15HS0JmO 5e6P1GFjDF9FrC16/pt4gdCwXLRpI8sCIzrUuOqi62nWV1dXY7U4xpnFlSUA6G9gzWvE EvN/O48F8MC9Y8TpzJzIDNep8JmJI0vYiP6zPePW9/ZyK7kOnzewmx1ZjnINP/Dp1Br7 8M6lRi93gZRIC8a/NoHuWdsrC4kYI4CETrXKWAf62b7sXw8Cl6eReqYri85Vr+1fzlbo 6AlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680485060; x=1683077060; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kULG8pOF6j41wBUUG8M7GoBq42bx2nu3Fa8BgwSuDdU=; b=ChxMCPwK0ZhmPjiojxExxsIlJh4Q784MafR2Og8zFZzrLHAGXHPWMIIGQg5PQKzZ7H rS5li0sbFQurPuDQWbFTZXDHlruDkHkkr+O1rmbXnIfG68r9SfPGhY5/YfuD27+HL4Yu n8POiNaet24nhuaInXFxRpzmAB0mshyUW75eKqpjQ7PhzyeAUAVI46IexhQWARWnLC9+ voYCf6g1mT3ufGCxjO2N8pU+pA9ceaZLdXW8WqbJvDsuU8a4RSsnrWNi3rbKo0+866xV A05dAfzeftBQce6gjzKqHblPkUbm7/Ws5yZA2UrhUlgFDdzPjNG9dI2mVQOkIP8fbawa nWgA== X-Gm-Message-State: AAQBX9c+jQjgm3wurz7Nnq4C3zAMNNIQWwMwnKWhfyOVLsOsfpHLXh9H MJyFMqtYrnieYgWoG6wnZtN5UA== X-Received: by 2002:a05:6122:169f:b0:436:1d1c:ebe6 with SMTP id 31-20020a056122169f00b004361d1cebe6mr13820021vkl.1.1680485060276; Sun, 02 Apr 2023 18:24:20 -0700 (PDT) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id g7-20020ab01047000000b0068e4f0409eesm1625369uab.23.2023.04.02.18.24.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Apr 2023 18:24:19 -0700 (PDT) Message-ID: Date: Sun, 2 Apr 2023 19:24:17 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH V6 00/17] io_uring/ublk: add generic IORING_OP_FUSED_CMD Content-Language: en-US To: Ming Lei , io-uring@vger.kernel.org, linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Miklos Szeredi , ZiyangZhang , Xiaoguang Wang , Bernd Schubert , Pavel Begunkov , Stefan Hajnoczi , Dan Williams References: <20230330113630.1388860-1-ming.lei@redhat.com> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/2/23 7:11?PM, Ming Lei wrote: > On Thu, Mar 30, 2023 at 07:36:13PM +0800, Ming Lei wrote: >> Hello Jens and Guys, >> >> Add generic fused command, which can include one primary command and multiple >> secondary requests. This command provides one safe way to share resource between >> primary command and secondary requests, and primary command is always >> completed after all secondary requests are done, and resource lifetime >> is bound with primary command. >> >> With this way, it is easy to support zero copy for ublk/fuse device, and >> there could be more potential use cases, such as offloading complicated logic >> into userspace, or decouple kernel subsystems. >> >> Follows ublksrv code, which implements zero copy for loop, nbd and >> qcow2 targets with fused command: >> >> https://github.com/ming1/ubdsrv/tree/fused-cmd-zc-for-v6 >> >> All three(loop, nbd and qcow2) ublk targets have supported zero copy by passing: >> >> ublk add -t [loop|nbd|qcow2] -z .... >> >> Also add liburing test case for covering fused command based on miniublk >> of blktest. >> >> https://github.com/ming1/liburing/tree/fused_cmd_miniublk_for_v6 >> >> Performance improvement is obvious on memory bandwidth related workloads, >> such as, 1~2X improvement on 64K/512K BS IO test on loop with ramfs backing file. >> ublk-null shows 5X IOPS improvement on big BS test when the copy is avoided. >> >> Please review and consider for v6.4. >> >> V6: >> - re-design fused command, and make it more generic, moving sharing buffer >> as one plugin of fused command, so in future we can implement more plugins >> - document potential other use cases of fused command >> - drop support for builtin secondary sqe in SQE128, so all secondary >> requests has standalone SQE >> - make fused command as one feature >> - cleanup & improve naming > > Hi Jens, > > Can you apply ublk cleanup patches 7~11 on for-6.4? For others, we may > delay to 6.5, and I am looking at other approach too. Done - and yes, we're probably looking at 6.5 for the rest. But that's fine, I'd rather end up with the right interface than try and rush one. -- Jens Axboe