Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3045758pxb; Tue, 12 Jan 2021 05:09:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0yO+G2vupzPuZjJaOmz65y2UEj+anqoQ6Adx0WZ1QTPhVwrR7D49VxpssHKV5932cV1t+ X-Received: by 2002:aa7:c84c:: with SMTP id g12mr3318316edt.193.1610456991098; Tue, 12 Jan 2021 05:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610456991; cv=none; d=google.com; s=arc-20160816; b=w4IVDBROvo07Xto+AeKQE+1DKHb85abE+JhdGVe6TZ+zt3DySmmemU7lBqsWpwp95Y zFgydSHo3ijsiXSw/WMbIHf7bvrdFRLGiLiAlh8gNCye9t29r6K2AAMHzXzOT0ca6sUo +SMZS2r4sqGntZVKFLSUKibaIjWcBgdrRiz11YFBevezk9rAwqY6CbzDwQJjt38wTdA2 oRNZjYOmzwXwJx5W+gK4EXto5K7TaXMB5U/6rli+kZKTwozLau81d7VgZ/OwRBc+YrJu X6S4RDn/0nt4wOFqfN/kOLyq6yokEJPnoUuL4QyISzB0+tIgx4zuJ+AOUHk7YQ4mLRty CtRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Of78Vmc8hauFqd9I7zupUdsPMLB4WSeLIFBQZhkt6D0=; b=ihxrGsty47WGsOZ/KxK1MEyMiauBGIjHJlpj8iGIAM+TFtWr+0PE+rE55Tb+GEHY/1 bDSiAfQ8dI5IO4ZoQg7lGpPUFGLt/sPIHz17M+pEVOs48BqpQm5VeMx/cWJZmWgLSJYH n4gBKYSnvmSN6LlkLHxT3fzmSkfVVJVn37SwQ/24DqOIz8pKJ91rSgbRt1gCqsZtAT2C EY5FgCZYTnUO0n7q132oCiFjlsdzZLpzScAVld9WvnVj6PBGGJ841yYg3ZqoBhzaMso/ clErmYKoMlWH90kI79UzcyoiMApcf6Qgx6Ts7ArAgN3e28Cou0kpE4gOsEx/VWCS3xVO ppYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MKW2IKpp; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si1029198ejc.524.2021.01.12.05.09.26; Tue, 12 Jan 2021 05:09:51 -0800 (PST) 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=pass header.i=@google.com header.s=20161025 header.b=MKW2IKpp; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388195AbhALMdt (ORCPT + 99 others); Tue, 12 Jan 2021 07:33:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388134AbhALMds (ORCPT ); Tue, 12 Jan 2021 07:33:48 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 604E3C061794 for ; Tue, 12 Jan 2021 04:33:08 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id z5so3528828iob.11 for ; Tue, 12 Jan 2021 04:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Of78Vmc8hauFqd9I7zupUdsPMLB4WSeLIFBQZhkt6D0=; b=MKW2IKppYfWC8TX5Q9Cc26aDS0tUhLFPNRZ8DYFW6JKZxT9nhFFRNcoxJFp26Q997M GIAsw6oPGFbk+L12zZRfygAWffLL/ik6B7anx9Zo3V303ga1AwpRUJVwF3N9BcWrupBw 2O8riPClVVLPU0baIWY7uACtS9lnME9uNhnVveUAkjLxeTy6Qek5bYLvuf8Ep1SUairF CznXKsoePlneK0AxhyXfMYoH73CuH91FGivryh1zTuYaVDBCWQXp1Vu2bogGFmr+re5b CrQRe7GFvBB+/LCcG+6OyWS/kcCd+yIN9ekfHj4ZJmvfprAgyl3skiRIjINvkCV+7Zbf 1wyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Of78Vmc8hauFqd9I7zupUdsPMLB4WSeLIFBQZhkt6D0=; b=PNFdJ3pFwaJw5HHvGNeJ8iaVDCwopWwKWo//X1QPtTA5XUhKE/nGZSIHr1cDMYSzpD p6vm5udJw8Q6aJmq2hBdUxGIeVAL7SFhbGNCnKoFjIV2auWArDcFeTH5+5oQtefdkSy2 kfoc5ZsIVKHcYBgodCY96aGcO3AJlw5Pzsfwpm+7BuJSdvHYjwLy/PzKMKnft1aNLZv5 SMptqrj8Hvirg8GQ6Tbs3Xuzwaux4b8hDeFusz5r83G9IfamhZkwwvzC+IQQ0fhMKYo8 OLf39Xc7qVXbNnZKgPKY03gsdJs1FoJWnkWvcfbkaI26qTMYWFFWHWfakm7sJXBs++Kk kPuw== X-Gm-Message-State: AOAM533x4Rip3pdf7viYYdlGz/51JOsNjcv/NlQw5VGkKBR6r92XNR4K u2fYJ0grVUQLRMKTvG1FEbGvuflR90sUwCYflGx4UA== X-Received: by 2002:a92:9153:: with SMTP id t80mr3776680ild.216.1610454787513; Tue, 12 Jan 2021 04:33:07 -0800 (PST) MIME-Version: 1.0 References: <20210111182655.12159-1-alobakin@pm.me> <20210112105529.3592-1-alobakin@pm.me> In-Reply-To: <20210112105529.3592-1-alobakin@pm.me> From: Eric Dumazet Date: Tue, 12 Jan 2021 13:32:56 +0100 Message-ID: Subject: Re: [PATCH net-next 0/5] skbuff: introduce skbuff_heads bulking and reusing To: Alexander Lobakin Cc: "David S. Miller" , Jakub Kicinski , Edward Cree , Jonathan Lemon , Willem de Bruijn , Miaohe Lin , Steffen Klassert , Guillaume Nault , Yadu Kishore , Al Viro , netdev , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 11:56 AM Alexander Lobakin wrote: > > > Ah, I should've mentioned that I use UDP GRO Fraglists, so these > numbers are for GRO. > Right, this suggests UDP GRO fraglist is a pathological case of GRO, not saving memory. Real GRO (TCP in most cases) will consume one skb, and have page fragments for each segment. Having skbs linked together is not cache friendly. So I would try first to make this case better, instead of trying to work around the real issue.