Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934320AbdCWKzK (ORCPT ); Thu, 23 Mar 2017 06:55:10 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:48489 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933114AbdCWKzI (ORCPT ); Thu, 23 Mar 2017 06:55:08 -0400 Subject: Re: stmmac: Performance regression after commit aff3d9eff843 "net: stmmac: enable multiple buffers" To: Giuseppe CAVALLARO , Joao Pinto , Corentin Labbe References: <20170323100828.GC16625@Red> <68200e05-04fd-1cc1-f6d6-f77e9e6f1d9d@synopsys.com> <20170323102037.GD16625@Red> <465dc72e-8a1f-b41f-105f-add2164df6d5@st.com> CC: , , , From: Joao Pinto Message-ID: <3df02ae0-f38a-9184-5ad7-d7afc9b51a97@synopsys.com> Date: Thu, 23 Mar 2017 10:54:48 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <465dc72e-8a1f-b41f-105f-add2164df6d5@st.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.107.19.117] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1613 Lines: 53 Hi Peppe, ?s 10:48 AM de 3/23/2017, Giuseppe CAVALLARO escreveu: > Hello > > On 3/23/2017 11:20 AM, Corentin Labbe wrote: >>> I have a 4.21 QoS Core with 4 RX + 4 TX and detected no regression. >>> >Could you please share the iperf cmds you are using in order for me to >>> reproduce >>> >in my side? > > Joao, you have a really powerful HW integration with multiple channels for both > RX and TX. > Often this is not the same for other setup where, usually just a DMA0 is present > or, sometime, there > is just one RX extra channel. My opinion is that we should not have problems, since the majority of features introduced are used if you configure rx queues > 1 or tx queues > 1, so if you use the default (=1) those confiogurations will not take place. > > My question is, what happens on this kind of configurations? Are we still > guarantying the best performances? > > Also we have to guarantee, that the TSO and SG are always working. Another point > is the buffer sizes that > can be different among platforms. We have to pay attention to the RX buffer size, since I had problems with DHCP messages not being received because of little buffer size. Currently TX buffer size is not configurable and in the future it should be useful to include it too. > > The problem below reported by Corentin push me to think that there is a bug, so > we should > understand when this has been introduced and if likely fixed by some > configuration we are > not take care right now. Of course. > > ndesc_get_rx_status: Oversized frame spanned multiple buffers" > > > Best Regards > Peppe Thanks, Joao