Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1173450ybt; Sat, 27 Jun 2020 00:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFV69YxDZRdacRLZ2uOr17s+ygvmKivh6t6SOwd42tYFABajkEzaIIWfypHG1AAxlrqqbP X-Received: by 2002:a17:906:5799:: with SMTP id k25mr5926045ejq.540.1593241486271; Sat, 27 Jun 2020 00:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593241486; cv=none; d=google.com; s=arc-20160816; b=jFrEVHBBStKUXsU11sktRtB7rrWcUJeJdhDPHOYlnJ+H5nkckJX0QqAtVJI4wNSKSb I4fUMxznjt8se4kyLHlJSyavIYGIttbBMY4dSN7je2wwAfVLTP1iH72udseMcehNwk7V N1CR3z/C6ijRNFYwrnTorLyU4qcPYj2z0aC+qiP7Yt71J/V9EEXPWd0/iDoaoZVPvDSF 0hQztamUDG99JdzGHPSK39Lhb5cJoAMT2UymhaQ7jXjenuIgHFhNnkQGfCUEBcodupdR 272Xgrmee23gSO7zAeHgmV+SfXZ4fWqG0z/5wNMFDStp68jmC16AopGwDTXej26QY+QG v7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aw7fizir+rkI4T/ozVK+muFq7WoVtJo1ha4UIVGnR28=; b=huhsrUKsXmRX8ue35WdCy+sWEY5K4p1NQRyprGDnunF4UWkr+KbaeGRBF9zS/cm7st 6n+EuM8XOvP7dBijdop2SG7h9+pPiifRAz5ic2qmA7y8vCQIjB8+XU2gpT7N2dVBos4y sHmnQF+XgaF0mcnxW4pKhVYUKU3fPcvLWz5iqRusxCkiADfMuUC4bKAJdtSY54DPPsl8 UZu+PGdL8ErTAATFeXK3D49n+fayxDEaXyqZsAMB5ul9yuCwVIB/BQs1rAVzJt5YAsG/ ov4u8wypB71AE/n0/eKkvaRqG5sHf4nJKzf8L5u7tzPDaDEByD+16vGQXLxq9deQzNNs KAcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 od19si2173904ejb.581.2020.06.27.00.04.21; Sat, 27 Jun 2020 00:04:46 -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; 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 S1726069AbgF0HEK (ORCPT + 99 others); Sat, 27 Jun 2020 03:04:10 -0400 Received: from verein.lst.de ([213.95.11.211]:53810 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgF0HEK (ORCPT ); Sat, 27 Jun 2020 03:04:10 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 229C568B02; Sat, 27 Jun 2020 09:04:07 +0200 (CEST) Date: Sat, 27 Jun 2020 09:04:06 +0200 From: Christoph Hellwig To: Daniel Borkmann Cc: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , netdev@vger.kernel.org, =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , hch@lst.de, davem@davemloft.net, konrad.wilk@oracle.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, maximmi@mellanox.com, magnus.karlsson@intel.com, jonathan.lemon@gmail.com Subject: Re: [PATCH net] xsk: remove cheap_dma optimization Message-ID: <20200627070406.GB11854@lst.de> References: <20200626134358.90122-1-bjorn.topel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 01:00:19AM +0200, Daniel Borkmann wrote: > Given there is roughly a ~5 weeks window at max where this removal could > still be applied in the worst case, could we come up with a fix / proposal > first that moves this into the DMA mapping core? If there is something that > can be agreed upon by all parties, then we could avoid re-adding the 9% > slowdown. :/ I'd rather turn it upside down - this abuse of the internals blocks work that has basically just missed the previous window and I'm not going to wait weeks to sort out the API misuse. But we can add optimizations back later if we find a sane way. That being said I really can't see how this would make so much of a difference. What architecture and what dma_ops are you using for those measurements? What is the workload?