From patchwork Wed Jan 31 12:32:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Qiao X-Patchwork-Id: 194727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1853750dyb; Wed, 31 Jan 2024 04:32:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcme9gQtxZRU67wbEC3clRWaHkDyo2zYxhHuj5ca2KnPHeVDcMwWw27IVtjEHxcNj+23Dt X-Received: by 2002:a05:620a:1217:b0:783:e3a8:12c5 with SMTP id u23-20020a05620a121700b00783e3a812c5mr3994373qkj.31.1706704364288; Wed, 31 Jan 2024 04:32:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706704364; cv=pass; d=google.com; s=arc-20160816; b=pBlNglDSB2W9ZJu3mbis1geHa4JD8QtHOH06RzxZH08jdDAQM2+71ZqWpdgHPXd1kX bjOqmc5sPr0WXEsFYw8XnO2fxhXjvS7OIoe3ezy3LeSSbJmjhKE0QoFpTU8HySBDsLxn j4y9sJLE1qbQJUCip/yu5oS/2E1ZXyBs8kqRxa4QTUVEWVJtACzkN70L7niJSyLOTP7d rIMLo8ftMlfRCt5rHWHD3pvPL1epr990+TyYCHCdMjmRt7SzKgeI+EO36PlJsMgDF+G8 ++V40eQY4B/dKonbWCG/pY1cU/mkgo6rGPJl/5Va2wrBCnihLozxWGI+/jywpBuoAbYr gKbQ== 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:subject:cc:to:from; bh=ScimmMks9rjtNWNW/R9f5m5ZiKhajszQ/K/74dYfqj8=; fh=5R3OW+9usyYy2fhmI6R3BQ1uEzNXG+Cn9WYiXjGJ6/Q=; b=ZIUjVeHjE244LuHhdiECiUH0SoOBO31xc/EkDFHm8Ck6WD49H/dYn/Suq0yQO5NLD9 CmUSazOQy4FRWYvmoQJf7PWFF/1zNlJbIe+WK/5DnrlW1zrHIqXQqbZmzRV5e7qKPVhI JLkU/XeJh0az5hYMcn1u/daOIbqurripTPz2gVFQiM6Y026584YJc2hfhj0ng6bSFKF5 1QIYwQt7698xCwY0bABKBSr2JgH6Pk0Z7liN3iaeH3cBd2m8BUmQaBYkD0NWNDvfLoAD 1kG3LyTednYQrqdnb00anncRdLsE4LRoRqi/Oz8upiXXndcCef/7XYl1GooqLRqYzqQA v2oA==; 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-46425-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46425-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCUagf8rwsXKrWbGsuG9QvtOdndojTsBnzSEOQ87P7Mg1sPONzxvU86sYfNwy27eJ2C2GZpj3Bvd9ceYdFrnENm+8RJzXQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p12-20020a05620a22ec00b007832b15c5b7si6213010qki.719.2024.01.31.04.32.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:32:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46425-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-46425-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46425-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 168FC1C21E0C for ; Wed, 31 Jan 2024 12:32:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D67179DD9; Wed, 31 Jan 2024 12:32:29 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (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 CEC7A76C85; Wed, 31 Jan 2024 12:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706704348; cv=none; b=D5WnpQCoAv3/sPp5Df7W5dsoNQtnVaEUyDlepSQqaXD0jegJ0Vbze1J/uasDde36Fxux2ap7VYFpHRQZWqkT5VuKJr7zosAeK7Z0dd0QuBShaOcKB+bKDz2RQ+ALzlBSf1Z073c9dwaIVGuoBPQfU+SmNpiw+xpSlqNrg5EBPWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706704348; c=relaxed/simple; bh=FED9EEmMKE+UuTS+51bHGBf+zW3QlM2itO24OOhtWuk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=oNSW1IpgENX0jgw1+sZyEXgq6xm7rDY4WIwNhOX/vRr/MF4IfSfjltzkEkxko/DRvAL7zXp5s0VF3cIHx4DRqS0u0bR3E4sMyr98qwoUl1lo5wg/scVsSZfTcUfZnuOCeSbGYNooUAwaEr6dBizLw7Fc8xbo51o9KGDSQ9m8I7o= 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.35 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.163.44]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4TQ1bC3Zwsz1Q89B; Wed, 31 Jan 2024 20:30:31 +0800 (CST) Received: from dggpeml500018.china.huawei.com (unknown [7.185.36.186]) by mail.maildlp.com (Postfix) with ESMTPS id 580C01404F7; Wed, 31 Jan 2024 20:32:22 +0800 (CST) Received: from octopus.huawei.com (10.67.174.191) by dggpeml500018.china.huawei.com (7.185.36.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 31 Jan 2024 20:32:22 +0800 From: Zhang Qiao To: CC: , , , , Subject: [PATCH] sched/Documentation: Add RT_RUNTIME_SHARE documentation Date: Wed, 31 Jan 2024 20:32:38 +0800 Message-ID: <20240131123238.2332064-1-zhangqiao22@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500018.china.huawei.com (7.185.36.186) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789609235423880408 X-GMAIL-MSGID: 1789609235423880408 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 ===============