Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp724921rdb; Tue, 5 Dec 2023 19:43:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvO6lQ5pA9OJm8KMLB9h5Pa0JAU+Qe+PByfH09+J6KH9g4R4m5arfSJ/CefF+ZIo5ubWF4 X-Received: by 2002:a05:6808:6489:b0:3b8:b063:8267 with SMTP id fh9-20020a056808648900b003b8b0638267mr365640oib.105.1701834236220; Tue, 05 Dec 2023 19:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701834236; cv=none; d=google.com; s=arc-20160816; b=fTtgRflCxqgsPSR/nPsuCAVu7V/mpjEQXPxl70U/SKeKod0RN0ePkDOvGIko9gFLfm 23wUIwqkrCPcDoQewAMZ6tAClB0pxkTUi1cOynH7PZB0XqBBjM4os2jfTzXhyFtUUaBG ZXRjia+J3ohIpxjIUf/nKSxiWjmBQg0nvW+uTWwJrDm0ba9Exs/Q4R8W8ztEtA+R/Z/b Q2w5fsrM4eVmwDKJdxvMw3NLlMmPmv/RrM6Qpj6MsNxGNWeCdH6oChBdswwu7tdUARmI A57Facn5YzN63/heAvheBScYK09pkg4TLUHmBMeKc4fgk+aFXatV/mCZ9bDuqvZ8eAY+ B7TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1ahtuV6b/eKh30afuyEXx03oM9/EwYNe2e1xkNzHL0s=; fh=peoS9Dv6dMXA5KsfRTq5+xS/IkZVOM7qEOEYZzM0c0I=; b=ROoRp4YFCEP0fBRHlDSn5ZIgGN4Lmh5zkjAtXN4g3z7m7lTcAHyts5wQ35JrkJCl+R 2rb2qzyID5gMwVI/4M5SImOOjiqBEDwSbhqr9+b0QbKuqY6XIXURdlc6p4hNFZ1c1ltZ MyiJIADXjYaiYTmw54xcOZBTW0wc35rn/ZzXJMqcg5OjMEq7BS8K53ugQ8KD8EBQEPzF WIjFGnzgxKPOs55ztQycSG0XWUSA1vfPB09EdkyZX+IMVd3i/EHYhSFmbN+Yc01ZVTKo NL0L/wE8QoZGc5o0hyXAVtDsQe6KTK26FKXNXMFcfdFLuxYn7sHfdBsd/dK4FxursPam 8ecA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cEk+RaKy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id g2-20020a056a0023c200b006ce4caaeaadsi4828828pfc.158.2023.12.05.19.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 19:43:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cEk+RaKy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id F1FB1822034E; Tue, 5 Dec 2023 19:43:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376513AbjLFDnk (ORCPT + 99 others); Tue, 5 Dec 2023 22:43:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbjLFDnk (ORCPT ); Tue, 5 Dec 2023 22:43:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C7F188 for ; Tue, 5 Dec 2023 19:43:46 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62C4BC433C8; Wed, 6 Dec 2023 03:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701834226; bh=Yt/7bAOKIimNBpZ0Q4GpZ/R6rZPYD6PxJiZ4tyrcpxs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cEk+RaKyvuWTUrYHayrbeJd+hkwdeo/6xXsVj9MQpyDav2tUpHVJPo8phFf00hoxV dc2wrv7DXhihdJpBks5x4pDuOCoaGwaUSiAZ6jJi1x5gctVY2OZz3vdeHwjM7H0G9P 2vIP4kBu79EfQo4/XOuFXREVjY91BvCkOna62RS1TLhD26qUSGm1jQ3kY99CHeaK1z JOt0YI6tPiwqQzKf7cEMiKXuCQYMZlli+23XDclgnxffCiJc6jaE0h6/vkv5jNg/61 Lh08gLdtNnCiuxds2dIzP+KmmDUgxpA86x5V08dpKdB1WiUj8aEN9hZ6Xdl7b6EeLb 43SXRNnz4tNnw== Message-ID: <2fea2908-69a5-4c6d-ad27-94f48f2f2586@kernel.org> Date: Tue, 5 Dec 2023 20:43:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] neighbour: Don't let neigh_forced_gc() disable preemption for long Content-Language: en-US To: Judy Hsiao , Eric Dumazet , Simon Horman Cc: Douglas Anderson , Brian Haley , "David S. Miller" , Jakub Kicinski , Joel Granados , Julian Anastasov , Leon Romanovsky , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20231206033913.1290566-1-judyhsiao@chromium.org> From: David Ahern In-Reply-To: <20231206033913.1290566-1-judyhsiao@chromium.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 05 Dec 2023 19:43:54 -0800 (PST) On 12/5/23 8:38 PM, 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=1000 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(-) > Reviewed-by: David Ahern