Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp462907ybk; Wed, 20 May 2020 04:12:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXYzHG/Rgn6cevCR5ITvovY7BhNgCLMSEEoXFOBadHCdDNmNSHrWDRG/d1DEhAxI60gl6E X-Received: by 2002:a17:906:a29a:: with SMTP id i26mr3051523ejz.199.1589973174156; Wed, 20 May 2020 04:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589973174; cv=none; d=google.com; s=arc-20160816; b=ckiQ3Z8327AiXRYEXgufpeo5gfikzu7Rqi3Satgr2pt09qYYtyWRRxsktga8pSSAf7 SjBSZSO+3xsIGb2sMSnRsRCW2hJDKXAftHFK8oqSsAZRyxOBPIrq54NfoTNAUJ+nT3Hb p6NO81ExSJQhJQZz1V3G1ypTEaryZ3SuQ57pT6Sxafav3NABeQj9THwtmpRKQu4lPluu qZUuLabaTBP4MMVkl7bdJARWPhesd+iyIuf9KntT3Fh3L0BVqtqxHrFZ9WTsjxOZuc+J CiOHYTsdPl228+AXxDC1EC2/cOhjt0i4hKXtBsAKuvnf3kotmIeuj6EdIBmXlTw9M4BM xnvg== 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=fqAPOef1FCKiJ9FRH0Qh+OpmYPyKJB/Y/621HbuNJf8=; b=aKH8k7jaHb2wg/ntzarvS3nQnD2y0MDWmcbEj3IFqcogfXw2VAKHGjDLCU/WZgZu+A xyEjBO0QfoOq0h8dYyAUR9zHmOFivzyTGCL5BL8TPRSTE7UpGsx6d4wWsgt25W4BCnXJ Zpn6Z46RHVMx4i2MixAsKltJ1oV11NKKeKBkBRd/oQ+6gFLFV8a30SGpw8Q7/LiGOvUc ezd38maUeYr+TLMlB0fnwPcdUuTMJdZDTZQCw1rKcTeZd7Pq/tNOJ0MWMn4m2D/8pYNx b+A4pFdFPbj7b92JJHjQPXfs+oYkiqKu2GehMtpDxDWd99/Rw7Xp12jTUFDO1ya9MZ0q h4Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=yfGkXWAr; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si1182657edq.318.2020.05.20.04.12.31; Wed, 20 May 2020 04:12:54 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=yfGkXWAr; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbgETLLE (ORCPT + 99 others); Wed, 20 May 2020 07:11:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgETLLD (ORCPT ); Wed, 20 May 2020 07:11:03 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CDBFC061A0E; Wed, 20 May 2020 04:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fqAPOef1FCKiJ9FRH0Qh+OpmYPyKJB/Y/621HbuNJf8=; b=yfGkXWArmbY+iLvUrDmklOTlU St92ynHs1LubA3CEHH8Wc2a5MkWi1sXO+mtpfg7jkQWGPcL14hs9zMYUbT2bpIae7vD462fejGVxg SZVGBvy1djwKgIrWjd7/TVTGDvTWW12TJqxP/cyEslpYEsUTRZYmaWNAeBlOvwoDipBJthx0JYRhn f75f6mxd4junUM+EuAvrTwgTf61b1YGvi4XcrK6tjGfAiXdPJ8yWsOAK5a8CzS7nWQYonqEx6bofp 4Pd7Y8Ug140rODcHsw4zBF0p3Lrot3c7qpOF8fqFpNBNSNxJTodujLujx1/VbxJxwXELGPIvvBWOe w1D/ATkCg==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:42644) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbMcd-00083m-VU; Wed, 20 May 2020 12:10:52 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jbMcV-0006lw-Ja; Wed, 20 May 2020 12:10:43 +0100 Date: Wed, 20 May 2020 12:10:43 +0100 From: Russell King - ARM Linux admin To: Matteo Croce Cc: Antoine Tenart , netdev , "gregory.clement@bootlin.com" , LKML , Maxime Chevallier , Nadav Haklai , Thomas Petazzoni , "miquel.raynal@bootlin.com" , Stefan Chulski , Marcin Wojtas , "David S . Miller" , Linux ARM Subject: Re: [EXT] Re: [PATCH net-next 3/5] net: mvpp2: cls: Use RSS contexts to handle RSS tables Message-ID: <20200520111043.GK1551@shell.armlinux.org.uk> References: <20200423170003.GT25745@shell.armlinux.org.uk> <20200509114518.GB1551@shell.armlinux.org.uk> <20200509195246.GJ1551@shell.armlinux.org.uk> <20200509202050.GK1551@shell.armlinux.org.uk> <20200519095330.GA1551@shell.armlinux.org.uk> <20200519190534.78bb8389@turbo.teknoraver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200519190534.78bb8389@turbo.teknoraver.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2020 at 07:05:34PM +0200, Matteo Croce wrote: > On Tue, 19 May 2020 12:05:20 +0200 > Matteo Croce wrote: > > Hi, > > The patch seems to work. I'm generating traffic with random MAC and IP > addresses, to have many flows: > > # tcpdump -tenni eth2 > 9a:a9:b1:3a:b1:6b > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.4.0 > 192.168.0.4.0: UDP, length 12 > 9e:92:fd:f8:7f:0a > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.4.0 > 192.168.0.4.0: UDP, length 12 > 66:b7:11:8a:c2:1f > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.1.0 > 192.168.0.1.0: UDP, length 12 > 7a:ba:58:bd:9a:62 > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.1.0 > 192.168.0.1.0: UDP, length 12 > 7e:78:a9:97:70:3a > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.2.0 > 192.168.0.2.0: UDP, length 12 > b2:81:91:34:ce:42 > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.2.0 > 192.168.0.2.0: UDP, length 12 > 2a:05:52:d0:d9:3f > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.3.0 > 192.168.0.3.0: UDP, length 12 > ee:ee:47:35:fa:81 > 00:51:82:11:22:02, ethertype IPv4 (0x0800), length 60: 10.0.0.3.0 > 192.168.0.3.0: UDP, length 12 > > This is the default rate, with rxhash off: > > # utraf eth2 > tx: 0 bps 0 pps rx: 397.4 Mbps 827.9 Kpps > tx: 0 bps 0 pps rx: 396.3 Mbps 825.7 Kpps > tx: 0 bps 0 pps rx: 396.6 Mbps 826.3 Kpps > tx: 0 bps 0 pps rx: 396.5 Mbps 826.1 Kpps > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9 root 20 0 0 0 0 R 99.7 0.0 7:02.58 ksoftirqd/0 > 15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1 > 20 root 20 0 0 0 0 S 0.0 0.0 2:01.48 ksoftirqd/2 > 25 root 20 0 0 0 0 S 0.0 0.0 0:32.86 ksoftirqd/3 > > and this with rx hashing enabled: > > # ethtool -K eth2 rxhash on > # utraf eth2 > tx: 0 bps 0 pps rx: 456.4 Mbps 950.8 Kpps > tx: 0 bps 0 pps rx: 458.4 Mbps 955.0 Kpps > tx: 0 bps 0 pps rx: 457.6 Mbps 953.3 Kpps > tx: 0 bps 0 pps rx: 462.2 Mbps 962.9 Kpps > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 20 root 20 0 0 0 0 R 0.7 0.0 2:02.34 ksoftirqd/2 > 25 root 20 0 0 0 0 S 0.3 0.0 0:33.25 ksoftirqd/3 > 9 root 20 0 0 0 0 S 0.0 0.0 7:52.57 ksoftirqd/0 > 15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1 > > > The throughput doesn't increase so much, maybe we hit an HW limit of > the gigabit port. The interesting thing is how the global CPU usage > drops from 25% to 1%. > I can't explain this, it could be due to the reduced contention? Hi Matteo, Can I take that as a Tested-by ? Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC for 0.8m (est. 1762m) line in suburbia: sync at 13.1Mbps down 424kbps up