Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1131901rdb; Wed, 6 Dec 2023 09:22:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFP4p2nd4KPuP+0FtgVWoQ1BVVqpt/Zt5ST61bO6WEWi2scAISHCHk/nQR8GUn99JmZkZ66 X-Received: by 2002:a05:6a20:3d93:b0:18c:41cd:c77f with SMTP id s19-20020a056a203d9300b0018c41cdc77fmr1332644pzi.45.1701883319642; Wed, 06 Dec 2023 09:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701883319; cv=none; d=google.com; s=arc-20160816; b=DzBBVgToXtf7MsorDqdgwI0Q/8t3BWx6A/Wexcm0rZwjWGS19ai439En54OH4PqHW8 5y9+86WRUVyGkhrxYMCzT3rtongbObnSGxFdBICIihQAuo3MB0aqXyAdt0q+n07tmxoK ZyEYrWg4CJOfZELUkhtjPdQodITD3b3fvXOmtrlbzbiQ1o41VAE0PFLI0Fiy1l4msBz9 nvHx1htQ96ztCDqWpPvDc6j4NcRP83gMRQGXTzx8x50WtLTfHt9e7t1iwoNazAz4YEyo uSn8pRVZNtf8ls3X+30cKafj+7123vtyu1zRRCpxAz3WxgtdHSrHOvheMuEyveT4enWm Ov3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GaGi8ynGM0sSJk2cTHVa3nEhLRrFYa9iM9DZek/jE/U=; fh=6Bdnw74H8Zp7lCYNVgBUD3FyE6gbkEzA3OfQSbK15f0=; b=zDEKrs4Q6lYKV/qC34L4lZETtLoSLaTdJL6ZWA55iuDAZogRQksVgJjnceKAPX1Eph JpEjY4JfCpWqzviasn0u46cfko0QrCZUYaUlkFaRdsxj7XH4mrvksl1zEm8jqbnINeaY ar7+wVqglh+z9bq//fixXB8DvJFvfCOoY/DkRHGPMDjb6Gejz/9WCBU/UZaQ9GyIT841 VrAxyrL8OiJc3WzvjkfpveCjYpn3JS1eFIWtpgP1lTbEG87iBvdaPzTNEEm740pn85cJ WQItfyYXf2yK5iFHWASK/u149mXI5IY32M9p8fxVjVkVcRQNpiYtUgySD3DacMc7jSSz icFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WNZGEuQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z30-20020a056a001d9e00b006cea0a1f7bcsi224170pfw.398.2023.12.06.09.21.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:21:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WNZGEuQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D770780293D9; Wed, 6 Dec 2023 09:21:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229594AbjLFRVm (ORCPT + 99 others); Wed, 6 Dec 2023 12:21:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232446AbjLFRVg (ORCPT ); Wed, 6 Dec 2023 12:21:36 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09DE5D4F for ; Wed, 6 Dec 2023 09:21:42 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-54d712c254aso49085a12.0 for ; Wed, 06 Dec 2023 09:21:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701883299; x=1702488099; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GaGi8ynGM0sSJk2cTHVa3nEhLRrFYa9iM9DZek/jE/U=; b=WNZGEuQ0NPvNOdNt1kOslNhT9F9Sxyg4xJcxWLaFjEmqMRuznC+2h1y9+WkDqnVFpZ hpXxDZ07/2V2yRDQmfn7jDQ6fz6JAYPCwIsInORUDvryW0p/yl+B3ezLsUUG2spKKY2+ ArICsIxM8bJyFAtTsah2i7j0G/ntyFTT3OVEY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701883299; x=1702488099; h=content-transfer-encoding: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=GaGi8ynGM0sSJk2cTHVa3nEhLRrFYa9iM9DZek/jE/U=; b=oAvgoRUoKLV58zdYOSrchvrzIuzyJUapa3kl5MobixJT15Se9u5Vc1d57+CUhASlST N70m0UjU44xVbZK5QvV5IKWVc8ndYDZN18MnEkQhuAPBrBlnXYgo6r9VlsOoxR8AllhO yHVHL13DYZZzUKSqAE/9Mm/LWadNrMsdynMLk+iBN5lsd3vwIpZdBCewcLRPD0rxt435 eLPHjIbsshNd7pxwv2QlrnPGz2HbYOBnjcwQASughBMr+eTZYDQ1XOu96txVUEwO/0UM LabhzgF/9WKsDWPfLIzm6a1qYCDwYEV15onM3GOeXQOWJehBoo805JGXfFpbv5V28xdX DpRQ== X-Gm-Message-State: AOJu0Yyml8B1cpqTR6HQ2AsQbB2junq5n0EXHi40heqMShjMwqzNFmo3 JS5et67kg8kdjnTG47iaihQTlHTjq9CFoGHgSXGcQUfa X-Received: by 2002:a17:906:2c7:b0:a1e:2e2b:1b7 with SMTP id 7-20020a17090602c700b00a1e2e2b01b7mr324887ejk.132.1701883299683; Wed, 06 Dec 2023 09:21:39 -0800 (PST) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com. [209.85.128.48]) by smtp.gmail.com with ESMTPSA id c17-20020a170906341100b00a1e1a1dd318sm187241ejb.137.2023.12.06.09.21.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 09:21:39 -0800 (PST) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40b422a274dso95355e9.0 for ; Wed, 06 Dec 2023 09:21:38 -0800 (PST) X-Received: by 2002:a05:600c:22d8:b0:40b:4221:4085 with SMTP id 24-20020a05600c22d800b0040b42214085mr87519wmg.1.1701883298586; Wed, 06 Dec 2023 09:21:38 -0800 (PST) MIME-Version: 1.0 References: <20231206033913.1290566-1-judyhsiao@chromium.org> In-Reply-To: <20231206033913.1290566-1-judyhsiao@chromium.org> From: Doug Anderson Date: Wed, 6 Dec 2023 09:21:21 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] neighbour: Don't let neigh_forced_gc() disable preemption for long To: Judy Hsiao Cc: Eric Dumazet , David Ahern , Simon Horman , Brian Haley , "David S. Miller" , Jakub Kicinski , Joel Granados , Julian Anastasov , Leon Romanovsky , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 09:21:57 -0800 (PST) Hi, On Tue, Dec 5, 2023 at 7:39=E2=80=AFPM Judy Hsiao = wrote: > > We are seeing cases where neigh_cleanup_and_release() is called by > neigh_forced_gc() many times in a row with preemption turned off. > When running on a low powered CPU at a low CPU frequency, this has > been measured to keep preemption off for ~10 ms. That's not great on a > system with HZ=3D1000 which expects tasks to be able to schedule in > with ~1ms latency. > > Suggested-by: Douglas Anderson > Signed-off-by: Judy Hsiao > > --- > > Changes in v2: > - Use ktime_get_ns() for timeout calculation instead of jiffies. > > net/core/neighbour.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) Though as evidenced by the discussion in v1 I'm not versed enough in this code for it to mean much, the patch nonetheless looks reasonable to me. I'm happy enough with: Reviewed-by: Douglas Anderson