Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3163043pxu; Tue, 8 Dec 2020 05:18:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz2EUl+UdeAc0EbiAwgpuxpJ/DGIRrsiPRy1yHHMicmJNfyEbohCVIQOspNgjVua1PVpC1 X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr22955418ejb.277.1607433493981; Tue, 08 Dec 2020 05:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607433493; cv=none; d=google.com; s=arc-20160816; b=aRf+iSO2PtLqNv+JfcdUMrqjeRU5Gl285AoE/srBqlLOmmPRyjXGuT99i8U0NDpBFu tgNkB7Vdw6FFzrXvF8TiD2Y/RHHzLawxYisNwnPkLqOFBrXhC+9GcyP7J9iL8gPAYubz 0ZgUnbJBbOI5lxCJSoyoTzb2T1k+SsHbyk2ZPF8XJlJc65OB+KeQrEYN6ActUoTXX1P7 92mSqDZvNa7yP6VHbrCsWWk1RC33xNWuk+O/OQcyCtQZ61XU2KODjfY1WUum6RPER5A4 fj0e262dqotyQa3Z6/fXb9lXEKZZ/pGK3fYFy5j3ltuU1qAeZa8LRujKFhke5pOidr5A lkig== 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=4H0t76z3d9Gm8+rnlsRXMej2iqZW90QwJGGNcAOGfNQ=; b=wcuB7XslPZSBnPOxhKpw5ktPXQwMAm22za51Vx16lIEdZ7vyzwJSzkzBKsnzJG8Yp9 vl1z8LREsJKHuCuzKzuz3a4MvMzKMXJnT2VRbi1tdi1cqNTEspj1LNMtQnIRVc70/gRL eRg4c2NEp1YhDhyvcGZx+xrs9JTkzx/Tc+7yXJ2Y+dUit1U61cvLnnJLKsyO4aJHwI7l YXJZyhCeLf0VQqdSGIJpDiLApIzkMVog9JjIhJDwzkdn+eLAu+bU9xDkpOUrOL2LPm4B IFR7aRGNlBW2ylcSBwhXc+qK3wBqJgvTUiqjf3+k12sscr5NG96ehsuE6dnBbpUOB/Mu eXAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=JAzSmLxx; 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 w5si8701641edf.510.2020.12.08.05.17.51; Tue, 08 Dec 2020 05:18:13 -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=JAzSmLxx; 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 S1727554AbgLHNOW (ORCPT + 99 others); Tue, 8 Dec 2020 08:14:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgLHNOW (ORCPT ); Tue, 8 Dec 2020 08:14:22 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B139C061793 for ; Tue, 8 Dec 2020 05:13:36 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id h16so6210096edt.7 for ; Tue, 08 Dec 2020 05:13:36 -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=4H0t76z3d9Gm8+rnlsRXMej2iqZW90QwJGGNcAOGfNQ=; b=JAzSmLxxgeFhhHjbJmv4czCcTVN37dDptyYJOl2vbRL3Kg0Eda4yv79sD8kMfO0W9S 755X4aNtjn8/PDQ714OSMQWmUEpi3o2kj48M0Pau3F+eON22OEuSEQSgv+ssnT/+K6eC 5aj7Lne6pqgTUjZ7ZbBS/DFNldcQ4aFV/HcS5eZwxiOlFpf0/ZDx99a28W3UW/PBlcL4 +BweyvMen5WEQ6Zi/Y52ky0t+B/lP2/Sm1hV4x59IV2xMORTLdcltLMa+0e7nQqg6sg6 wcabTKaDzHQcnkkWBuazi1q1wH8oXbHxXekHtbytDm2B0X1FmRK+IbhrMf17qT6GBY5i 8rvw== 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=4H0t76z3d9Gm8+rnlsRXMej2iqZW90QwJGGNcAOGfNQ=; b=m8Z/TLVEwfG1Df6sEN4Y6/y8bJAlKSfOq5TG3zSCM1QRbZ1E59Tm+ZlwJJUn442AbG mMtHx7+2FpzopA5JoA/cmCpwaJV6yBpPW1hbsx+e0BA55DtA7Uhsu6kS52AruFx8/xMp /uP3Ynq5akyEP5WD6QyFa8lnFc5fjc7qbVbx6eSJ6KUE7x40xBQ1nVTboRHVyhbCnqTe N2xdTs4NEBCdD5KmicbQE28WcQoz7e2leGf2+hnDUJos7XrxRcRKQFqhgEsKxl00wtk5 XVWHReu8Rpvafk1J0I+2pPVeXN/TihFDwcuaLfUeKzzplNQcHbaq9vBpYMwNguYf1XHd UkeA== X-Gm-Message-State: AOAM532DxQ0YVZpNzYelayD9q4G3uy5Pz3y+Tmnikitpjm9VTK8JZRX2 F3RtZmlzE7+KbaQOkOyRLwsalg== X-Received: by 2002:aa7:dac5:: with SMTP id x5mr25105016eds.198.1607433214946; Tue, 08 Dec 2020 05:13:34 -0800 (PST) Received: from localhost (5.186.124.214.cgn.fibianet.dk. [5.186.124.214]) by smtp.gmail.com with ESMTPSA id u5sm16894960edp.5.2020.12.08.05.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 05:13:34 -0800 (PST) Date: Tue, 8 Dec 2020 14:13:33 +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: <20201208131333.xoxincxcnh7iz33z@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> 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 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. > >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?