Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3827838pxu; Wed, 9 Dec 2020 01:21:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJymr6X+IippmuN0Ng8PR0Wznu22z/jS/vqTilhK5PJMFoOLGcDcQ47X9bjDCewqhmEqsKUe X-Received: by 2002:a17:907:2131:: with SMTP id qo17mr1255345ejb.546.1607505661584; Wed, 09 Dec 2020 01:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607505661; cv=none; d=google.com; s=arc-20160816; b=d5Voc0hN1BXvJ8gQ2tKU2KEyLPCdOcVAV9FDtsGTXEig4iN7tjFNuhRNmBidESNSmO PUPSe2QHWNvgbNyXkX6DOOmKnH0ietkw9LaO+QygF4XsVuta1vfDWTp0h22/QOuliYzl 4IsQ6s6N/4MggU/LnSxxSk9JxYLpT8B5Evsw+nTPNa2jLCR5LacuUz0ZRQEzJkW2ILE0 K5hxLnuGr/NCWkwhe66QLPPm/kQOe6pFGzji0W1WAyGbgELfgVALiYtd2ZKiqj0Otel2 5o2fAizWswH/3kKfjkYXdrY2nPvhT16vtxjN2ODut1SLOrD1LsO0TWjb2Jt/q64KMafU iO4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rhhiMX6lpyZpBTo++Wq1vgh3A63oG1sQxoZyJsc1aQg=; b=rJmU15XhPiorG/dQJ5d1v2Fz1zYj+18k8CzqyQ2dOx150ptF4jaKlJ/WHXvPeqeQLU epkBs30/PKX7dLruE9wnSZbEI0pp1dAyqGSEW+/Hn2P4xlHzasZRb2RSAPspmveO5OoT 2/ClrffbeJ/ZNxiOLtiPWbajnbagz+xxriM9RI4XUCu82pDovMrjNTpa+xshv8YjDDzs 7mfVu78NCLwdqi8ARUPi30/0lKLOibYUycO+t0zXsclLXdvuMXRyoOObmDVo86Sh5ptf eIMAWH9wOUZxAJeVLpsMyRm+5kf6sxoGxfcQ0yDGaz9Vsm7JMXbEDsNsDGicwFpvzMCm Cclw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b="P8oh5+/u"; 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 n6si428084ejc.567.2020.12.09.01.20.37; Wed, 09 Dec 2020 01:21:01 -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=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b="P8oh5+/u"; 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 S1728509AbgLIJRt (ORCPT + 99 others); Wed, 9 Dec 2020 04:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727665AbgLIJRs (ORCPT ); Wed, 9 Dec 2020 04:17:48 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF58C0613CF for ; Wed, 9 Dec 2020 01:17:08 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id x16so1048547ejj.7 for ; Wed, 09 Dec 2020 01:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=rhhiMX6lpyZpBTo++Wq1vgh3A63oG1sQxoZyJsc1aQg=; b=P8oh5+/uu8rb5ugbhTx6O474H6hkBIwZA2qWENj5ag15EIY80CWadHdfGxQnhTAuMR kbNk5JfBb6loUdVGVyaPVhWtBQ1NjpEdFVcn9tYOFB+qOgEbDjlfscYtu/qIoCbb5Chz 7CiywHUQ67e3O04cgul518A1o0MfGZcqFpTZZnlXt5erd32JVIX/kIoOcJ7E6df5xpPw s6IYn+e1e1RXF/Z/qwRHiSnu9S2JvHXZspsCFFn7MliNwtnecrsJyM+LopbOJALx3N8D G9qQkXTWUv6aPxfla3mKnk96yIxMBMESNCDYDoAhR8RSGIVe6yWfam74imuEnHfJJPwT XFCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=rhhiMX6lpyZpBTo++Wq1vgh3A63oG1sQxoZyJsc1aQg=; b=Mc6ghSRdwB3A6i4FSLPNl8yFlBjpWCkcO2a9uRv6wHNFAtxwTx2R/JQBYJHWCM8oRu NU8M2SPmrILOXLn+UWiPxluGY/+im4qpEIYugqxKWxrszv1bBeCDCozLh+T/TCi4X+wO duqg8et65Nn/T41spsrxfNG3LDFxSUx89O09bpCpaCStnB6zfsT+YnU/ng0sDuYloi0U UeFkE6fZ5heLRacWVM7OagclwiMtuF9QnusHpjASj9qQMO5tdYG88vvTuJgVzFvyPg2g 1pklqICpyJZlXkXTP6o1EHUUF7vMwl3kojAXQxlx18L6nRH4oglXLE9acDl0YvfzGG5y W/NQ== X-Gm-Message-State: AOAM531GsGzCGWzG2TQhdafp+3sFnS0UmHRiTEMRZWixjWGROH4wNfL5 OT6E+nUO/rFRc79EtEbYxLVT3g== X-Received: by 2002:a17:906:a857:: with SMTP id dx23mr1242029ejb.189.1607505427041; Wed, 09 Dec 2020 01:17:07 -0800 (PST) Received: from localhost (5.186.124.214.cgn.fibianet.dk. [5.186.124.214]) by smtp.gmail.com with ESMTPSA id j20sm874968ejy.124.2020.12.09.01.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 01:17:06 -0800 (PST) Date: Wed, 9 Dec 2020 10:17:05 +0100 From: Javier =?utf-8?B?R29uesOhbGV6?= To: Johannes Thumshirn Cc: Hannes Reinecke , Christoph Hellwig , SelvaKumar S , "linux-nvme@lists.infradead.org" , "kbusch@kernel.org" , "axboe@kernel.dk" , Damien Le Moal , "sagi@grimberg.me" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dm-devel@redhat.com" , "snitzer@redhat.com" , "selvajove@gmail.com" , "nj.shetty@samsung.com" , "joshi.k@samsung.com" , "Martin K. Petersen" , Bart Van Assche , Mikulas Patocka , "linux-scsi@vger.kernel.org" Subject: Re: [RFC PATCH v2 0/2] add simple copy support Message-ID: <20201209091705.brzbbqedavtxvhms@mpHalley> References: <20201204094659.12732-1-selvakuma.s1@samsung.com> <20201207141123.GC31159@lst.de> <01fe46ac-16a5-d4db-f23d-07a03d3935f3@suse.de> <20201207192453.vc6clbdhz73hzs7l@mpHalley> <20201208122248.utv7pqthmmn6uwv6@mpHalley> <20201208131333.xoxincxcnh7iz33z@mpHalley> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.12.2020 13:24, Johannes Thumshirn wrote: >On 08/12/2020 14:13, Javier González wrote: >> On 08.12.2020 12:37, Johannes Thumshirn wrote: >>> On 08/12/2020 13:22, Javier González wrote: >>>> Good idea. Are you thinking of a sysfs entry to select the backend? >>> >>> Not sure on this one, initially I thought of a sysfs file, but then >>> how would you do it. One "global" sysfs entry is probably a bad idea. >>> Having one per block device to select native vs emulation maybe? And >>> a good way to benchmark. >> >> I was thinking a per block device to target the use case where a certain >> implementation / workload is better one way or the other. > >Yes something along those lines. > >>> >>> The other idea would be a benchmark loop on boot like the raid library >>> does. >>> >>> Then on the other hand, there might be workloads that run faster with >>> the emulation and some that run faster with the hardware acceleration. >>> >>> I think these points are the reason the last attempts got stuck. >> >> Yes. I believe that any benchmark we run would be biased in a certain >> way. If we can move forward with a sysfs entry and default to legacy >> path, we would not alter current behavior and enable NVMe copy offload >> (for now) for those that want to use it. We can then build on top of it. >> >> Does this sound like a reasonable approach? >> > >Yes this sounds like a reasonable approach to me. Cool. We will add this to the V3 then. Thanks Johannes!