Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2160496ybi; Thu, 4 Jul 2019 06:08:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIAl/T44q5P2ptzptkGVT736zG+MomwVJ5xrOb11ZW6i1+inkgAdZdPgNrp9AXlJ0r7D78 X-Received: by 2002:a63:500e:: with SMTP id e14mr12723964pgb.11.1562245739270; Thu, 04 Jul 2019 06:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562245739; cv=none; d=google.com; s=arc-20160816; b=b0cfkForUnqgE5MTEtrAgL7gDla8AbdyU/lsY5ki1ZtcgAEplV5YSUv9mTBSxt7cBp 9HCF1UOOHQxX7qLDOBXG4mVotzjxdQ67TbYyfm6lo+8gYoz1M76YruhuMnNo36MFvbaI lTSOmw98MFDH5+pq58VhdP1Sv01gxfs2SKu+7M/lsrrMvdH0ae2+UQ2hyXOFU2r52XVQ mx2dpQXv7FbEWH/ISnhqjLghL1Nb/TA5N5kZTcXfv/Bo2TKocOGR69lCGBFfZNYe5wpo ffB/iiGXurDEinK6qV45XysPjlcmXMFvFBqxAs18swqgLdzqahAdQ6Rfhb/0ec2Xs5SY M0ZQ== 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:dkim-signature; bh=C0G7rBJyorAv/Go9XW+5KlxgxsrwAo4Lw8h4E0AK/9g=; b=R2gRAue0a9ggcjHPmVR7/L/wbnpSPs99SOO9CQG5oZfAHlCYaZ8ycDjSTlBlqpaW5H EUMIEcNODDy+XQ4OMa+iPFr9uFZABBuuTUqRutEbHUAkv30Hd8UoLwoM2seLFRUhgSLT hn/lgxlb+HQFsbP9axS6Pu+/JpYb/gYbAaHEgXKNZXbHByH8SiCoTfkLRcUrxjFXCsX7 tP53rouYqXeLrHwvU516cTWUOk0KOwruQMbqAlpZJYAT4ZlNCOhyfYMUnVIjpv2HhY8A ZBnmQRk4GL67zqki5V/mQN0TyJVpjokMDYUABaG3dhKZqfTaw6Bk9zuhW7vykw1q6U7M LNJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MhGHCbNx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si5554276pgo.350.2019.07.04.06.08.43; Thu, 04 Jul 2019 06:08:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MhGHCbNx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727342AbfGDNGl (ORCPT + 99 others); Thu, 4 Jul 2019 09:06:41 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36752 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbfGDNGl (ORCPT ); Thu, 4 Jul 2019 09:06:41 -0400 Received: by mail-wm1-f65.google.com with SMTP id u8so6114108wmm.1 for ; Thu, 04 Jul 2019 06:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C0G7rBJyorAv/Go9XW+5KlxgxsrwAo4Lw8h4E0AK/9g=; b=MhGHCbNxmBGEX9gNxaF9U5CCJT+qFuz/qiepbdulPX4tk3cpmHk4Nr1cvq+wO4v/6O +ybPFIWjxCRzO1VplawtIKym3JIWT6EL6KCC/kXweTg1xEDf6xWNuutL6xnTVP49ECPa 2IkTuBaIC5U5cDvAdCksqgV+emWw2anAu4XaajfBHQH+ALVYgz1c6h+ms+nDnaWgQOva rqS7dM0i2zAeunc7L6TMtRFiWjbF3j2AT0T4kRNj/OsD5XYRsUZqdy268I4EZYTBHRYU uIRnNbFdGgRz8D3Ch5iqC9sB+WrvfT8Jn9Q1LiX+atRzygQnXvRv4EHdOsgMgxoxXFdA tX1g== 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:in-reply-to:user-agent; bh=C0G7rBJyorAv/Go9XW+5KlxgxsrwAo4Lw8h4E0AK/9g=; b=MLwkvX3BYr/+D6as1aRWgc7rG5ZzbDuQWe8WVCOleHSlvl/bfQCl2mBjuFEWefDLfi s7D4dxndsEIUxy4CyeXzoF6DQ5Bbh9cVLGBdhkUriaen6Fq5kTo8/XCZHg+GqvXHUYuW gmqa/neysG+tV+YkUN722xcLO6ef2BY/Qa3wZ0CkrNpXJ8VpZMoGZsMXfAAyA0D5CNV9 SS+y+Mp4YSnR62KNzccQKJmiIWWKF9Ndo4WAcz9y6OeonRkg6Q3smbr7+1feUj3pyb4E NKtGWc0746BlvW1DBlhbAXElbK4OQhN9tWBmODJde8sK9RkpG6cErho8ZgRrrOzgh4Ew wrew== X-Gm-Message-State: APjAAAUw4ztYZAYK20ul0uxLS50gNEzLAhjd05r59UpkQOLHZVkfHcx/ RHvt+VgIdG6kDRgzifo18P/LPA== X-Received: by 2002:a1c:7c11:: with SMTP id x17mr11648016wmc.22.1562245599046; Thu, 04 Jul 2019 06:06:39 -0700 (PDT) Received: from apalos (athedsl-428434.home.otenet.gr. [79.131.225.144]) by smtp.gmail.com with ESMTPSA id p4sm4889734wrs.35.2019.07.04.06.06.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2019 06:06:38 -0700 (PDT) Date: Thu, 4 Jul 2019 16:06:35 +0300 From: Ilias Apalodimas To: Jose Abreu Cc: Jesper Dangaard Brouer , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Maxime Coquelin , Maxime Ripard , Chen-Yu Tsai Subject: Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool Message-ID: <20190704130635.GA10412@apalos> References: <1b254bb7fc6044c5e6e2fdd9e00088d1d13a808b.1562149883.git.joabreu@synopsys.com> <20190704120018.4523a119@carbon> <20190704135414.0dd5df76@carbon> <20190704120441.GA6866@apalos> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jose, > Thank you all for your review comments ! > > From: Ilias Apalodimas > > > That's why i was concerned on what will happen on > 1000b frames and what the > > memory pressure is going to be. > > The trade off here is copying vs mapping/unmapping. > > Well, the performance numbers I mentioned are for TSO with default MTU > (1500) and using iperf3 with zero-copy. Here follows netperf: > Ok i guess this should be fine. Here's why. You'll allocate an extra memory from page pool API which equals the number of descriptors * 1 page. You also allocate SKB's to copy the data and recycle the page pool buffers. So page_pool won't add any significant memory pressure since we expect *all* it's buffers to be recycled. The SKBs are allocated anyway in the current driver so bottom line you trade off some memory (the page_pool buffers) + a memcpy per packet and skip the dma map/unmap which is the bottleneck in your hardware. I think it's fine Cheers /Ilias