Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1810999lqe; Tue, 9 Apr 2024 00:25:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZXArKWBLLwPLKQvm9aFLx4XcJdiuJ9aH3YO+lbTC8tXiMdnX93O6CGOXvLvCKQALtkh7pSL1FxZHEynyrhy4Um5512aTiErIjU/RgJg== X-Google-Smtp-Source: AGHT+IG4Fo31bx373AKbZRzRw1Ycs/OUDPkxaTHixv8Mchmjcy3cLDpTT6HTaasxYqCnEzk7bM6Q X-Received: by 2002:a05:6a00:22c8:b0:6ea:c7bd:90e3 with SMTP id f8-20020a056a0022c800b006eac7bd90e3mr2982241pfj.14.1712647552071; Tue, 09 Apr 2024 00:25:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712647552; cv=pass; d=google.com; s=arc-20160816; b=i8zfwda+QcAi8t1s085bSqcArOI8GNmAhsL56HdIrvMg4FeXcjjfO0LvCeJmzWOtsZ HWGnoYKww1R4rfFuGFJgVha/R76dP81D8KHV98QS6dk9obK5xrRJoS0ZlpOmEAyaCMpw RqekHkSzlcyz4FtLHkGl1vRADU/81BG4czy6pBWFmk/Syu75Mbe3/qhaiy1Zcmk9q0g9 g5bcRmDak3gEDVyWcXUrCDL/iARKPSRtknBOpfsJId457JcMB9///eL6oZ5d503QM+W/ JvyLAo0QMq8LC2gYyILuI/KmQtIyt56Rjl3QDreBvTD+/NNAAoQV/VL7yF0vqtUwKVP3 PMeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=z4Ce6lVQ2XyKA8BWzmO5maTbn3bx5oujZGRrX0ryX3Y=; fh=3fxrcEzSuU8/tV4NoSMaTDEYH91SxHMiAnmnzg1kbGo=; b=s1iAW5/pBnRENj5cBKTHz6OhjaSqcn5OKLFgbPLFT4N3bdA3BkG//OkNJqU0cF3aLZ +TmsAxUr9MnbgmeIMUh28jmMOoviKnmkOBSbG7vvBA1akbzeWLhBCvOpusKAVMGhE38D fCHRFNY1RLSugY23LlvvpSWTuyt81hM0YFeUjC1/mn7ARV320mpAhqItEDXA8raqXhrA o0bAC9WoKdINhGE3bPC7Qs3CnarHyv04y9cI9lltyo24WCeEqjGsWywpwXhh61D6fQ9m FdYpZ7WsA8xkY4+CPq40dlvNvyCxNdfV5MmqwsN1TvMrUF2s9aLBk61vViLcbiP7v/dW gIYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-136349-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i126-20020a639d84000000b005dcc8a3fdc5si8040309pgd.485.2024.04.09.00.25.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 00:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136349-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-136349-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BE8AC2846EE for ; Tue, 9 Apr 2024 07:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23AE37BB13; Tue, 9 Apr 2024 07:25:45 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 F2F91537E6; Tue, 9 Apr 2024 07:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712647544; cv=none; b=e7+gSWERbvo3Yw+R0fArG+bd15yMlShp67iQw+dL/+B0ZJgK3LuILwXW5EjnPbcTy9Ovu7jHQ3J4Apiwuf8qaeg8nevbSZR+fAa5CUXkdTDg45y6Me2kuCvqPaYaIjBRufrfFMOHrfrpjC9zSUIDvW+pQDBoXf0NTp5ndriy5Sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712647544; c=relaxed/simple; bh=9x+TfeQHYbAC2ZOOl4tIe41PHvzWIyJ7rn56eOmWHqI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=qhMcgLW6KH6Sp9KO7wuuJow2mJnyYKjR8nC8aayUcVz2FUVKt2Xq/W278g1QYStPVk6ZXo2R2t+ADrfz85rcPj3/BgH+Xvk8YTB9bCnDHBk+4uHrucFeOrjjFc5MkjDq1xp6cMm8WatddtxWglzBTTPy3dFa2IjF82eOKV9HDyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VDHVD6BvczwRVJ; Tue, 9 Apr 2024 15:22:44 +0800 (CST) Received: from canpemm500001.china.huawei.com (unknown [7.192.104.163]) by mail.maildlp.com (Postfix) with ESMTPS id 1F11218007D; Tue, 9 Apr 2024 15:25:39 +0800 (CST) Received: from [10.67.111.186] (10.67.111.186) by canpemm500001.china.huawei.com (7.192.104.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 9 Apr 2024 15:25:38 +0800 Message-ID: Date: Tue, 9 Apr 2024 15:25:38 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: Re: [PATCH] sched/Documentation: Add RT_RUNTIME_SHARE documentation To: CC: , , , , Steven Rostedt , Peter Zijlstra References: <20240131123238.2332064-1-zhangqiao22@huawei.com> From: Zhang Qiao In-Reply-To: <20240131123238.2332064-1-zhangqiao22@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500001.china.huawei.com (7.192.104.163) Ping. +cc Peter, Steven. 在 2024/1/31 20:32, Zhang Qiao 写道: > 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. > > 3. Future plans > =============== >