Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp885078lqt; Fri, 19 Apr 2024 13:32:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9otp7V1B+qI1lf+2NRw1zHzCmMBhRV4wPVrnohbNPTtqL790P42LgjlOxNA7VFcEvHel7SmRz9rUL0EJZ0lzfTo0VtYYMdbbGMTw37A== X-Google-Smtp-Source: AGHT+IF2hRz5QxKkGXKxN/Fqfpwvzk9ewpfK/SGPQ+8LC0bPbUWiiJiPEH7EMMkFMNQrGlVEd/tz X-Received: by 2002:a2e:8ec3:0:b0:2db:98d0:fd1b with SMTP id e3-20020a2e8ec3000000b002db98d0fd1bmr2470916ljl.46.1713558758139; Fri, 19 Apr 2024 13:32:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713558758; cv=pass; d=google.com; s=arc-20160816; b=LSkX0s3H0QJj5fow0zRFjJeqP3Pg2omx0kwm1J5RMABa/Ha5xzQRDRk6JsrMcRmqVf 0dNGndnkVUZkkAiulHA1CL8Mw29htWqbrhLXAaYmkdJA3aP1t8vTjnwvBOMWp7ObHVxY 6CAh2CzaalGoqC4OMFNLPacXukdqt0drZMmhvL1Yp/hemus4FCpJqbLhgjIw3UwTXmDE rWmieyWXhFccHinlQ+gb6+J3WFdyclkuuDmdFMc+w1mlJ6fgOaFBBRwTP8C79nFwxZZw 28mrwRkZ4HQM2pnp08JezHgnBYhNTYUQhdAuk2oeFCIyCghRSTOh7UPPecebwP5IcUoN gYRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=G0cS41Zyy5U6mb83WhwR6HBfyljWqoIVRFuxhx9zK7E=; fh=Jv8DfSKHltb638CZ9UrBewHmJGrtwtGuOSL9RjntE2E=; b=IVYxNVdLLnjinOGvTbZc/GlACuy607qRLFAjvcLxX9Fe743HuHrWTzVwuCi5D4mhE8 XTZhIXnWFmIcLJ6lcZ+vSOyWIZ+i5XjzKYypBZIT+W88vUmwNuwpi5P9SKc3QE1Ct+B0 TCcHZiqthdOfEv2G6N243UbJjaXFgO+2mpgj8vp9LmdB18RSQIIqps/vUA7oDx7c1CS0 RCBlDy2EqeGfP7nzTyzTdhEhVsrfM9OmMgaa4D5U3mGTmf99Jia6ZPAqpq2dbYz3Aa7D qxnRFMA6ZEw/Gkqmpa0Hd3eWNo/mEWwBOW6YqvimSC/kvIQYc83GkX57YrLIDHMIiMRI Farw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-151935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151935-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r18-20020aa7d152000000b0056fee551809si2631113edo.557.2024.04.19.13.32.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 13:32:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-151935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151935-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D69FE1F21ABD for ; Fri, 19 Apr 2024 20:32:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD7BC111BB; Fri, 19 Apr 2024 20:32:29 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37A0C101C5; Fri, 19 Apr 2024 20:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713558749; cv=none; b=uu8Xcv8CTeRkdPMmFJuxujbCGqxBc+eTlgU1r6nISBg9p6HGQC0PRD46FKImkSz25ClysL7uRIpUGtYs6B/y4MO8bzw3UFgsFt/rAXLQdEVeg9bEtwHprjD4jVQNfpW0Xi79eE71Q7oc48P1LrN3KwaiyLXNMfO6rMgZFUZzN5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713558749; c=relaxed/simple; bh=iIpahAw5PpHy24asSke5uHmNqC/cfIbo+GffosFW+yU=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=kNAsLDkcZsM+vgLxmJ1ZNlXMHa4yFoNGHTRODtknFtHdXT6KJGTFhyGUBiRfwyGWt6ihDSkAHzd8z7b67/8Hb+cSfeVEfwvX6ybIIjLy9Zd/3JR52WhHKDmhucB+sGColeQYeM3xnKJ8IKl+pC4HicX1uyh82VrjiQKYKj3yf/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (178.176.73.253) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Fri, 19 Apr 2024 23:32:17 +0300 Subject: Re: [net-next RFC v3 6/7] net: ravb: Use NAPI threaded mode on 1-core CPUs with GbEth IP To: Paul Barker , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni CC: =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Geert Uytterhoeven , , , References: <20240415094804.8016-1-paul.barker.ct@bp.renesas.com> <20240415094804.8016-7-paul.barker.ct@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <66667ef2-2e0b-3c31-66ad-d6d6514919c7@omp.ru> Date: Fri, 19 Apr 2024 23:32:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240415094804.8016-7-paul.barker.ct@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 04/19/2024 20:13:24 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 184817 [Apr 19 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.4 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 18 0.3.18 b9d6ada76958f07c6a68617a7ac8df800bc4166c X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.73.253 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.73.253 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/19/2024 20:17:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 4/19/2024 5:31:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 4/15/24 12:48 PM, Paul Barker wrote: > NAPI Threaded mode (along with the previously enabled SW IRQ Coalescing) > is required to improve network stack performance for single core SoCs > using the GbEth IP (currently the RZ/G2L SoC family and the RZ/G3S SoC). > > This patch gives the following improvements during testing with iperf3. > > * RZ/G2UL: > * TCP TX: +32% bandwidth (638Mbps -> 841Mbps) > * TXP RX: +8.8% bandwidth (667Mbps -> 726Mbps) > * UDP RX: +104% bandwidth (53Mbps -> 108Mbps) > > * RZ/G3S: > * TCP TX: 29% bandwidth (529Mbps -> 681Mbps) > * UDP RX: +1290% bandwidth (6.46Mbps -> 90Mbps) > > * RZ/Five: > * UDP RX: Test no longer crashes (0 -> 20 Mbps) > > This patch gives the following reductions in performance in the same > testing: > > * RZ/G2UL: > * UDP TX: -7.5% bandwidth (594Mbps -> 549Mbps) > > * RZ/G3S: > * UDP TX: -5% bandwidth (625Mbps -> 594Mbps) > > These losses are considered acceptable given the benefits shown above. > If UDP TX bandwidth must be maximised for a particular use case, NAPI > threaded mode can be disabled at runtime via sysfs writes. > > The improvement of UDP RX bandwidth for the single core SoCs (RZ/G2UL & > RZ/G3S) is particularly critical. > > Signed-off-by: Paul Barker Reviewed-by: Sergey Shtylyov [...] MBR, Sergey