Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp803444rdb; Tue, 5 Dec 2023 23:34:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlMKA+drXc7VYOS9iF3Z5BMO7NzuQHDBCV4PuheceRc/8P65hODoSHVtpJw8lSDJgyiKQc X-Received: by 2002:a17:90a:1cd:b0:286:f3d8:de3f with SMTP id 13-20020a17090a01cd00b00286f3d8de3fmr254578pjd.84.1701848091522; Tue, 05 Dec 2023 23:34:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701848091; cv=none; d=google.com; s=arc-20160816; b=iqPEis8JJxwArsIgq8yOcFQyIsl3RmW6O64BfhiTPOoZfGavQ5dee88VgSWS53FtEN wYiFK45pu4pz2fBQjtO933SJK+j4D2dtHFSNrTL3sw06VLdS43vnpLX9KJhsiqOA1cYI dopML+2DC2LEQBqeQTcYyejem+ajFa7wrjd6MWGuxFbfKP6thhjoOVqlIE2b1AAnArWv CCa0QeSG9/NtM2aMyEwHW+5Kt83czViAeQdqGDdGUdMxS1KSHTid498tJwaF7uaE+SSW /hRLTxTHRNhmxQ0DCcNQds9muIyHR2H378i7TdzGgNuQbq/6ueUDBKNQlbIG/4F1KUW5 IohQ== 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=XrLGOurk8L5L0NnPLUV2I7uNbYLxUdBqrFGq7mAToT4=; fh=6ksJ6fYiMIk6PIDXXAVb+SG/FjpZTxEQho+L0nVDKwM=; b=vzNud0c+oAoIJr+ZFdVCl8uiYYCb6WQ4OeNEVjIcg3K+LLszwQ3wyC1WKT6iNvMeV6 moHUHZpS8WU/xs30S7qnC8xIvE+0bpGrlIUBQG0HUaHZZanzaadjIzhsVHy2tdD1V6zm XZKXz/PsMgKTNPQOEVaz+cL0AbTPejPAPq5vmzxH5dFiB9YUm7vQIf4JX4eydi3A/FA/ XMCJ4dfI95v5L50F5IYxu3O0WtOQjRDmculf86G/EXqUhobIrqaUeBL9hDsAMheaGC3d duDTP5vSKx9q7esthUqb9CCbD7OHU1WWNe5aVV5Da1WJvUFjtgis3UjMrJfz0yMZVmwb 2fDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RVgXsKxL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i20-20020a17090adc1400b0028669f28affsi7346976pjv.165.2023.12.05.23.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:34:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RVgXsKxL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EE2308021596; Tue, 5 Dec 2023 23:34:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229523AbjLFHee (ORCPT + 99 others); Wed, 6 Dec 2023 02:34:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjLFHed (ORCPT ); Wed, 6 Dec 2023 02:34:33 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625AF122 for ; Tue, 5 Dec 2023 23:34:39 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-548ae9a5eeaso5197a12.1 for ; Tue, 05 Dec 2023 23:34:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701848078; x=1702452878; 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=XrLGOurk8L5L0NnPLUV2I7uNbYLxUdBqrFGq7mAToT4=; b=RVgXsKxLYCuPUrDTXabS/YaKPggmrfdjbfeFicZ+ty34bG93X6Qbr7MrmwwVDkiro8 gi8vX159tHoXz5e4VcjKjGrE90vdyimjZ6pNtipmXzYTgJMXVGba5b9kuUowW4JFincb Y/fR5IXQ6bzPh8WvgpIT9QWwifm1YEvNxMVPnX4U0pGUCGfFUWRcQGRTJ5oiHzOGSBB2 SO1dQCxh4N9EMPW74vmxhmTSOHMbTVh6Mw8qLShws+tvknuJHnq4HiX3Zl9JVRtUCKDy OHFjmf5I6j4DwubaYzIrrpFAXHlIiAZ3LyDzv4chD+yAZnKVJbXKBD9xsv4caHCiyNGO /OGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701848078; x=1702452878; 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=XrLGOurk8L5L0NnPLUV2I7uNbYLxUdBqrFGq7mAToT4=; b=OTumKFBCWSw3B843NwMcAjYzjFlCzEyJhz3AMkKW3+dw6I3D1Hl4q4nRwTJpJYt0BG g4ZLGEK4LUc6k/U92KdoY5m+i2YgSfexc00AT1g5YhrEyRkUaYmbhDG5N5qpuzHBF76s 7L25iVTMXXIQHKTFrcy9JgztMVc13a/+I8iaM8X/bxWJR9U1CEPS27rLeXwt1vG2EmXc xfPEr2AnKxuptJBY2qh7XQd2nvIv2dstaH3uo61QC4/afdgaKCHK/M+jVjh2Tl5O5sOP bIT9Dgtrm2aPys+rdurfBZKWamjtGEUcmf1agF2a+iYD+xQ2IVrEFN2o8QZ6dUMW4Vmx vmdQ== X-Gm-Message-State: AOJu0YyqHnh9E3jWFZf60p5n+jj31eE4OpgRUBXnnwZ+i1+CHNBBLVr/ OrkRKb64QvzrfjtXbL231eNQdDdutV2GJjo586dREg== X-Received: by 2002:a50:d744:0:b0:54c:384b:e423 with SMTP id i4-20020a50d744000000b0054c384be423mr40767edj.5.1701848077557; Tue, 05 Dec 2023 23:34:37 -0800 (PST) MIME-Version: 1.0 References: <20231206033913.1290566-1-judyhsiao@chromium.org> In-Reply-To: <20231206033913.1290566-1-judyhsiao@chromium.org> From: Eric Dumazet Date: Wed, 6 Dec 2023 08:34:24 +0100 Message-ID: Subject: Re: [PATCH v2] neighbour: Don't let neigh_forced_gc() disable preemption for long To: Judy Hsiao Cc: David Ahern , Simon Horman , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 23:34:49 -0800 (PST) On Wed, Dec 6, 2023 at 4:39=E2=80=AFAM 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. SGTM, thanks. Reviewed-by: Eric Dumazet