From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4D8E37F001 for ; Thu, 21 May 2026 10:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779358304; cv=none; b=Zc/qTT5Gxi2ktUkmUxgWKxNNZeXUeC1vm9SG9OiH+7DI9Y0pGUxlF1/1m6E9UK35xF2jV7ukLpv+QmGUiGUNvCNRa7WcNY7e80dr2i+LDa8Qp0/Xj2pMY60bXWnOTM7EXJmfYNqcHbNxJr/7OZwY6j8cA7S7JsG5N7MxA5UK0/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779358304; c=relaxed/simple; bh=UAAYYtag4BFeq9YuOT4FgDED9b+n3gHCnSnx4FVKj8Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Z3lYJznM3tuiU+XbHQQfcLKDsB35r/Fp4r2eC/BCUna4KU2241xQBo+lNnvhnalHGIYCGtfHUiQfKRG1ffHz1Js3+OF3aATswBOIZd0VOnwNLdF5o9fUhCasm5Ya/5H9ZtsuTmpewAluqpFM5/lQ0son13Vlacb1sLD04FcgV3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=L5zI0Ojj; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=BmP0qDcN; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="L5zI0Ojj"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="BmP0qDcN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779358301; 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=PwqZnrtpAJkaXCW2gGqYtZbw5OMEJxWMotHkr5eD+JA=; b=L5zI0OjjJ8kHJxFTFSX4v1j2xueVQM/broAoq86WjfhkH3nVhVBuKSP7Zks+iqvBu2AQtY 4GLpSBxxjZSAVO2r3bc1OHAEol8D1E7DfWPfwYPWdI0U+eZdmUZ2pevJX633FMjfQSP05t qFgsE06ZCA5Qz2CGziJLgJwcLSDib0c= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-79-kOFv4w76OiycYnZlsiqElw-1; Thu, 21 May 2026 06:11:35 -0400 X-MC-Unique: kOFv4w76OiycYnZlsiqElw-1 X-Mimecast-MFC-AGG-ID: kOFv4w76OiycYnZlsiqElw_1779358294 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-44d83e45febso4726674f8f.0 for ; Thu, 21 May 2026 03:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1779358294; x=1779963094; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=PwqZnrtpAJkaXCW2gGqYtZbw5OMEJxWMotHkr5eD+JA=; b=BmP0qDcNVmnebAvpN4ZX9Fzn409NP9IcYIgWDlfxKfzmQWn7C3r0wEcC32XX8b4/rs Nhk50FraunFLivG0bODeojFmRaWf4Gv/l8z5t+uEG6J596RKsuIEO8FqtE5CoyduuMsp QutbPkOgEjeacFXAh/VdFmN4DGnci2weT5iQH0payIRWPAEbbVi4UtZouTpNlivlhuSJ bxYnil5RzQaDwVIwtdZ5vCWeJMdiL4JJfLbQn+S4HRKuN5kLQpuYSwA19U6wcnLNYKTF 0Ug88HvdjdNIy1XcgXRYpFeVDmssJHZQ5nX7Uyx25pZXopmREsu2gw4Q2I8rbr+UOyts /h4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779358294; x=1779963094; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PwqZnrtpAJkaXCW2gGqYtZbw5OMEJxWMotHkr5eD+JA=; b=g15yf/kNBZiGlcczRmoNEhX6Rxq7u8qXV8fBgBGR3DrlYp91XbUny+hjbjQnKsMTnB oZ4KA79oGZGcoB3oQNV0JIV+Jqrm4p1twA7NxAZJHnsIFgm5JlA1xmpXkJLXrLSJ/KRV tYlciAXzpzl0C71HJ7PvA3nFCvVs3kEj5Bm2RpUlf0zNr4eYg0vHm9D19MgqXdLPD3Dy 90flwvaqbIKGWYwJxBaKbhO6S8+BKn6j3nza0CMrZIhR2QBnZ1b0Pqd7uh3IYoIHR6e3 PZy78qMSSze3q+6Kbfw2TBQg7OCHQ5MeLqZ3Wxepvz/e6j4od2NFHMQ95jFA8X72SibF KVKQ== X-Forwarded-Encrypted: i=1; AFNElJ8vCKmX3tpdHolaQkbRi0itmy4j9ux8hcsXBHR0/EMUDM5GmkErKM37ecaH0yWKc87aUD+VxI/oNLjNne4=@vger.kernel.org X-Gm-Message-State: AOJu0YyV/xWkRAR8mPH3s63xvo1Emv4mKJC6hHrtufaHb/kie7gdUoA/ hU5+xtWOJfAftqfZWmcKmhWisMzslbRGeyyO058sKMbMT835Q72XcXgw6151h6536n/Rm44OQ0d C+2wIiCYwlZlRPdkXIlzDO9Z87ATD0lBRmaxHMpV2a2AG7NEb1ULq19m4tPtrWL9OGA== X-Gm-Gg: Acq92OExl0XMB4RBwYIlUYjjt/qs8HfS20Ueop/g431B6Rb92c1zjpvisPe2e+Kq5tS NMyqUAu54mPjtHuYP9kb/Zn8nz/ltWMmkUywSaMCr7t9DlVnHOXhW0fjOjYOCaCTMLfjfbSatIs MifKxv2pBof7yjwxf9hcCWUai2SihOJr1azBza+V9LLdBgAXrCYI7rqUS0Jn9dlN/awmtB67eku GuOVuNnALocdxqgEGDKYAAkEmyD42dJag/YyMf8Zgd/lblWTUCIAP3auavKoKZL6iPfnMqEJWMF ZOH/RWZRKUJQqcrFlwEQIu54WbSHg3LGPgpYLeEqP83URy0efVzDTq3gSc0v02rY/eN2SP5BIlv PCP7roisvLKae50TQP2bo199nIFym86gAP80+S2xr5T/jiKi/2XV0Gajhi7B3KcmLh0bjY/5uci XGYQL9aRU= X-Received: by 2002:a05:600c:8591:b0:489:1abb:5559 with SMTP id 5b1f17b1804b1-4903605d403mr18507665e9.5.1779358294153; Thu, 21 May 2026 03:11:34 -0700 (PDT) X-Received: by 2002:a05:600c:8591:b0:489:1abb:5559 with SMTP id 5b1f17b1804b1-4903605d403mr18507395e9.5.1779358293805; Thu, 21 May 2026 03:11:33 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-135-146.abo.bbox.fr. [213.44.135.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49035ef2d93sm16486815e9.9.2026.05.21.03.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 03:11:32 -0700 (PDT) From: Valentin Schneider To: Shrikanth Hegde , Steven Rostedt , LKML Cc: Peter Zijlstra , Tejun Heo , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , K Prateek Nayak , Kyle McMartin Subject: Re: [PATCH v2] sched/rt: Have RT_PUSH_IPI be default off for non PREEMPT_RT In-Reply-To: <61203cdb-af98-47e6-bb70-78af7f0f1cbc@linux.ibm.com> References: <20260515103740.25ccbed8@gandalf.local.home> <61203cdb-af98-47e6-bb70-78af7f0f1cbc@linux.ibm.com> Date: Thu, 21 May 2026 12:11:31 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 20/05/26 12:03, Shrikanth Hegde wrote: > On 5/18/26 2:17 PM, Valentin Schneider wrote: >> On 15/05/26 10:37, Steven Rostedt wrote: > >> I got a bit confused here, please correct me if I didn't get this right: >> >> Per handle_softirqs(), we can't restart the softirq handling loop if >> need_resched() is true (which would be the case here, per what we'd have >> done it push_rt_task(@pull=true)). >> I thought this meant softirqs couldn't be the issue, however this is only >> valid within the scope of a single handle_softirqs() invocation. >> >> AIUI here we're being hammered by IRQs, thus under this sort of pattern: >> >> >> __irq_exit_rcu() >> invoke_softirq() >> handle_softirqs() >> // handle NET_RX_SOFTIRQ >> // need_resched() is true so don't loop >> >> > > Wouldn't IRQ exit call schedule if need_resched is set? via irqentry_exit_cond_resched ? > So as pointed out further down the thread it may not because of PREEMPT_NONE. Also; schedule is entered with preemption disabled and IRQs enabled, which I think means in a stupidly network-busy scenario and !PREEMPT_RT, IRQ+invoke_softirq() can significantly slow down the top half of __schedule() itself.