Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD8F7C64EC4 for ; Fri, 3 Mar 2023 11:41:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbjCCLl4 (ORCPT ); Fri, 3 Mar 2023 06:41:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230321AbjCCLlt (ORCPT ); Fri, 3 Mar 2023 06:41:49 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9601F5F236; Fri, 3 Mar 2023 03:41:29 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1677843688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YQtG99BnykW9iCa6kuywr/Rk0RXA0HmLsf2+3nUNFrg=; b=4poJpPDdkY2CDLtaNmtbA1b+2HquVPKLdUOaxhGJiY/1aoHgUs0Dx5ShghLvhyewwGngyB ciK+L5K62FrWbdl5YNwTilpkDphiwxeRGP4UQR5PBbjHbK3yHtXoM2Q7FtlOke8XVH0XCv euJ4fFKoa31xAUN4MqaCsI9aqzo3MI0M6lwH1Izkae25OXOPI327wHN6MBZFhGXoyONV9k nDXdjZQ/HQK/36Bhekul2RBGOZyBeAww7oJGiLEg8i9op4MO6IW503SakLutvRSdAz/L5w 2kFS6EnoNCWzYgNZ6mj2VnOfQcxCrRBgBaFgkBRJM1iSfUA+k8gNjD3YXeTnpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1677843688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YQtG99BnykW9iCa6kuywr/Rk0RXA0HmLsf2+3nUNFrg=; b=pZBY12nwPzMQFplLjiag1O1lM3EBId+egbydanO8tqkOnGfzTz+D3PdE9hKH6rFFY0ZbKV NQ6hM6CKMo9FJjAA== To: Peter Zijlstra , Jakub Kicinski Cc: jstultz@google.com, edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] softirq: don't yield if only expedited handlers are pending In-Reply-To: References: <20221222221244.1290833-1-kuba@kernel.org> <20221222221244.1290833-4-kuba@kernel.org> Date: Fri, 03 Mar 2023 12:41:27 +0100 Message-ID: <87sfemjc48.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 09 2023 at 10:44, Peter Zijlstra wrote: > On Thu, Dec 22, 2022 at 02:12:44PM -0800, Jakub Kicinski wrote: >> Tweak the need_resched() condition to be ignored if all pending >> softIRQs are "non-deferred". The tasklet would run relatively >> soon, anyway, but once ksoftirqd is woken we're risking stalls. >> >> I did not see any negative impact on the latency in an RR test >> on a loaded machine with this change applied. > > Ignoring need_resched() will get you in trouble with RT people real > fast. In this case not really. softirq processing is preemptible in RT, but it's still a major pain ... Thanks, tglx