Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp918729rwi; Mon, 10 Oct 2022 08:50:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7reGej7+Mw4tu8k/BwNo/UIHQ8QR9GF3j9FwnIenuxAsjE0ap+/I3b4gJHcojXaM7GXmZG X-Received: by 2002:a17:907:728e:b0:782:8e91:64c8 with SMTP id dt14-20020a170907728e00b007828e9164c8mr15690183ejc.36.1665417006674; Mon, 10 Oct 2022 08:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665417006; cv=none; d=google.com; s=arc-20160816; b=mNsCxWpur4wo/3A3wfHoZgL0riQdV2XpDw+1Un8mXZ61ZgiyJF3sL+fRBoLqkI3BUx vCViRrrd0Zf6gCghcfTHQWwqK+cCvUCQEPs96rc35D3euH1vj0RnVdkKDy7l7+0+V3oR a603ImGxWfbXOeRN0RfqJY7fgV65DP3H80UgGRKEeItJw9Qth9i5n/JAI1bvi6FQviIo jNHDxMc35jXiSvNjcpa8Ye9KSzS4iZx7u0+PHFyhnzKkEy0fdYQeohWTLwKnT9keuRzG 8tO/qkeV8XVB+ZmRY9+q8OxFRGbGwzKUwUb7azhGil3qErdi38R0kj2NXDmzFbg4nDjz w+Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uhYoWsanSWRYY6DuGsO8F1bMw9DqwWBjND+JFLSvxNw=; b=QHZzb9htTHyzz30cvftiDQ7oBf/ax3bef+hxb1yzjkGUVU0QxuLVlwkENQbUMDPS53 1+UdrqGvJnQwgq28fLLHTdjWtPNqtK724N4Dx1dUHKRDjCRhpi3QQwLHuI7v2s6X+ga6 Jq5eCsl++qS+VQ8gjPXe5tsP5mOKc2Z6boqJeCmScNKYHlDcJDg1mz9WXB9ocVSefrtO f3ybuNHQNvimIFiahxgZvqzQriNDWcLrKncKyK6ydcVoMuL+cJ4ExGVQbWTiWveqU/zS VOu3pRxjjAq/hag/WaBryWBAzMoK7V57/JaYK8r5/+QBfLQDYEaSGp45PLsTmDXBWQsg fbLw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a056402511400b0045c2a92c120si2879054edd.520.2022.10.10.08.49.41; Mon, 10 Oct 2022 08:50:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbiJJPm2 (ORCPT + 99 others); Mon, 10 Oct 2022 11:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiJJPmU (ORCPT ); Mon, 10 Oct 2022 11:42:20 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9817B733C1 for ; Mon, 10 Oct 2022 08:42:19 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6F03312FC; Mon, 10 Oct 2022 08:42:25 -0700 (PDT) Received: from wubuntu (unknown [10.57.35.2]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 391FD3F67D; Mon, 10 Oct 2022 08:42:18 -0700 (PDT) Date: Mon, 10 Oct 2022 16:42:16 +0100 From: Qais Yousef To: Hillf Danton Cc: John Stultz , LKML , linux-mm@kvack.org, Connor O'Brien , Peter Zijlstra , Steven Rostedt Subject: Re: [RFC PATCH v4 2/3] sched: Avoid placing RT threads on cores handling long softirqs Message-ID: <20221010154216.6mw7fszdaoajurvm@wubuntu> References: <20221003232033.3404802-3-jstultz@google.com> <20221004013611.1822-1-hdanton@sina.com> <20221005002149.1876-1-hdanton@sina.com> <20221005060155.1571-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221005060155.1571-1-hdanton@sina.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 10/05/22 14:01, Hillf Danton wrote: > On 4 Oct 2022 18:13:52 -0700 John Stultz > > On Tue, Oct 4, 2022 at 5:22 PM Hillf Danton wrote: > > > On 3 Oct 2022 19:29:36 -0700 John Stultz > > > > > > > > Why would ksoftirqd preempt the rt task? > > > > > > > For example the kthread becomes sensitive to latency. > > > > Is it the case where > > the ksoftirqd thread is configured to run at higher rtprio? > > > Yes, you are right. I don't see a problem here. If a sys-admin configures their ksoftirqds to be a higher priority RT tasks than the audio threads, then they better know what they're doing :-) The issue at hand here is that the softirqs boundedness is hard to control. And the scheduling delays ensued are hard to deal with by any sys-admin. Networking has actually introduced some knobs to help control that - but the tricky bit of still being able to deliver high throughput networking while keeping the softirq bounded to minimize scheduling delays/latencies. I think even for PREEMPT_RT, high performance networking could be impacted to achieve the required low latency. See this paper which explores this duality: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.702.7571&rep=rep1&type=pdf With WiFi 6 and 5G mobile networks, phones are actually expected to deliver multi-gigabit network throughputs. Cheers -- Qais Yousef