Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp129407rbe; Wed, 28 Feb 2024 14:44:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU31/tHlgUwp+a2Pr3z26qIoTNBtvfNukAMF2/fcIiDzr6eRZ9EMeY4ch4IckxW1tgdY6wjjkuojufiVLjIyIwVPtiR8dAguiS237yenw== X-Google-Smtp-Source: AGHT+IEBhgHYsR6pjm37N+bT3GLbz8cWKzijp0DSEYHfXmvJAJjpMo6AvZq+fmhtxhaU0jwgYeOI X-Received: by 2002:a05:6512:530:b0:513:1c35:a23a with SMTP id o16-20020a056512053000b005131c35a23amr173709lfc.11.1709160265712; Wed, 28 Feb 2024 14:44:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709160265; cv=pass; d=google.com; s=arc-20160816; b=WvXcbyjuYxpmNlNSOqLszDsJpYRGKDHEKV4wnoV5315qE2o5VrCTsbsRhyOhoPnyfW sWUDDogiGSCNkqEkiagHyxamHEYWd5nMOTmRteJ+z60KYbR7csTy4VQ1WDsJeXvwNtfA cn2ePcTpydKcyCfllI0IX/oAHQSsSmH4PaJe84jcqHMKk5t18vbDyRsASZ9b6A5vYx+H vsGVkn+3+Lmoxp9gp/gv49KEBdp5E5bH2rKLckqwmDGYX33exPhzRqscXHENFnfE6CJT V0qgChFukxABpyTiKDh+GYSFNa9jDMkRHFjteVolx0nOMB89jVF2HG93COEMUVGv8yTp 1Z3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=bPfj70haa25vAmOOxEZhbdceUi0BE5fJTxAq5LIhQMQ=; fh=JJMkT+89X+V8wkW0Nnb36fNYWFOAvEOW5xnglDSAskI=; b=jbkShpxfLl/vzbswo3NGUM6XOQy5dO0z3XzZXbwsFI/HeQAPq/QDTF1ni1X3ig+gw9 eZ5eImmcraBO9zQZqkcGOkeao0FzRsiKqaI5lb0ymXKRq7Y6NhNKaXSy7Gv3J8g8L8O6 0q3iKEf5Ng1AFgzkv2Mdx02dFP5jWKJgyRlr40hawpjV21DAigB5INRHbKuJ4y1UwrxW 3U/cHmaJwtnRS6QPJ75DAGqp3pbAV9f90xWned7z8y2vN5KhfYY0ovXP3Na8wFZpMq7g Pctw7e9J6DZMrVu13Pt0GxeYgu9tjkKlpxK3+r47InFO7Fretocodpr77TMIGk416Wyn CVkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=kYxz469G; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-85794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ka15-20020a170907990f00b00a42e9ac19b7si2159030ejc.116.2024.02.28.14.44.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:44:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=kYxz469G; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-85794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 763C61F25FC3 for ; Wed, 28 Feb 2024 22:44:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77D9B70055; Wed, 28 Feb 2024 22:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="kYxz469G" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 1C6D21361A4; Wed, 28 Feb 2024 22:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160257; cv=none; b=LZI6dhR+b8aeCZ0bC0S71rWwRdzRWxkrLHWnPEOR0juBh0zSeLfjMnTWV/Zywr51LP/oCXDEZlUOLY3jDmRS3tq5dmQV16uILdeCdEiIQSdv1fDPGccs0X/aI0ac8tO6v27sI2OQ+beNr2TqAGcho5g7duF5TVwZXaPDmOlht1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160257; c=relaxed/simple; bh=sFfSQI8H9anZqbz5zbNOIZk5SSnIblghGOAsPyjilNY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Ne3z+051HVH0UdirKSHAyebv8m/M9HiGWrLPLDMzZRaP0gB61PuDj2M+yaiNLXOpG/O+4zFygq+hjJbAOGItLNYGPm7rK8/OTACi4hYKOKsfFlhoWEUDdnByJigIR+7OalSO7wcY0QajxvzXnqmgXVsgOUgDq5QAHNDcZF3wsfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=kYxz469G; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 564AE418B5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1709160255; bh=bPfj70haa25vAmOOxEZhbdceUi0BE5fJTxAq5LIhQMQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kYxz469GMvwqL0TDa/2gg7OCU9jAQKhQ8VcBrE+zyB5gecIQq/mj3QxaEdLrIpWhw 1aaX3Pr/8HF+7bTXppbjQBZAV9YgC4PiwZRJaAVD212OJzzUhs+XoNjGDnO3ZRkvo0 MCDmAxdXfrWzmtNPNVAdVnr0OEtkWyG77D+Cx0PhMrLsDEha1DF+/PVJrU1/xu2SS5 VoInppWoPPAk1xBAXS9o2lX1AJVm3d+MgrMMd8CiqyHJT1ffONOw/ktr0LcqhN0p3o dc9g32owRJIMB7tyzLPj4tHeGLozLuulr702Mvqb2vX3bDDasQPx22gZlML6f2nFYF 3VXNYM8tnqhTg== Received: from localhost (unknown [IPv6:2601:280:5e00:625::646]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 564AE418B5; Wed, 28 Feb 2024 22:44:15 +0000 (UTC) From: Jonathan Corbet To: Zhang Qiao Cc: mingo@kernel.org, chrubis@suse.cz, zhangqiao22@huawei.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/Documentation: Add RT_RUNTIME_SHARE documentation In-Reply-To: <20240131123238.2332064-1-zhangqiao22@huawei.com> References: <20240131123238.2332064-1-zhangqiao22@huawei.com> Date: Wed, 28 Feb 2024 15:44:14 -0700 Message-ID: <875xy8p5tt.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Zhang Qiao writes: > RT_RUNTIME_SHARE is an important strategy for rt bandwidth, and > we should document this sched feature. > > Signed-off-by: Zhang Qiao > --- > Documentation/scheduler/sched-rt-group.rst | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/Documentation/scheduler/sched-rt-group.rst b/Documentation/scheduler/sched-rt-group.rst > index d685609ed3d7..4d8eceb71f5e 100644 > --- a/Documentation/scheduler/sched-rt-group.rst > +++ b/Documentation/scheduler/sched-rt-group.rst > @@ -12,6 +12,7 @@ Real-Time group scheduling > 2.1 System-wide settings > 2.2 Default behaviour > 2.3 Basis for grouping tasks > + 2.4 RT_RUNTIME_SHARE sched feature > 3. Future plans > > > @@ -146,6 +147,16 @@ For now, this can be simplified to just the following (but see Future plans): > > \Sum_{i} runtime_{i} <= global_runtime > > +2.4 RT_RUNTIME_SHARE sched feature > +---------------------------- > + > +RT_RUNTIME_SHARE allows a cpu borrows rt-runtime from other cpus if it runs > +out of its own rt-runtime. > + > +With this feature enabled, a rt-task probably hits 100% cpu usage and starves > +per-cpu tasks like kworkers, as a result, it may hang up the whole system. > +Therefore, in order to avoid such exception, recommand to disable this feature > +by default unless you really know what you're up to. So this doesn't appear to have been picked up by anybody...should I carry it in docs, or is there some other reason why it hasn't gone in? Thanks, jon