Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5123023rwr; Mon, 8 May 2023 18:51:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76/hfLdNlAU1SGZgjQZrLBY7qrMfrwvz+0JVq2/VyZIfcLOjlrrh+e9wX4/on9qDIWmkX3 X-Received: by 2002:a05:6a20:7349:b0:ef:e017:c60f with SMTP id v9-20020a056a20734900b000efe017c60fmr16469788pzc.51.1683597104713; Mon, 08 May 2023 18:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683597104; cv=none; d=google.com; s=arc-20160816; b=A6FKaxygSv6QjrzuQR+Dykk+XJ/gKlVzqL3/C3eXREn6InHhp/U8aCS+kIySpZWM5Z y2OLBC1wb8qAFyJTa1GJ//u6wrsGxic2wBU6k9QP3FuoUxcfNq+ljUWV/KPJpaxwKeo5 yObUbKtTa7HQW3B4wg38w7Vm/o6AGrevK5a2EMdEsp/HdHYQjYZlL/QwrMBtLTNEJ1et YWAqaayCpT1MWrbMOSyw2374U/3LlUJFTvdvuE9lNUVBbWxHAnuHjTpD9qRkrNqG8TgQ 1gYKrzlQ4dYnKQ6fc5k82ZaxGNF5rTAtfxypsTrMmVDXu0T8LT0YqSt3u/EYwghrhegh Wi9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qKsyVSgq50izj+9/Ni2XVJtr2aZmfHasygVL+5ORS6Q=; b=UwAtw+F8x1sevw2D/gVCOD3A2jzN0xvMopMFABU2wcWECmIUNxL3oLMm9tNAqpf5oo AwQnRISjvi1DQL82bXiBihsLTSkiun2CSgB800PU/C2+IXOrSh/cak/Ahg3+WYmpSy4i nkP7Hv72nwBlRTTFkttFdDrB5wLkrULGgfQhzPzGucow5ov6HLQy3aRgZpLLv/Bx2nme NoYtE8H0mNf0AsjQNzTT5RpDUUyzxqzngJQYvVm7/FEROtkdGtYzW4edzbJfaoODyBxO dKrMFAxmfHOVKTc720Rpq0VJqdUyTRZnzv3Z8gH9NnpEQ5VE05612jCk1R1AheaCAc8e vIDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kJAcNngX; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b0052c766051d3si367019pgh.199.2023.05.08.18.51.25; Mon, 08 May 2023 18:51:44 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=kJAcNngX; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232428AbjEIBmY (ORCPT + 99 others); Mon, 8 May 2023 21:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjEIBmW (ORCPT ); Mon, 8 May 2023 21:42:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6CEC5B83 for ; Mon, 8 May 2023 18:42:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6AF1C630D4 for ; Tue, 9 May 2023 01:42:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F3ACC433D2; Tue, 9 May 2023 01:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683596540; bh=jZagtTHMTtmGZYvRq9Ar7kJfXxSDri3els3ZX0Z2CCk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kJAcNngX0ruO6lx/uGJMJLG/iqfu75SJo9XBPE0JAcLwZKLhOJJkc+uT/jL76xzH3 D1lYCcVbgU1xLLmOqUqQqt8PBVVMJ8BwAE2J1/xEUXTWz4ax9OeiYlUkGY2SOdJqkN yBDdeilKr2jLDj9WZp01zwbQXiZIYAfNE+8qJrcTJELv7hjZRO+qzW547YpCiUh2Yx fIAnHw3SDMvBV4fNF6pwfccaMLXHgfqopR4Pzi0r8d78Rz6mh2yeUsBf0DP1HKN0xw kMiKF46Mty/JYUFLWvlaQkj0C9Jwm+o+TbebSJkQTkIMgT451gPj7VZVKjp2VJLw7z DeravO+rVH+XA== Date: Mon, 8 May 2023 18:42:19 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: Paolo Abeni , linux-kernel@vger.kernel.org, "Paul E. McKenney" , Thomas Gleixner , peterz@infradead.org, netdev@vger.kernel.org, Jason Xing Subject: Re: [PATCH] revert: "softirq: Let ksoftirqd do its job" Message-ID: <20230508184219.4049952c@kernel.org> In-Reply-To: <57e66b364f1b6f09c9bc0316742c3b14f4ce83bd.1683526542.git.pabeni@redhat.com> References: <57e66b364f1b6f09c9bc0316742c3b14f4ce83bd.1683526542.git.pabeni@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, 8 May 2023 08:17:44 +0200 Paolo Abeni wrote: > Due to the mentioned commit, when the ksoftirqd processes take charge > of softirq processing, the system can experience high latencies. > > In the past a few workarounds have been implemented for specific > side-effects of the above: > > commit 1ff688209e2e ("watchdog: core: make sure the watchdog_worker is not deferred") > commit 8d5755b3f77b ("watchdog: softdog: fire watchdog even if softirqs do not get to run") > commit 217f69743681 ("net: busy-poll: allow preemption in sk_busy_loop()") > commit 3c53776e29f8 ("Mark HI and TASKLET softirq synchronous") > > but the latency problem still exists in real-life workloads, see the > link below. > > The reverted commit intended to solve a live-lock scenario that can now > be addressed with the NAPI threaded mode, introduced with commit > 29863d41bb6e ("net: implement threaded-able napi poll loop support"), > and nowadays in a pretty stable status. > > While a complete solution to put softirq processing under nice resource > control would be preferable, that has proven to be a very hard task. In > the short term, remove the main pain point, and also simplify a bit the > current softirq implementation. > > Note that this change also reverts commit 3c53776e29f8 ("Mark HI and > TASKLET softirq synchronous") and commit 1342d8080f61 ("softirq: Don't > skip softirq execution when softirq thread is parking"), which are > direct follow-ups of the feature commit. A single change is preferred to > avoid known bad intermediate states introduced by a patch series > reverting them individually. > > Link: https://lore.kernel.org/netdev/305d7742212cbe98621b16be782b0562f1012cb6.camel@redhat.com/ > Signed-off-by: Paolo Abeni > Tested-by: Jason Xing Reviewed-by: Jakub Kicinski