Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp778627rwj; Thu, 22 Dec 2022 14:59:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4UJ522ryTaKOWP8yQzObtdB5fz7D8Hxh+A1DVKBhrw3R57k22LkkT6eG+nZRoAPgylOFK X-Received: by 2002:a17:907:c78e:b0:7c5:f0a3:5d71 with SMTP id tz14-20020a170907c78e00b007c5f0a35d71mr6298408ejc.0.1671749985711; Thu, 22 Dec 2022 14:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671749985; cv=none; d=google.com; s=arc-20160816; b=QzfK4BMpxlV2ZQy/2HM7RFXZKklJDcQnZGXmLKEJwDcRVLZ7o4brLoLLeGWBMcyXqF YpiCbwIGpWO/1au/gHUQOfE0VXj5/ipvo08uTW0PAQD1DKdtwmQApk+jS3t3LP1E+Vws KmkY8thHopZn2AFuIKd30TmHDYU73cthjU+SNjSQLopCEwcTblpg/UP5CgwMa5ORo1JG trgI2b7bL3DXSvq0mX3ZhB5PmbDJGw42BXT7xs4fubu4nCCHdAuihbbc8lC5NpSDT5CI knganl0ebctLVdJpiziGVEZti4E+LSG6KCegO/qbn0beazz3s0P90noWVQELKpAc4kb5 XJ9w== 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=rc9LxVPf5XL3WKCs60iQzZS30eKkxTZdSV5r8b1Fu+U=; b=bw61nkB1IXVCkF5B6/jPACJOUy9PNTMRgBSf9q5bQQDQd7ksWGqU7F0MFmwhhxoqVg 3KduVUSz3CAtzQUW95DVMKXU3SBj/dDVifqZaD6XyP0OddiplNz+To+PUDXJIOdznVPz EcSTSs8WMlBZagWG/4dXxXp0nQYr9NkFW4r6dsYmAQczMTQTYPmJwaD/9Dam1b+/4AQF 6Shq4Fu1CYOOdzzxwGhfW522DiKTeU/qjx3x8iZUOLr/v1VIs4oxTx5Da442jEfnWTlr sbFAxwBLxhLFVYC6JYt7V184phu8xackGqihuvoB8771yyMT5GpLp2Jbpe/AzMydxlvj L6iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Gk/gDH29"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho15-20020a1709070e8f00b007c0fa82837esi1489439ejc.222.2022.12.22.14.59.29; Thu, 22 Dec 2022 14:59:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Gk/gDH29"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbiLVWhf (ORCPT + 68 others); Thu, 22 Dec 2022 17:37:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiLVWhd (ORCPT ); Thu, 22 Dec 2022 17:37:33 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E26A45A; Thu, 22 Dec 2022 14:37:32 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id s25so3326358lji.2; Thu, 22 Dec 2022 14:37:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rc9LxVPf5XL3WKCs60iQzZS30eKkxTZdSV5r8b1Fu+U=; b=Gk/gDH29MZXp+shfYCLODTN2tzejooUPpstdrMMH7j71JttwVnZBf04C9cpjGp2Xmn EyVMtlNb+6SOWnNpXd/aLEzQsnBtWEg7Z7pX4f6ZfwM65VBhCn4mHNUjB500uKOQMgy/ hVq3N08fw0w5GRt5GDOt+DisUi2My65tVuhSjPM35rTs25FEcYIsCDGT8PIAEvy5tKYK bn4/QPBqr249+S1+SJkSH9euzVCRVWwbSZkWoEY5Wg+9dkreiGT5V3MZo9Q37OsTWib/ m0gHKF3ILTxCpQ9j4I8lEQ9cOXsyCnzMsaX6Pt2VKrrUWrTUvSOpUSibKNx17yBLQ8BB 3M1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rc9LxVPf5XL3WKCs60iQzZS30eKkxTZdSV5r8b1Fu+U=; b=ekA4k3w6Vw1qeDn5+v3wkDfUTnkvH77ju2yduQl/U5BICOFB4l0jH9moVQbXZmxkJ4 xPywZsjGiJVaNH9XyR5NMhajEePmZiSoBO8SjxR4bpXvFRF5ZfLcVQD7/XokwVaALJV7 57Kgsk9vcZbWWQylAQzvobI/gfdCotPDybx5uA99Tc/oGK2LECUfg/I1414IUkptmA6e 9AzL56klmoYMVgYoMK4jOgrim//iQ3dWqGdORF+kFyrjrUvW2alcQtpy0kGEYrPHrcPi 8N9MO7VIdfHWrntPlwHxU0XfASqND/VGNXNveGRTUGf9uI4Sr4soWrjBv/EckSdDv6Ho 8k4g== X-Gm-Message-State: AFqh2krcRopC0sFbV/AyDD0V88JoKayNyhVMsw+71mJCFUKqaOAx4peV zdBtrHOu9yVCiSx+MFIKZg6rtdoWTpZ2zpcMfV2BHhTVNjU= X-Received: by 2002:a2e:a239:0:b0:279:f016:4004 with SMTP id i25-20020a2ea239000000b00279f0164004mr733262ljm.163.1671748650580; Thu, 22 Dec 2022 14:37:30 -0800 (PST) MIME-Version: 1.0 References: <20221218234801.579114-1-jmaxwell37@gmail.com> <9f145202ca6a59b48d4430ed26a7ab0fe4c5dfaf.camel@redhat.com> <4f52f323-c8eb-bab0-ffa8-2c53c20d35ec@kernel.org> In-Reply-To: <4f52f323-c8eb-bab0-ffa8-2c53c20d35ec@kernel.org> From: Jonathan Maxwell Date: Fri, 23 Dec 2022 09:36:54 +1100 Message-ID: Subject: Re: [net-next] ipv6: fix routing cache overflow for raw sockets To: David Ahern Cc: Paolo Abeni , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 23, 2022 at 3:17 AM David Ahern wrote: > > On 12/21/22 10:39 PM, Jonathan Maxwell wrote: > > There are some mistakes in this prototype patch. Let me come up with a > > better one. I'll submit a new patch in the new year for review. Thanks for > > the suggestion DavidA. > > you are welcome. When you submit the next one, it would be helpful to > show change in memory consumption and a comparison to IPv4 for a similar > raw socket program. Sure will do, I have an ipv4 version of the test program and a better patch. Initial results are quite similar for resource usage. The ipv6 GC does a good job at managing memory resources with max_size threshold removed. I'll include some comparison stats after I test this extensively when I submit the new patch.