From patchwork Thu May 30 11:19:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13680244 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFF9B6F2E2; Thu, 30 May 2024 11:20:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717068007; cv=none; b=N1lCkRokB69P7ZSyrhzXk3R3KRENeRCQlPAD9TBmKE+Lvnk+/+XsNeRz/7GStrb65qKivoK/qgVrX0najGTyGxo4neXAXhL3AVQTfDoabogPEcNbDRYNa0NpURlDYNBEkWa3JF4bZwZVXD73SQDWYzkBScDEZxhIUWDj9vGZGh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717068007; c=relaxed/simple; bh=YDOl/Eq4EU32U8REOXA1aLCIyDHNFvkWJvOdwbcP7JA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gSNyaZY5UfMtt2iyZ8vwLv/yvsUp8OnY96/YHI7yL7NQgMjXDRBNMcQX+kDGZv692jN4FRqFu2cY3cIx5nheC7BiX1RG+tMsk8/KpFZvvnbEhvPZ22RvbgivS/8cB7HDOVNMqsPV1h439SuCZYlW0vnrvaDQTcdTmfeNz89ERNE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TMnDA+mM; arc=none smtp.client-ip=209.85.214.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TMnDA+mM" Received: by mail-pl1-f193.google.com with SMTP id d9443c01a7336-1f4a52b9413so6390675ad.2; Thu, 30 May 2024 04:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068005; x=1717672805; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=z8dJKE69s5+86iqiKT1v7IFgnofzj53z+mkIUUuty68=; b=TMnDA+mMdV4bZkMZAb9nIvcwACBSlOM9kM5GC+yxIzU7+2tgTlhjHgAhpJqHuwHLN6 spZOivSs6iQnfZ/uP5ChenUi825P6SY/RkjoUNx64BmRKnmD/ktkwsYvnOS40qebLDCh jCFa9xQ0fsLuZL9JqnxNGXkey+1fV7JtX90cxRnPvryMdYSG6HGQMUQ4rB/Zy9aWx93s /H7xy0c74yPe4jojUHSqQox6t/FPp/6uL9txE2ZuR+80T+jiAV4WPC3O9Q/aXYdja19Q kil8/Ic2es2x3iogpye6zlwN/ynFUBt5eiNeIuTN5gseelL+vgximjSeTyQFYEUVvk4a PZKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068005; x=1717672805; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z8dJKE69s5+86iqiKT1v7IFgnofzj53z+mkIUUuty68=; b=RrB/R3HWLt6Ylkj6Hgxxq6KFs3QN6qVtP5f0JzPX/9Ump7iAAksun4tqaATTwpNXzD B/GfsJwf4flzK7GgwcAR2ZnoVhnwJNZwxaB4A7i6zXJ8eB8pE7WP6z4mxg9b3+0aDfBX ubCDx0VacUyTmv31Apji7V7ioczmPy1NEXDiT28zCOmyI02fdixxc9f5F+sXlhEbtEl8 D7ax6W+vIcwCY/g7Id8b8DbfuSagRBTN2trEBz1X5JfPELm70ilAne0ytSneuT0Xq/cJ CZXGNKxBdXAiz9DlpJamGeXEShWgXPgDAVaC/fT5BP2WXXkmmSE8Vi5j2DTw6nNpKW9b sqLw== X-Forwarded-Encrypted: i=1; AJvYcCWUl/N00iNwsLN16HXvBjqyrK82HKbuKKj/LpwSFWXvW2yLihJ6vtKCDVAustQP7a6TAfBcJzjoEEmVdKEa0Rf3P0mN11fzvEruzRZv5zpXZ6mCvLMyHFUNZCz24P1AJ5rxuA+nGuv5cX/0gHe/WiKWvMr+Jw7Hw5kynwCr9HC8j16ReszdX9wcymVPYKoq6BVA9wP+xuf+fCob+58ZpiDydu1CHjAGPLZcSCgCJ0Hg6l8nVZy88uEd1dKGugkCU9S5bEJpqjrEW0ZadcJKZOtp X-Gm-Message-State: AOJu0YyselM/f4vGUgJgnNJhLVaURHjlvK4660SXa6kkIz1cPdgoA/X6 GJWysucJyLWgFERmRcW8cMdXj1VX9Z6Fvt3EmkwwtyRtC8CilGKT X-Google-Smtp-Source: AGHT+IHnnxtV+JRyOSR711uh0rY3WubRdOsfI4Q80RTI+mV/CYp9f7gUkptu0Yhyjwe8jY0JUuOaAA== X-Received: by 2002:a17:903:22cb:b0:1f3:50e7:36db with SMTP id d9443c01a7336-1f6199310f7mr20627105ad.48.1717068004916; Thu, 30 May 2024 04:20:04 -0700 (PDT) Received: from localhost ([212.107.28.52]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c754d20sm116341765ad.32.2024.05.30.04.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:20:04 -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 Cc: linux-kselftest@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Lennart Poettering , Icenowy Zheng , Celeste Liu Subject: [PATCH 0/6] defconfig: drop RT_GROUP_SCHED=y Date: Thu, 30 May 2024 19:19:48 +0800 Message-ID: <20240530111947.549474-8-CoelacanthusHex@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-sh@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2134; i=CoelacanthusHex@gmail.com; h=from:subject; bh=YDOl/Eq4EU32U8REOXA1aLCIyDHNFvkWJvOdwbcP7JA=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaREJlycx/Wu4/Y1tQ+K7zVu27px3o+2Lk2ztb/Ozp zgqUpTP2XztKGVhEONikBVTZBHb+fT1stJHH5bxmsyAmcPKBDKEgYtTACbycj7DP527VsIyk9XS 03fzz7u7fEfWj2MbLsg93Phzuu9s68m3tf0Y/jtvNfKVfy57aprVB27vy3ZWNnJqNsYHao9/4hZ SOJ4dzggA3yZObA== X-Developer-Key: i=CoelacanthusHex@gmail.com; a=openpgp; fpr=892EBC7DC392DFF9C9C03F1D15F4180E73787863 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] I leave tools/testing/selftests/bpf/config.{s390x,aarch64} untouched because I don't whether bpf testing requires it. [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [2]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Celeste Liu (6): riscv: defconfig: drop RT_GROUP_SCHED=y loongarch: defconfig: drop RT_GROUP_SCHED=y mips: defconfig: drop RT_GROUP_SCHED=y from generic/db1xxx/eyeq5 powerpc: defconfig: drop RT_GROUP_SCHED=y from ppc6xx_defconfig sh: defconfig: drop RT_GROUP_SCHED=y from sdk7786/urquell arm: defconfig: drop RT_GROUP_SCHED=y from bcm2855/tegra/omap2plus arch/arm/configs/bcm2835_defconfig | 1 - arch/arm/configs/omap2plus_defconfig | 1 - arch/arm/configs/tegra_defconfig | 1 - arch/loongarch/configs/loongson3_defconfig | 1 - arch/mips/configs/db1xxx_defconfig | 1 - arch/mips/configs/eyeq5_defconfig | 1 - arch/mips/configs/generic_defconfig | 1 - arch/powerpc/configs/ppc6xx_defconfig | 1 - arch/riscv/configs/defconfig | 1 - arch/sh/configs/sdk7786_defconfig | 1 - arch/sh/configs/urquell_defconfig | 1 - 11 files changed, 11 deletions(-)