Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3840318rwi; Wed, 12 Oct 2022 07:25:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6RpbA+ENPgju0njiyaSqLgxQQsetZ+2tTeR5mOs9bfD3rf1756un3pbtHaMAmTGZXFAAVS X-Received: by 2002:a17:903:22c2:b0:178:3c7c:18af with SMTP id y2-20020a17090322c200b001783c7c18afmr30150909plg.134.1665584746455; Wed, 12 Oct 2022 07:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665584746; cv=none; d=google.com; s=arc-20160816; b=ygikdPTKdFaciXgAHZV39O7pmzJRDN0/sa7s+uVL1vTTxB8YEkuVhC/WHMihYG3Hbp HGGFoRXSbVTq4G4AOvhW1mXy19tgqKji43VxmI/bEx+zWr6AiV4O6FqzBbMgPimXySry L6ZM/soalHb9MZiajSY0naxzsl1IQ2OAsUm7QqXlODXh2x6aNkYtna42H2e418DywPPa HRNzipDer2tT+9t41vjgg8xTX0oLaVRSeg7u3v9n1ihiicgf2YrbcIoLPtgLCOiSnnUn McQJ7m6Ne/L39A9I6XHjrEQoLf8x6Dweqx+SgRk3WejmaoiTr8Iz9bhTYufQ20Nfa9PV 3Chg== 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=R/28uDHMy2RoMo05OA85XhCvEUZEb+ucZQL/Ql+5Xrg=; b=xPf/udEHp8IFbga5z03kQE7BHWFMFdwK/uLLzP5ZV9XGARTCgQWU+bwNG/zkmva2p3 +X6KKOVzQZ3+rZpiTCujLHJbydv7yUjMXVaesrHX5QDe71O7OGIYCsW2v6xvjlqg0L5r uMKMkae+FKBV3e0gpJE2tT8aLF5CEJhoQ4jzlx2/F4dg+FWhWer9LpBhrM+T7/DYt0eE wUwz8eaxb/fx2LAps5S9HjBbRYGterbgrd5yUjlXDEIcj3DGeMqQgsoyzghw3QstvLVN isN3Bmus6ukT4aRDS3rPFNTQ8s6FLrCttd/4JLqox88DtSpQscvOOGwGY6njY2Ya0qf+ JfbA== 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 ix12-20020a170902f80c00b0017a0a2e40e6si17026205plb.159.2022.10.12.07.25.32; Wed, 12 Oct 2022 07:25:46 -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 S229799AbiJLOKp (ORCPT + 99 others); Wed, 12 Oct 2022 10:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiJLOKm (ORCPT ); Wed, 12 Oct 2022 10:10:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA3426C977 for ; Wed, 12 Oct 2022 07:10:40 -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 2E53315A1; Wed, 12 Oct 2022 07:10:46 -0700 (PDT) Received: from wubuntu (unknown [10.57.35.175]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ED1AF3F792; Wed, 12 Oct 2022 07:10:38 -0700 (PDT) Date: Wed, 12 Oct 2022 15:10:37 +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: <20221012141037.5cm3mzmnsz5wt36z@wubuntu> References: <20221010154216.6mw7fszdaoajurvm@wubuntu> <20221011111846.284-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221011111846.284-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/11/22 19:18, Hillf Danton wrote: [...] > > 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. > > > Given "The RT scheduler is for tasks that require strick scheduling > requirements over all else, including performance." [1], I would invite > Steve to shed some more light on the relation between RT scheduler and > performance/network throughputs. > > Bonus question, why softirq took no care of RT tasks, given strick > scheduling requirements above? > > [1] https://lore.kernel.org/lkml/257E96C2-6ABD-4DD6-9B7F-771DA3D1BAAA@goodmis.org/ I think you're mixing the two patches up. That patch is to help describe some latency requirements for CFS tasks. It has nothing to do with RT. Your suggestion to use RT scheduler is not valid as these tasks can't be converted to RT. Which is what Steve was trying to say IIUC. Generally converting normal application tasks into RT is a recipe for disaster because: 1. Misbehaving RT tasks (busy looping indefinitely) can hog the system to a halt. 2. How do you manage priorities of all these pseudo-random RT tasks each application spawns so you end up with correct resource sharing? ie: using RT policy is a privileged operation for a reason :-) The target audience for latency_nice is the average Joe task from any application that might have some latency requirements to deliver a better user experience. ie: it's not strict latency requirement. We just want to handle delays within _CFS_ part of the scheduler. By the way, your emails don't seem to make it to LKML for some reason; they show as '[not found]' on lore. https://lore.kernel.org/lkml/20221010154216.6mw7fszdaoajurvm@wubuntu/#r Thanks -- Qais Yousef