From patchwork Thu May 30 11:19:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680352 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 132BFC25B74 for ; Thu, 30 May 2024 12:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zYPINw5FRB+HaTfhiC79x92zq8GMeCBCvyWzWsD6Sko=; b=rj/TJtikcxGLW8 QHJk8D4DWYkeY+9ptWO0dkSPe0PaQswzJPi5unVqc4DVgQFbZqtMz/IcFRH/gSUnngsgF6IvlbEML UzYElI7lWqQqdrP8QCY0y4bgStRvCNepkSr51Nfeym3oL5qspd9t8+UjintWjpGI8qMKKDK/+IIxe XvjGVVxecZu/7XobubzXXdzBdNCUduX3J08chTcigJPPLBLu5Vv9xFUbhY9Pw5zySz4Av9Bd/ug1j SE2jq8udrisOeYo9C0Jmgj8XF9p93HwDHLeEvhG/ztiVEyGXj4Yedk/0tXCmrKlLIMh467IIDLahn ea/NirR3nia9sYFBPJgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCewJ-00000007Etu-36pH; Thu, 30 May 2024 12:31:27 +0000 Received: from mail-il1-x141.google.com ([2607:f8b0:4864:20::141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdpN-000000074fA-1lNq; Thu, 30 May 2024 11:20:15 +0000 Received: by mail-il1-x141.google.com with SMTP id e9e14a558f8ab-36db3a124f3so2692895ab.1; Thu, 30 May 2024 04:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068007; x=1717672807; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yMLg5P8GKaZTkgjzD8R/QqO0sSQDVLJa6m0BArXde/g=; b=lXL7zq9gq9Btmigr6M4k4pdpWtL+f1HwFI/vzKsc7t25nfhDW8q69JEFAaStFIfj8d mdnQP79h0HxSy2h20AozlVGUTD3QLdYwO5HJUcgIJJtsxScSn9qBibKshwyAhMtGQfjm MeV0LB2ID5PUjlZnqwtQjAK/Icko8z0EpLv5umwarYVbCS/oegLzUAjtQ7IPGYBwzbd5 gxKm57JwFUxK+Z4G6uoYLSzXjMjviQbnwAD2/yhTBmbzJPbc/5ojt0o18RdqsJzBNoBv gb2m5M/JqqyxpwoiYw6YIL3NvUxvJz6vN1C4C4XKxZyEYKPzlHkY1Q5enKULj5jMJyhA Yc/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068007; x=1717672807; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yMLg5P8GKaZTkgjzD8R/QqO0sSQDVLJa6m0BArXde/g=; b=EsvFO7+HVTfnYb1t+u++VMg49f+EU0v6KSCxXwnv7wQyfcqx54w55aIihIXPOrcAhP UTAlRcleZXjgJVpgBo3mIVqFDQKVXkwjREzIT7Wiwmx/oSXYhMQGiBwtoor/dlmkeE/Z mTwRJbf9VENi1ieAg5aEbQpeoq7tN2Kq8JgoXQRig8V/wlJ7wWEGZErXIFc5j2xMavC+ 1htHkyJJaoDj7YsGbI7PnWTQIDpO2oKaImn3fo9gg4Cep6PTyhxf0OZvxyLUYL/v6Vsb csrcSoxzefcr0zCPEQGPDlXPhZSYwX00lh4wYW945dpFwAStBUMRc4kmpdkFB60u+nkL Jxcw== X-Forwarded-Encrypted: i=1; AJvYcCUtoTIAL91PTfmtIpzZ4l0dro0931cq+Cyk3BHeaV5yBOIkCSGzsrGKJCEdhJchgc5Kc5eJIt5P5ETAR97JqcnrxXwh3iwKsHKK4FBz7nF9WnhniyWdeaDfiuOT6O40geNyyhlgTotrUbdNB/Xyi4thoGDx2Z7ozaelLhoV0WYYz7Ng2qll1b33kLiJsibXGVxeAIlZ/emxGA/AqA== X-Gm-Message-State: AOJu0Yw677l5FzMGm3qJU1smE7UIQTwVY7+jPU7e564q++XQWgwI9w3M TqML1XiBgWYtLunUI8HefQtNdJZ4pjIqt0tqKyZhUKi/0SWQjotH X-Google-Smtp-Source: AGHT+IFxgfGuk4WvYoxrChp+N4lQDR0Si7/7Vlzjuk7wpmJrGZ30ttsy31urG1IDYNTmVV6Zs/i1hQ== X-Received: by 2002:a05:6e02:b27:b0:374:6472:d923 with SMTP id e9e14a558f8ab-3747deba9demr23632145ab.0.1717068007160; Thu, 30 May 2024 04:20:07 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6822198a7e3sm10550697a12.34.2024.05.30.04.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:06 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu To: Heinrich Schuchardt , Anup Patel , Guo Ren , Palmer Dabbelt , Paul Walmsley , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , Sven Joachim , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Tony Lindgren , Thierry Reding , Jonathan Hunter , Arnd Bergmann , Mykola Lysenko , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: [PATCH 1/6] riscv: defconfig: drop RT_GROUP_SCHED=y Date: Thu, 30 May 2024 19:19:49 +0800 Message-ID: <20240530111947.549474-9-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530111947.549474-8-CoelacanthusHex@gmail.com> References: <20240530111947.549474-8-CoelacanthusHex@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1883; i=CoelacanthusHex@gmail.com; h=from:subject; bh=FEk4ZichD7CqTRAppezRH+4H9dhTF4GYT9EUDpibpAE=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJ16rP/zv78xijc+SbFuluq7KoDVxfdGb3ntmwV 4b5b/rJ87kdpSwMYlwMsmKKLGI7n75eVvrowzJekxkwc1iZQIYwcHEKwERiuRj+FyWbH5kg7nGC bXudX8b5SVrfDn7ffNohZmU9l4bwcat4U4b/tfNS9VctvP7+NI+h5NrpGpcrHCr9as+x9XPYVM9 LOc3JBwDwgkw9 X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_042013_472151_18E54E46 X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Celeste Liu , Lennart Poettering , bpf@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Commit ba6cfef057e1 ("riscv: enable Docker requirements in defconfig") introduced it because of Docker, but Docker has removed this requirement since [1] (2023-04-19). For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budget, since the values to assign are both upper and lower time limits, are absolute, and need to be sum up to < 1 for each individal cgroup. That means we cannot really come up with values that would work by default in the general case.[2] For cgroup v2, it's almost unusable as well. If it turned on, the cpu controller can only be enabled when all RT processes are in the root cgroup. But it will lose the benefits of cgroup v2 if all RT process were placed in the same cgroup. Red Hat, Gentoo, Arch Linux and Debian all disable it. systemd also doesn't support it.[3] [1]: https://github.com/moby/moby/commit/005150ed69c540fb0b5323e0f2208608c1204536 [2]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [3]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Fixes: ba6cfef057e1 ("riscv: enable Docker requirements in defconfig") Signed-off-by: Celeste Liu --- arch/riscv/configs/defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 12dc8c73a8ac..de85c3ab261e 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -9,7 +9,6 @@ CONFIG_CGROUPS=y CONFIG_MEMCG=y CONFIG_CGROUP_SCHED=y CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_PIDS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_HUGETLB=y From patchwork Thu May 30 11:19:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9493C25B74 for ; Thu, 30 May 2024 11:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k9H/ExxT2TfB57f0gaf/CRXY4yw4pvanWi5018a2BtE=; b=E9l7qG/EUjCyJU RJ7Q6bOjZeyuakSJ0byXsHfKx2U3tP/e3HkDZ1HThIWBLUiSk5HvH6tDRWYMJLlnanshhLaSJQI6a KiduUJY6jJL/ZULe7V/WPIMVRe5JdAH4zNZKQz/xbr7ZN0/5zv+75aziDIze3Vga10OOOKwlk33PI Z+Jry4KLz7nSXjS/i6gGO7IsU6QyzfsavIXWJbh8wPSfmHjF6LskAn2s8BJzSId4Y+iUWDV4TfUJM c7T1t/1uR1NZUzOuXQ86WMC8HtfM1FJOKUtAFbs1KlaRtPFhMpUEWRmeWuheWqnkgrTyuM3Ocbcpt 5BdwdedFpc/9la83Ncfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdvi-0000000771I-3bAn; Thu, 30 May 2024 11:26:46 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdve-0000000770L-4BOD; Thu, 30 May 2024 11:26:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=UKDbsptHUOf10z9ycdwLPkvcPnlZIVKylvaMWlEqffg=; b=Hq98IzfvtmD0MYHy9lIlXtbjJs mtIjsmlBTDZuXO9CJ8jn4R66VUX2mCROsZFr64Yc3XsWW9Ygyz6x9hGZQfJjibixm28eLD6YrKPX/ cIjzQy5jVE2Xfh3fvvE9sFwOH8AG1sdSHL3VAfAld9FS7qTiwBZNxK9LGfMoJdLnWFppnvl8+vr3x JTLiysmmHwF/LvZuDvMpP20wZybg9oKa0IQlf5kO/eefOMItN25mN4OWJzaD50BaY4A0Xc7oCW+eA /H5ayqw45BgsvKbWoQeWxwCsjGUjXBZTwXOiBACPFWDOuI2mSleuFeAvskxbp3dIFIFuuaeIEDa5T SM3kT03w==; Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdqm-0000000EYLc-2TVe; Thu, 30 May 2024 11:26:04 +0000 Received: by mail-pg1-x541.google.com with SMTP id 41be03b00d2f7-6bce380ebc2so678541a12.0; Thu, 30 May 2024 04:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068010; x=1717672810; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UKDbsptHUOf10z9ycdwLPkvcPnlZIVKylvaMWlEqffg=; b=lzwTzqISui8LMvaqYeHNGY/9DMXBwNPq+uZlGamyHfA4o9CLOmLxpKL0MZmxIp9vih 76/xZRXwKePeHzqLqYnOD2VPv53NPM8CklsljhvmGJaIxjssAcSk+dJ6jwCHFSgMrFjw KYhPX7/60wrNKuA48PjkEt2hF8uWqJm7Fc1yVgN+fS5UR3KWtS4Oh60pmg/gccVXBzES fmyrIDh8dZw2F6ScfaS9jO5I4ElLdkIPVX0NGSIXNEivQvnmfYyF6LvsUy0nFqnOZVN0 o4taSVvpTka4aOSTHAmKg6Xfs2CSzAqjmwj1B3V6l9NnLJGHNtEPIpVfszU2ue6MyS6u S4Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068010; x=1717672810; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UKDbsptHUOf10z9ycdwLPkvcPnlZIVKylvaMWlEqffg=; b=jtwjDmBaNWVAW1rTPvPXjQn4DW9VffCdLZX1CZpk9NfcUtb9zGPhXfBDiYYoIEZK0T GkkSguTg6DCi6WYAxkg+zKQqHJHc7y1HT/9PHeJa29UDscWlEmyn4ngz1jGFed7zhMse 4J8Y9ysRiAATgnLTNQk9ZsLRuT/xt/IJbkaIXZZiRVZh2Ga9uyceVIvo3aRQUNtkD+/Z RDBTzI1ZVB6gB9YJ+aEWxem9s32RnbAlomWNaR+2Ohxf0pU5ecXnOBI1j8Z0y5tR1odc dLJAyQ1LKVtkbemmv5z2ukyH/jY0urt226LDbEKBHEUTxXlbtVaVpcnbyt1J+p9+1Wri LRNQ== X-Forwarded-Encrypted: i=1; AJvYcCU8kwFV37H5z6GXyiN09+tuEM/VPjP/BrfWJsnpZwjoHZkVHRigtSu+VqqZSQz1UcA8QwYBGQNH+vTjjcUOEM/jGsBh8XTJMosmsqsZNNR/HNRXrVmm8V1ABsQ2Wag+xwP8TF4wMJizH/iZm31Cn1MUa0hBOx8VeV+02pRc+yRpS5e0tZpjYKk4mQTt5gvGnP0xkmA5cPq1NCXXPA== X-Gm-Message-State: AOJu0YxTuwbMRicLgDduJhMLqOlXC0UH1ceGyubsLQVz/5CsFBZsgOiW wXkXMtnkhadw10rsAGSiAx1UdW7FoKHxS59Wn4syNVhPToUMWzKh X-Google-Smtp-Source: AGHT+IG8jDyJ8as1gn+77mY1eHAg+/C0hnh88tNUqGm5hMTpX2IBrtY6RK5OpQr2kS5B3uzx1FXS4g== X-Received: by 2002:a17:90a:b005:b0:2bd:f3dc:62d0 with SMTP id 98e67ed59e1d1-2c1abc41427mr1745172a91.37.1717068010054; Thu, 30 May 2024 04:20:10 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a777a976sm1534201a91.20.2024.05.30.04.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:09 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu To: Heinrich Schuchardt , Anup Patel , Guo Ren , Palmer Dabbelt , Paul Walmsley , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , Sven Joachim , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Tony Lindgren , Thierry Reding , Jonathan Hunter , Arnd Bergmann , Mykola Lysenko , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: [PATCH 2/6] loongarch: defconfig: drop RT_GROUP_SCHED=y Date: Thu, 30 May 2024 19:19:50 +0800 Message-ID: <20240530111947.549474-10-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530111947.549474-8-CoelacanthusHex@gmail.com> References: <20240530111947.549474-8-CoelacanthusHex@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1629; i=CoelacanthusHex@gmail.com; h=from:subject; bh=h4glHeoHIj1lCrO/9cfcaGCSQbc7rI3O4B300cL/OlA=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJ1/n69Xxaeu7NP36NP963pkB213cGx83nk+e+3 76w6tID+4kdpSwMYlwMsmKKLGI7n75eVvrowzJekxkwc1iZQIYwcHEKwESKNRn+WU/3fra1weNu krm/TiCjVtvfa8brLyYvXBxW9+bE9hjTBwx/hWUiri0SdmdLcHzGfvl11UovoVVOsWVy29fF/F/ 2874CBwCfBE2n X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_122357_043654_C33B97FC X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Celeste Liu , Lennart Poettering , bpf@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budget, since the values to assign are both upper and lower time limits, are absolute, and need to be sum up to < 1 for each individal cgroup. That means we cannot really come up with values that would work by default in the general case.[1] For cgroup v2, it's almost unusable as well. If it turned on, the cpu controller can only be enabled when all RT processes are in the root cgroup. But it will lose the benefits of cgroup v2 if all RT process were placed in the same cgroup. Red Hat, Gentoo, Arch Linux and Debian all disable it. systemd also doesn't support it.[2] [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [2]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Signed-off-by: Celeste Liu Reviewed-by: Xi Ruoyao --- arch/loongarch/configs/loongson3_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/loongarch/configs/loongson3_defconfig b/arch/loongarch/configs/loongson3_defconfig index b4252c357c8e..4d93adb3f1a2 100644 --- a/arch/loongarch/configs/loongson3_defconfig +++ b/arch/loongarch/configs/loongson3_defconfig @@ -23,7 +23,6 @@ CONFIG_NUMA_BALANCING=y CONFIG_MEMCG=y CONFIG_BLK_CGROUP=y CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_PIDS=y CONFIG_CGROUP_RDMA=y CONFIG_CGROUP_FREEZER=y From patchwork Thu May 30 11:19:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680300 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBEA1C41513 for ; Thu, 30 May 2024 11:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ISSpnAr4wAi2j5dGP/+Q+IvbBIWiNv+Sq1UoKHASKsQ=; b=w//xqr8ZgCaeAi rh+yNuQClExn7cHwcVJQuABW31Jjaofl5TkHmaFZ/ENcDvqEZLFeZzKU01wb5UEridRqYNdsOZyyL 1DTZWhNPseefR9tun4RWcr0UZXvOFzke963PFXumYGZ5Y0mrYFtPLzDZsXYc0b5D82DyKAoCKCh+m aMIS7NRx4cOwhx7tjuXG1x3nem3DO4zxEARgbWTqb6pr1syrz2WzbFGgnDEHLFxfnGJJFtL/hMqtn fh+80C/yRYCN33OtR3wSEppHFbWH5I4pZlGqIuc39s03qyXMWZf+s5Sb6FnqtwtVafP08B6PehXtv g1bVeNlMURSFukex1nfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdvg-0000000770O-3gtH; Thu, 30 May 2024 11:26:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdvd-00000007704-0iBE; Thu, 30 May 2024 11:26:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=iS6/3rMP5XMaNOKzvqnjBVlN/YxRA0hOsUbIiKByQ6o=; b=KGAnzE+WhBKzm/OVVIbQwzi20G HTWSOsVIPdplnGkmKhLKHdhJTNi09A6AHv5ZsZPERZMeyRD0M+7N9wYRFNuqp0nllDBufy/yqCHE/ YbVD7Py75XEk+EgKxUewFagu9Xy/RxKgkYeAxmOcIAmPqSspPMY0obLNjndjlT/uS7V2v1p1y6tjc E1pSN+yjA6YSrp1ejLzxeb5HfCmmWuLNhzMgtRbmPtyU8+aC+GZKNKZ1IBOoFaOne8kjDoet4atvR NLcjSIe2FNsscTQNzq569nTGXrqh0yHs3lw2Xc6+vBQrkUVgaxsZcAUrB3ailKxs16XaiM8dfPmJh sBQLSuJg==; Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdqm-0000000EYLg-1frm; Thu, 30 May 2024 11:26:05 +0000 Received: by mail-pg1-x541.google.com with SMTP id 41be03b00d2f7-6bde8ca4af5so652656a12.2; Thu, 30 May 2024 04:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068013; x=1717672813; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iS6/3rMP5XMaNOKzvqnjBVlN/YxRA0hOsUbIiKByQ6o=; b=JjD2kPdXLB5gVut0vdCChOW+U6Jafqtlg+DLQOdKD9hu0QtocbhSUFC4uV4ERLU/gM jksxhvgieUjxYmzVdRz6T/u2P30yRWlhxPafEROboNLrh7GYIdJ8ObQ4y66gK28fa1Tu nUkQQtNMWqDktRe9qvDgWft4cFeQ12Iw+ZheAb7MlaJejjfFapn0n3y0Vqpeps4wnIrO 2FDFKwgzOSe9K7y7FNkJegvWmOAKQfE5D0ktttpK+3N0sVnJ9T8K+omND6UumCIu+C6M Am2HxuiN8Gun+hdy6YDWpB7+UgynKKb6/74wWHpep6CRudwA2iDfOynwRUJTHiY5VJpb 4xyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068013; x=1717672813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iS6/3rMP5XMaNOKzvqnjBVlN/YxRA0hOsUbIiKByQ6o=; b=OPJqk8eKhAh3A9KupmYEMMDAgeRjuUR+q7LcLB6fM9me6vHbG1/T4AU6bhiUM98a1m 8vM7XqmnJq0mEedN21MZPQBvGfsV/7ycmlCOQt+0STB+affXAzor2OXownSNGvgPfIn6 Z6M0b141wCnxVzRhXs6+kz9wwlwRfJEwdQ4n7Xg8PtiZnRhmOURHfplKRHwNYRsVJ22h sHubG+YEyoDRoXsskK+szuqVSnP7UABSbA73qUZ+sJU+sgN1muxOjpw/8SfGY+3N2jUa 5PCF+EWh/OgXSEDz3HnreqNNKbgWsEh7PwQQY8853hKI1/ccLaL8d+QC7XBsUKFD5UO2 Aiyw== X-Forwarded-Encrypted: i=1; AJvYcCWUH/f8WF/+1MQJrJbTYaOFjeY5caeBRYEPIEjHOtkY5Y+vKUKObKkG87y4FNKqwcCxofFIBtxfCXFQrT682LmY4mMQ38P8d68kgULRHg7RUx+N5c/VN2YVmTv/kpbTw2V31ItOo9YSLUS8qdvyDWAxRo6ieziUhuWFdQvvwdmVgKLvrtJ4BHF5TqN7jU9tcE1tCN7O/vzQn68Bbw== X-Gm-Message-State: AOJu0YzXm86I8Y5EiB9uZhPgGKdnvLykLiVAf5xC53rvfAV50vZbSe7S 12ZLWeilIO3/iY32w//WGQJFITu/hIxndqW+p9mVbht59UFQwwBP X-Google-Smtp-Source: AGHT+IEz4if+6nQ+0nx1w/27JH/n7YuyuluXY8+GolxtiPn58HNH1t1JZeRF1Dn7No9YQVVS74OoWg== X-Received: by 2002:a05:6a21:9982:b0:1b0:111f:2b7f with SMTP id adf61e73a8af0-1b264645684mr2023903637.39.1717068013130; Thu, 30 May 2024 04:20:13 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7021feb0b7dsm2116952b3a.25.2024.05.30.04.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:12 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu To: Heinrich Schuchardt , Anup Patel , Guo Ren , Palmer Dabbelt , Paul Walmsley , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , Sven Joachim , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Tony Lindgren , Thierry Reding , Jonathan Hunter , Arnd Bergmann , Mykola Lysenko , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: [PATCH 3/6] mips: defconfig: drop RT_GROUP_SCHED=y from generic/db1xxx/eyeq5 Date: Thu, 30 May 2024 19:19:51 +0800 Message-ID: <20240530111947.549474-11-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530111947.549474-8-CoelacanthusHex@gmail.com> References: <20240530111947.549474-8-CoelacanthusHex@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2501; i=CoelacanthusHex@gmail.com; h=from:subject; bh=iuzxupRQlKvaCQIBiZ4xlf2r612WVp0v0y+1iZrYbx8=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJN5aHbSvetGXDI9/Lgg/2RZ0Pr9tZ2Zeh8l34s JFf/NkbX3s7SlkYxLgYZMUUWcR2Pn29rPTRh2W8JjNg5rAygQxh4OIUgIkc2cnw3+dB99H+ecua Oiy0mLQjDFasNi7dvfTwkdv38ytDfrqaLGRkOOx28cCrP0VHmn/UfmB7LhiTWCzOvmna5ka3YIu yCes1WADtNVCT X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_122357_710139_AFE0F14C X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Celeste Liu , Lennart Poettering , bpf@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budget, since the values to assign are both upper and lower time limits, are absolute, and need to be sum up to < 1 for each individal cgroup. That means we cannot really come up with values that would work by default in the general case.[1] For cgroup v2, it's almost unusable as well. If it turned on, the cpu controller can only be enabled when all RT processes are in the root cgroup. But it will lose the benefits of cgroup v2 if all RT process were placed in the same cgroup. Red Hat, Gentoo, Arch Linux and Debian all disable it. systemd also doesn't support it.[2] [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [2]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Signed-off-by: Celeste Liu --- arch/mips/configs/db1xxx_defconfig | 1 - arch/mips/configs/eyeq5_defconfig | 1 - arch/mips/configs/generic_defconfig | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/mips/configs/db1xxx_defconfig b/arch/mips/configs/db1xxx_defconfig index b2d9253ff786..6eff21ff15d5 100644 --- a/arch/mips/configs/db1xxx_defconfig +++ b/arch/mips/configs/db1xxx_defconfig @@ -12,7 +12,6 @@ CONFIG_MEMCG=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_SCHED=y CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y diff --git a/arch/mips/configs/eyeq5_defconfig b/arch/mips/configs/eyeq5_defconfig index c35c29a4d479..3794707c9522 100644 --- a/arch/mips/configs/eyeq5_defconfig +++ b/arch/mips/configs/eyeq5_defconfig @@ -8,7 +8,6 @@ CONFIG_IKCONFIG_PROC=y CONFIG_MEMCG=y CONFIG_BLK_CGROUP=y CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_PIDS=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y diff --git a/arch/mips/configs/generic_defconfig b/arch/mips/configs/generic_defconfig index 071e2205c7ed..fa916407bdd4 100644 --- a/arch/mips/configs/generic_defconfig +++ b/arch/mips/configs/generic_defconfig @@ -5,7 +5,6 @@ CONFIG_IKCONFIG_PROC=y CONFIG_MEMCG=y CONFIG_BLK_CGROUP=y CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_PIDS=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y From patchwork Thu May 30 11:19:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C153BC27C43 for ; Thu, 30 May 2024 11:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yuJ0EeRnVEuz7VaPid+TSAegbPiRxWDJkLn5mYQIgAA=; b=Ql+jIqgg1biVbc j7b59oeODuY9RLnFtTrcvll257qKUSBAK3lfF4644QfcwY98rjGtKJ6a5lLGD2DfA98Dvrog14o21 aY9XV27YchhW0ifd9F7UxCTchdFETZeCG6JqO9sAub6BBrHeXY0BMd9oLXcPjYzVG0AbbOtID575p MsQ2ChYXXTw3FB6nBmLXzsLxymeWebPlCSNs74C4Xo0UhcoR/k93vLEXQTyOI0kiU9BvHeprwjbQi hHf7GtmDGe8W0Q2Sl888rtpBFLWluN9BFKK4mGZydd3s/3OmLJb6wCEExLhwx/FxFRKBTJRTGlqp8 uYDEAdypPl0QSUtHPulA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdpf-000000074pk-0nqG; Thu, 30 May 2024 11:20:31 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdpR-000000074iN-3Tje; Thu, 30 May 2024 11:20:20 +0000 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1f480624d10so6712545ad.1; Thu, 30 May 2024 04:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068015; x=1717672815; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dH4BG/CKSo6jMt/U3mBL2fbfMm4MpAzh5hyuRszV+t4=; b=VlSskVbTZs5kNtGmOMFcNTz57ydP0Df9MBQn/Tdc/FYHpPo66YiECSvOGIocI4kjS7 dr9v6QaqesmNW840idlwVdhVuXG2qWsgYm2fIz6MZOFZPfIk1LnzgY93x9mK9AMrYQ2t AKcZgOa0e7zVPzNnk7WOrlk+L3r3iC2GBoEGWKxrL3PTfBhHzRXwFP/mdpxOXEJ84vpe tjRpqlsBH1GRD8HFnlZXiMOEt+GWF/w+MXb3KjBCdePSzmzPIcrUlVY64vK9gy7nuWPK ZuzrQEXaarCJHqF82q8nJRizN1JR5uqqNp6ivQKfpHU6OlUp9817IFzUJU34f4BuLpn7 ea+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068015; x=1717672815; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dH4BG/CKSo6jMt/U3mBL2fbfMm4MpAzh5hyuRszV+t4=; b=jlzUs3LtgYQEoYWBNu+YOHMBwLNx6aT8JdAEFcqfBJaOieAJo7AewxI7ptccnEKAz5 rOcV7sYRDPPtOd6zBc0zxORvqmYMusm2O3+OsjH1cKX/gS0bf/6+4MtszYAxARpxOWSB DMYsNffgnGab+ECp4KVS2PlseIKbzfdr+GQSFE4pQC6QgEXnYMqt0JduZeVva6VWY1bW fV/hMWAbTpeCEizVOJsoKCKr/zIUFiD6Q3q68lf0kAnBFKTsTWmmbRuRY2r/gZr4xKIf 9b+vsFAZnedBWzRdy7MbE7B6ODdaT82X6dKCb/yD0a5Tt6zJJ788q49zyTsk3b2BYRdo N37A== X-Forwarded-Encrypted: i=1; AJvYcCXc9zNm8Y2XnQp1EI4hib3mnkCp17zJtmIxPKjHFMm3AbbAJicsA0xNkciFs3o20AH2WJnOHGf5vQzN32MScd1m/1MXWYocHKHUUySCpIESlq8IdHgkMLEQNtvAnZ2a7/R6wtae0ZtCdf4Ydnf0m6R0kEvdpyM3S4xB1TVxzY4x/X+N+vlsCgZuS8FpA8ZP6dG5XAi7UoD21qYAQQ== X-Gm-Message-State: AOJu0YzWZqpXvZlwjWI2ink+5mlOJY6dRicYnuz4pDLfwE2Fj3RK8SH5 XvRauHSQIocd2VXPRrktolot4+Loy1Wimw74rVAQx6tkB6ZSEfSI X-Google-Smtp-Source: AGHT+IG8jHeaxjvonyo+8k1nlUsHHhRggP/hzSY+HPghj9Yo3s6jnJryohh0teWJzBXwbeSfn/+xNg== X-Received: by 2002:a17:902:ef45:b0:1f6:1a91:e744 with SMTP id d9443c01a7336-1f61a91e96fmr18511035ad.21.1717068015407; Thu, 30 May 2024 04:20:15 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f48bbbcaf0sm81594105ad.48.2024.05.30.04.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:15 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu To: Heinrich Schuchardt , Anup Patel , Guo Ren , Palmer Dabbelt , Paul Walmsley , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , Sven Joachim , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Tony Lindgren , Thierry Reding , Jonathan Hunter , Arnd Bergmann , Mykola Lysenko , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: [PATCH 4/6] powerpc: defconfig: drop RT_GROUP_SCHED=y from ppc6xx_defconfig Date: Thu, 30 May 2024 19:19:52 +0800 Message-ID: <20240530111947.549474-12-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530111947.549474-8-CoelacanthusHex@gmail.com> References: <20240530111947.549474-8-CoelacanthusHex@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1725; i=CoelacanthusHex@gmail.com; h=from:subject; bh=Y154zJjweZqXiEFejTlLKuxlmlIxiSlX1+quATRaPS0=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJNwz83B+K5vRMSbg2N3g2v23ulidmG/9Zikz5N r1Q2vnFpk0dpSwMYlwMsmKKLGI7n75eVvrowzJekxkwc1iZQIYwcHEKwES4nzD89/SoEmo8dO8G n0eO7Aw1cZt90Zb+dnteRPD1pkVFLBEsZmT4umrj9jtvzS78ub1pD3/1w7Mzvl6+8T9jVc6dBXm cuVf72AEUHU7d X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_042018_053637_47E70143 X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Celeste Liu , Lennart Poettering , bpf@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Commit 6e5f1537833a ("powerpc: Add a 6xx defconfig") said it was copied from fedore's ppc32 defconfig, but at least since 2015-06-10, Fedora has dropped this option.[1] For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budget, since the values to assign are both upper and lower time limits, are absolute, and need to be sum up to < 1 for each individal cgroup. That means we cannot really come up with values that would work by default in the general case.[1] For cgroup v2, it's almost unusable as well. If it turned on, the cpu controller can only be enabled when all RT processes are in the root cgroup. But it will lose the benefits of cgroup v2 if all RT process were placed in the same cgroup. systemd also doesn't support it.[2] [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [2]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Signed-off-by: Celeste Liu --- arch/powerpc/configs/ppc6xx_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/ppc6xx_defconfig b/arch/powerpc/configs/ppc6xx_defconfig index 66c7b28d7450..c06344db0eb3 100644 --- a/arch/powerpc/configs/ppc6xx_defconfig +++ b/arch/powerpc/configs/ppc6xx_defconfig @@ -12,7 +12,6 @@ CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y CONFIG_CGROUPS=y CONFIG_CGROUP_SCHED=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y CONFIG_USER_NS=y From patchwork Thu May 30 11:19:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CB11C27C43 for ; Thu, 30 May 2024 11:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/YzTMN67ULMVtl4zNEwatFaqe5VZM8Nm9FBdS3XNLs8=; b=V+qAYJ0jKKBo2X KNRsDsenNQdKpflphGJwFdQM0XVN0A7qZ2e/YVG5BKgnwTFY0uxhuAbE4DVxe6FTGgUDPRK22iCca edqOdfaxoA+NzijBdmkla3HQR+W08Dk1019RduZU9ubANNEctHY13p+n4UqKiCuY90yhCThr0ac5N CjJ9UatjCfOzUuQT2uDTpIPas62HnPnYF9g0Lyb7CcDE4PizjgxEUGlqtK7PKGFKesuxSGlS/xSxR K1CQsaVEru8esppUx9tqCEBFToe7a4rMua9x/p/RjRYhKiZa1knvLbuVtM0DO0ZUZYgmAG6EGiseL NLhkxAUYhPkDmiY/jc+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdq0-00000007503-3sPy; Thu, 30 May 2024 11:20:52 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdpU-000000074jc-0wL8; Thu, 30 May 2024 11:20:23 +0000 Received: by mail-pl1-x644.google.com with SMTP id d9443c01a7336-1f082d92864so6321235ad.1; Thu, 30 May 2024 04:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068018; x=1717672818; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FGiqpKa0bHIEpa15rly2elByLBlsz+mavCGVuSQB03U=; b=kXXjoo80i/xAEnYoof331s+rxd75V9G7EUNfT1H6rhm+QPGZ6+I/fDBmcwIeINGmsI XVLQ/npxXnGLp4nng9F5t9AFs3dFBmeKRqA09R9zy/HvG9Et3Hd7zcDs6D1khR2dyxEa J+G5wgZUtUfCipMk7o3TpK8R4YXSvWpGk4ilpd8fTtLe9+b5UQVo+0Ert3BZr1toCWwn 9WhiQCL+cq2hwK3lhN2qpOI/UJ8Gc/rMPJl/1mHhuS20M41+D3VzQgqEvfsMkXsTbpp6 MSc0J2hfpz9WCYBBkTs2XYF9TfIlF0TpkhlntBd/FNrVZcdw0yPfA/5OOnCJTNXQV/ro r43g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068018; x=1717672818; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FGiqpKa0bHIEpa15rly2elByLBlsz+mavCGVuSQB03U=; b=bSglciWPVOFGewBPoywyDO676cxbIL4U88sbeBrzkHGHaDE5t5yXh+wQ1cJJy9pWLJ gB5WHEgr+NDj+pGCNP62bWX2Lzm619MQwHhVkr10/Hr3DSwNb6u14vSC5IyfBrm2LVb8 +xCWzMB9XGMSTuUO7ElP/Kvc8QyKUWxozI2f/fhLT7mUMcPZX8CaQJgCMACF9DsyDjvK vgJmdNa8sLvQPpz2p8aMgVRhzdhM5PwSRxQMpYXhcC13p/KWx4UEFq5pAGG4MSlvWKZu Xb0W2PZdWKQbeRFpx0eG+8ThJWPngoaK2XzGaaTBTGgoOXDV807vLydfa99I1ogLz3kh 1xtw== X-Forwarded-Encrypted: i=1; AJvYcCW7AnCHPerhP7AccjD77cu5bvzybmRXOnTfW67Mh9X0vWh0Mu0rnOnqwvDeVxHZV5OvasSgq6a1m2IDmp+wTh/WzqgeH2sjIsEwVx+Pvz43jAyzDsK210hj11zYWGP/mINdZUWMxu6hILNMBry5nNrk9Jin59RylvNp0U13QmQVSUMlbH6uC7+CbcqPlFB+ZUVHDAyu43xTb/HIBQ== X-Gm-Message-State: AOJu0YxhzqnqZ4aNuZu58oax01HYyHI672tLctWN6jsqT+FgD9THqRmm RuDH0OBIfo+39Uz0Xaf1AcbAIgjKqmM34O9bherhq7RwXETU56Vb X-Google-Smtp-Source: AGHT+IH8SBUM4HFPal7PP4GlEtGKEuppsnSX92o9KNQGYi+syJrrgm3CpsZ+Cwm0ovcoR5ODsoOSkQ== X-Received: by 2002:a17:902:f1cb:b0:1f4:f1c1:646b with SMTP id d9443c01a7336-1f619610e86mr13465395ad.33.1717068017750; Thu, 30 May 2024 04:20:17 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f62218d9e6sm9517475ad.117.2024.05.30.04.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:17 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu To: Heinrich Schuchardt , Anup Patel , Guo Ren , Palmer Dabbelt , Paul Walmsley , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , Sven Joachim , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Tony Lindgren , Thierry Reding , Jonathan Hunter , Arnd Bergmann , Mykola Lysenko , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: [PATCH 5/6] sh: defconfig: drop RT_GROUP_SCHED=y from sdk7786/urquell Date: Thu, 30 May 2024 19:19:53 +0800 Message-ID: <20240530111947.549474-13-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530111947.549474-8-CoelacanthusHex@gmail.com> References: <20240530111947.549474-8-CoelacanthusHex@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2029; i=CoelacanthusHex@gmail.com; h=from:subject; bh=kOqrnzdbmJCW+4DZmJVchuzFR6LT5fL9WaReqTWmC8g=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJNwub0yXLjr83sFl6+r9m9kR/++RbfTfmNMpv7 my3dmlavLujlIVBjItBVkyRRWzn09fLSh99WMZrMgNmDisTyBAGLk4BmAiHHSPDiWeRLf+fbOwM 1WVrORm/XDDz8bQ1DJ+etga9dN23//qBHoY/HAcKm/+7fhPVYMsRuzTfViI8IXPz8oWr86eHXVw Sp9rHBgChF03a X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_042021_323285_DDA68F02 X-CRM114-Status: GOOD ( 11.83 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Celeste Liu , Lennart Poettering , bpf@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budget, since the values to assign are both upper and lower time limits, are absolute, and need to be sum up to < 1 for each individal cgroup. That means we cannot really come up with values that would work by default in the general case.[1] For cgroup v2, it's almost unusable as well. If it turned on, the cpu controller can only be enabled when all RT processes are in the root cgroup. But it will lose the benefits of cgroup v2 if all RT process were placed in the same cgroup. Red Hat, Gentoo, Arch Linux and Debian all disable it. systemd also doesn't support it.[2] [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [2]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Signed-off-by: Celeste Liu --- arch/sh/configs/sdk7786_defconfig | 1 - arch/sh/configs/urquell_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/sh/configs/sdk7786_defconfig b/arch/sh/configs/sdk7786_defconfig index 7b427c17fbfe..3599b1683593 100644 --- a/arch/sh/configs/sdk7786_defconfig +++ b/arch/sh/configs/sdk7786_defconfig @@ -17,7 +17,6 @@ CONFIG_CPUSETS=y CONFIG_CGROUP_CPUACCT=y CONFIG_CGROUP_MEMCG=y CONFIG_CGROUP_SCHED=y -CONFIG_RT_GROUP_SCHED=y CONFIG_BLK_CGROUP=y CONFIG_RELAY=y CONFIG_NAMESPACES=y diff --git a/arch/sh/configs/urquell_defconfig b/arch/sh/configs/urquell_defconfig index 00ef62133b04..9cf4a719001e 100644 --- a/arch/sh/configs/urquell_defconfig +++ b/arch/sh/configs/urquell_defconfig @@ -15,7 +15,6 @@ CONFIG_CPUSETS=y CONFIG_CGROUP_CPUACCT=y CONFIG_CGROUP_MEMCG=y CONFIG_CGROUP_SCHED=y -CONFIG_RT_GROUP_SCHED=y CONFIG_BLK_DEV_INITRD=y CONFIG_PROFILING=y CONFIG_MODULES=y From patchwork Thu May 30 11:19:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0E4FC25B74 for ; Thu, 30 May 2024 11:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ErWaTyxBK8QwZUX/9p6AdbMUxP4zwfRr7nL4/uO5ZgM=; b=KH2EHa9RKiCz0D lAE15b8hirrPiOrXRgIj/13ab7LaV3TNQZuTA8Rco8ECd+rFciY8r+EOmk6WK2TeIm2LS35a8JV3W BZsjpzk0j1AQx2jgmWg+h+aaFIDlFxG7nEGiH0OPjjgd2Sys0hhzYrdy8Gk9kEEqWRZQGJ4GP7rLA WJBhg2HxWzr3aadBj44QMVQZqlHqP0enTq5HouNrE2IO/1PrHsI6cmq2sNfJpqcAKDrot0Gedh1SF 6E2nvMUWckZnMLXCh1+N3UoG4sLNMU2IKZJaICNX/DfhNA2sqga6oE5aekUeJnQU1bPOxSoLb9uCs CeRDe71wNVL5lecM0Qeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdq2-0000000750t-08uS; Thu, 30 May 2024 11:20:54 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCdpV-000000074kI-0Pjx; Thu, 30 May 2024 11:20:23 +0000 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1f44b45d6abso5218735ad.0; Thu, 30 May 2024 04:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068020; x=1717672820; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=10Khnm7VAFiOR+x13kGKX5QXUNu8EX2jhqaMmuaAe9Q=; b=nR9Wjf8g0XBC8oj1oxIpFVmot7oqcTugc6KyTWEu+XvOhb+KqOg/aGcPl/dUFzYXPQ GLyu3TK9NsB23Xm9vxfHXCi4x+ircmejz1LVvDzI3FYrC6m95sSv1ojQjbHskWB9hQvp 5KHPVHHQIhsdVh3TSRw5Q3MhjHDBGLRIckaGn7NS0oCyyHxRplSQGFIQBrQfLUP6umuX M/rQd9yErymtNVFreO29J06ORVbwZUqp85NWgMvITwagDTRZdqyDQTiK7ciJ3mivO8Cl HuR4lNiDhGU40aJnzxj0PhepLgk7l4TdxrJ5232idDQuuSDeampYGOadt/M3IXgubE/v aDEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068020; x=1717672820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=10Khnm7VAFiOR+x13kGKX5QXUNu8EX2jhqaMmuaAe9Q=; b=J52rqadP5kxAHGex30nCm8lYuKfBZR+CYoCscOP/qHY3BQsXngXjIec1okAgnWh0b7 AB0q/um17H+nLvU0bQuUx79vqMfE/ghB0a1L1oAw4/BDz5Ed3DmQo+lxtqmIQ2H7iano cwGnIZ9VoQ3f3dTB1s0T/vk5JciWlnIfeMA9PMgVGzi66jm9h4y9aBIlsr2cpTnWeRGM 8mvmuZZ0mZztfMVX4lmzibiwGI0CcccHB1Ics8HJPf/02V8dUmGHKCsDqZkr5CDPDu/9 nQ9BRXXGlhMuhNW1hWn+EsV6+r0UTRnchb40OGQUigrt/txb+YS/RWXUg0AGp1PAJp8w EzvQ== X-Forwarded-Encrypted: i=1; AJvYcCXhTbfsh3XA+Zo7/VZTWVOPV9WjIEGgZ30yxCQ4kZDbRWj8gqNCi8B/sGs0KACF+BQzQ0Zeoze4JLy7A4sWN+Gm2PhpcUSclnhNtRrLUlqvKYCXSyJwLqJ8zONY7gPGmdVXrapwVc5w6SBgnjwDeZUy3Lu522JpKl/yvXfX4/4gkzbAHa/DbUQf/cc7t+DvwvCNMhxGYBrVOJItcA== X-Gm-Message-State: AOJu0YxlsiQnt+7sPN39r4L3kMsEb/8kMqyNML9KQwpVK3QwUSbddZw2 8cTlSgygEijniObu2GITvY+gnv9/9K/2Nf2p1Wo1z7LeAgdwsfYD X-Google-Smtp-Source: AGHT+IFxkZxBxtRo803YeGMuC8sIHF/n8GOkz3SCFQuOwIu4wbjvdjgInTxjR211s2831JVg1Df+Ag== X-Received: by 2002:a17:902:f682:b0:1f6:846:c15d with SMTP id d9443c01a7336-1f61983ab3dmr21091605ad.47.1717068020137; Thu, 30 May 2024 04:20:20 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f48e95c85asm80546745ad.34.2024.05.30.04.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:19 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu To: Heinrich Schuchardt , Anup Patel , Guo Ren , Palmer Dabbelt , Paul Walmsley , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , Sven Joachim , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Tony Lindgren , Thierry Reding , Jonathan Hunter , Arnd Bergmann , Mykola Lysenko , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: [PATCH 6/6] arm: defconfig: drop RT_GROUP_SCHED=y from bcm2855/tegra/omap2plus Date: Thu, 30 May 2024 19:19:54 +0800 Message-ID: <20240530111947.549474-14-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530111947.549474-8-CoelacanthusHex@gmail.com> References: <20240530111947.549474-8-CoelacanthusHex@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2729; i=CoelacanthusHex@gmail.com; h=from:subject; bh=z/Xh6Oh4/edMyA0oTGEdVRRBweOMR/LS4ucNKKx8jxk=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJt//Jpz1/9vq+ftrjnHPOdUJ7Zl16y3oqfNMJ2 c4TmxeuZVnZUcrCIMbFICumyCK28+nrZaWPPizjNZkBM4eVCWQIAxenAExEIJzhf8HRRdu8P/5W lRSfdEtSzuIjW+AJrhe/BHfb27mxp8vLBjP8D+rcabfgddQ8Botz1wy6Gi5ev2tY0Ppvy/7rzt8 y5t8MZQUAhClPwQ== X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_042021_446674_11C961DF X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Celeste Liu , Lennart Poettering , bpf@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Commit 673ce00c5d6c ("ARM: omap2plus_defconfig: Add support for distros with systemd") said it's because of recommendation from systemd. But systemd changed their recommendation later.[1] For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budget, since the values to assign are both upper and lower time limits, are absolute, and need to be sum up to < 1 for each individal cgroup. That means we cannot really come up with values that would work by default in the general case.[2] For cgroup v2, it's almost unusable as well. If it turned on, the cpu controller can only be enabled when all RT processes are in the root cgroup. But it will lose the benefits of cgroup v2 if all RT process were placed in the same cgroup. Red Hat, Gentoo, Arch Linux and Debian all disable it. systemd also doesn't support it. [1]: https://github.com/systemd/systemd/commit/f4e74be1856b3ac058acbf1be321c31d5299f69f [2]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 Signed-off-by: Celeste Liu Acked-by: Kevin Hilman Tested-by: Stefan Wahren --- arch/arm/configs/bcm2835_defconfig | 1 - arch/arm/configs/omap2plus_defconfig | 1 - arch/arm/configs/tegra_defconfig | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index b5f0bd8dd536..27dc3bf6b124 100644 --- a/arch/arm/configs/bcm2835_defconfig +++ b/arch/arm/configs/bcm2835_defconfig @@ -7,7 +7,6 @@ CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y CONFIG_CGROUP_DEVICE=y diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index 3a166c2f02bd..9cb265c8d414 100644 --- a/arch/arm/configs/omap2plus_defconfig +++ b/arch/arm/configs/omap2plus_defconfig @@ -13,7 +13,6 @@ CONFIG_MEMCG=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_SCHED=y CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y CONFIG_CGROUP_DEVICE=y diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index d2a094ad360c..3a9bda2bf422 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -6,7 +6,6 @@ CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y CONFIG_CGROUP_SCHED=y -CONFIG_RT_GROUP_SCHED=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_CPUACCT=y CONFIG_CGROUP_DEBUG=y