Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3007915lqt; Tue, 23 Apr 2024 08:03:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPWheKNAAPbRcOoHBtg79WwoKK2Bs25JMLzPLnb9XVf04J282lLrQQIdgyKRolnlxmd1WSAlG0c6QGyWgeaTHO6dcyBl9Hlt7Qzlk+RA== X-Google-Smtp-Source: AGHT+IEjG+DqLupSOq4kRX/Gs2c4fDYQchO6kRPP6ECG6zuA2j3yunTKqiq/U9Wz53AB0O6LRLi1 X-Received: by 2002:a17:906:f8c5:b0:a55:766b:8caf with SMTP id lh5-20020a170906f8c500b00a55766b8cafmr10297963ejb.6.1713884632650; Tue, 23 Apr 2024 08:03:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713884632; cv=pass; d=google.com; s=arc-20160816; b=Z696ocDg/Ri96GTJxSffAEtHwO+JgtB0h0D/p/Upkis0Mvzha0qJsueYLa3OGYPa7u hccAqnKo2hElqM00DfIeWZ+FCmPOVim6FATzujiG2BoYhvob8VueAelaq5uqkwW6rP8E NRrHK2lNz62Tcv0siw2d3oYwk9IBv+2ttwcBDmHREv413ffUEPlkxktpN99D9bxw34ss dVTroXQ8MecT+o/OSNCqABzPTBonEEw/f2KxPuWBauuuhFLuEpcYSHXVWUyPC1+A8wY5 2tqeb7LBmuNq0BXet7vA7ult5xj0fq289FACvzvvT13jIwqQT3jz7a15bxmRo4iigewe rsPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=t55blSiahST1K8QTlJeggNXZufsZ7cYVP3OVmHpdZ2o=; fh=RgA7OVqETRkm8omcSVYSLANNj8rCxYNOJJBXx5bJMi4=; b=pWFU9+ZK3W/dtU4O/SXY6BaNEiFGNSGrChnNrn8cCEwZ5HE5ZwoaV+i+nbSuGqP9aq rdH45EaaEbJkTdiq7R0V+L7U+hY2os85BinJ7ZwCyGWENTewIn6H1jli5eXcN/MTOP1C fbx5S/d+eAet6sK0LXFJ6y7K6Z6u18HIyXXpV9xAvGxE9+Xl3cl2Mh0JjHvQhrw5zjiU hFy6tFm2HfinbDN5BnPYDCvRCZ+OHO43F3yXREtNpg9ixHTscrKNRKvQ6xMFoXlHwfNj m/12qFuyJbCLyRRmKj8vQODMoH3p/rAhaKEvRlLURBdVTj3PJQvXnLJCItjQoNgoqy1A IumA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LRKw3MN+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 z5-20020a170906270500b00a51d90f6b6asi7103599ejc.729.2024.04.23.08.03.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 08:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155416-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LRKw3MN+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 29E151F23433 for ; Tue, 23 Apr 2024 15:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9509C13C9C0; Tue, 23 Apr 2024 15:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LRKw3MN+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46EBD13C69A; Tue, 23 Apr 2024 15:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713884602; cv=none; b=dbI9AsO+P1gwpnOVfRh2VGkFv+3g1Y95pMxMB17IIDskd8LRvMKos44a5BP7esZxHlzg6apMQJADOPx9LxGfINuzSdL9qyrEi3tc3j8ADGNEOyC4LNoz5comRNS4iGw3Nlqa9ustNmMvGfDuNXxW2D/lrXvLbkG1Xse+WJ60hNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713884602; c=relaxed/simple; bh=rXF2vz4uK5Xl3yr0fnyG4Hh3/2Am/UC88pXu/D2wJxA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WOspRaI8Q43fDYiWdgzObn86UZehx5hHV/LEB02ZJlO0mN71jeWadyz9BpObEsfoxO8BL9MPQPMl5LXcLli7RvVBV+bscXs044nATl/fUB/1Tx+CfHEhU0xasaLnyhvofnGtYKMhFs0qobuDbId8YA7kAWaeoqEa5Y8h56Csv+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LRKw3MN+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E2B3C116B1; Tue, 23 Apr 2024 15:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713884601; bh=rXF2vz4uK5Xl3yr0fnyG4Hh3/2Am/UC88pXu/D2wJxA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LRKw3MN+nfIFP4OFkRgjyLXJBvAol+Mx4tC2jL2BgABZ/X9aBOcGpG+DtVLkMtFw2 1E1N70diol1uuIU6I+JDs7bfImsg1CAyT+DM3uSQrZ1RnmqFZ9XarRrBSuah1ugPaj Uxlv9BqsgG0nWUbxm20DKITANTRk7zUVWouhuHzI1ox0IiDWK0ji1tAsBpGtjfZtHe A/Tk+dqA/RKBMLwyf1ik9qbZ0v0DdPfLBelHwS/a7tT+bTDk9aWS/cHV+JIZFqYixd Xcae8mEWDNL1XvhJHWSuu9DqTyTIPc2mrS9nRCnP5Mnd+5Jn0E0/9FdVqXwPZmL5Kp YrGYLy3czdLAQ== Message-ID: <7537ed21-4fc5-47c1-9c06-58982a308419@kernel.org> Date: Tue, 23 Apr 2024 09:03:20 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] net: add TCP fraglist GRO support Content-Language: en-US To: Eric Dumazet , Felix Fietkau Cc: netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org References: <20240423094117.93206-1-nbd@nbd.name> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/23/24 4:15 AM, Eric Dumazet wrote: > I think we should push hard to not use frag_list in drivers :/ why is that? I noticed significant gains for local delivery after adding frag_list support for H/W GRO. Fewer skbs going up the stack is essential for high throughput and reducing CPU load. > > And GRO itself could avoid building frag_list skbs > in hosts where forwarding is enabled. But if the egress device supports SG and the driver understands frag_list, walking the frag_list should be cheaper than multiple skbs traversing the forwarding path. > > (Note that we also can increase MAX_SKB_FRAGS to 45 these days) Using 45 frags has other side effects and not something that can be done universally (hence why it is a config option). 45 frags is for Big TCP at 4kB and that is ~ 3 skbs at the default setting of 17 which means an skb chain 2 deep. 1 skb going up the stack vs 3 skbs - that is a big difference. Was there a conference talk or a discussion around tests performed comparing use of frag_list with MAX_SKB_FRAGS at 17 vs expanding MAX_SKB_FRAGS to 45?