From patchwork Thu Aug 22 17:43:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Celeste Liu X-Patchwork-Id: 13774026 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (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 85C4F1CFEC1; Thu, 22 Aug 2024 17:43:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724348620; cv=none; b=KLYUj7NFS1Mj41P5mzDsNGImaYeRbJhVqz40QhzDPKmr3Ss0/8dUDVRcnEd80PMM41eGegX6ckm5eE4fNjFmObFYhdD1iS0lQFMSX4z0NK+RoH8/oZm4R4nQmN5nMNd7Hb20uzEwAtfL4rWulmHIvI1781zHrjtVAKMYuCHCY9w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724348620; c=relaxed/simple; bh=BD75Xt3LZKpr2Q5IcAd6LQbXDWkdD5S9pnl1NWkD0aY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V0Jz/3dkU3RcB5BIXjbcnKx3PoZFfEae31/iBqM/EvTiYurDvC+Ej/xgZJU/GcLRUK7UBkzsW/RtrQpRjblGxDhNaoUL2c57NojmnAk4vcImUF7IZvX4lgKeJ/axER0OAs2bV7doVj2OicFX34XCk8wb1NG0ASNKeu/WZ5YuOqk= 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=kzP0Jnwj; arc=none smtp.client-ip=209.85.214.196 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="kzP0Jnwj" Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-1fc47abc040so10396115ad.0; Thu, 22 Aug 2024 10:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724348619; x=1724953419; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=naTDf2Yfagd090z1pfb9ctw1MuISnW6ZHr9QkxmSD9w=; b=kzP0JnwjV0Vgy4uURA0Qx3cazujroMvnDJmS+0bZuuctX3W/M0FNGfDRJo769i7OOL xo6vMPfLe0/iNlhr+Y2WNeN8K9yr6N3/v0JUOo6wHm1JACSTiNpv/y80ia7j0IfplqU7 1VvbaN8H6du8W4F/6ANCE4JOjOUlZvYok3PUtH8TxzUaXn4LoVwyV/+YEA7nakcrqAxP 7BiogGrp1sQkSfvxdgBPvaU+9WbeflBZquGaJBD2QoRbJ8GkIZ+1VjgOR2/HQs9HkPN+ 9SVNhtddjnDubzebYSDjb8YXYh9dYjh4aopnTNtfu7R7kcczL8b4qnblX0WmQCPfCmsK +XuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724348619; x=1724953419; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=naTDf2Yfagd090z1pfb9ctw1MuISnW6ZHr9QkxmSD9w=; b=pkgQf3qad2L5ommMb9R2UOTsWQOrpUUyt3vrzpITJcOOUVLQeK+n91CBq8dp3xHbey IrzA7onylUbJlty3JMYnXJ5OmTYTB5n6SDOtsseiBrFdl4BbYbtaAuVHTLgQUKJ6uv54 YK5DHlVz3r7Criyl83dEczRYLanCkNmtxgdQQNZFfjPK/ZMiWOdqnPZwLjdJlvaUSFXJ zWxyYO1eMLbxWqqFj6GDhQsRRcbWYjgEL8PM+kJwco+EPvBagGdysac4rGstucI+KkQN jZerKy/fA4ytWJPizYMOB6vHX1xp95srNI9Qj9KNJpP3eMPfe3vLAxGjyRjp1PrtrJ0s jzuQ== X-Forwarded-Encrypted: i=1; AJvYcCUST1e4qO6AiloA2arOfnVRh5t6df7XUTkbPCZNgbyIPN5tgy/h6IOVC5fxly9I5sE44ethIUBM4FnyOtM=@vger.kernel.org, AJvYcCWUGvdQ9caAOLB3GLf0zEam/f0tZ181+kKn+Jh61LjqQHHJm5+8EhTw6cDjvDMgzqI07baTRQLNKf0jkQ==@vger.kernel.org, AJvYcCXZuKn9Cto/gsD8Dawoi6AfngO0/no8f6mYIiAqGcMCnvkNRZbzhtNL2tP2yTU2BIos2afT86r2NZ5vKTw=@vger.kernel.org, AJvYcCXfXbSsjQ9YkYb5KhkKhrcnMJzqQjmxLyNKDgD0cvvQlr+OdzjUOLvHBVl6hHxWDfURDGvtMqvSHYs=@vger.kernel.org X-Gm-Message-State: AOJu0YxfEfgQSjJ+JFTidSK6+9tX4dNjceqHd4f8w/RDUOD5oW4VfdhZ q4JV+SlFmPwA/b2c4R7JOKQTVitiHXtnaNBjhdAaokZKBQS/pn/f X-Google-Smtp-Source: AGHT+IE8Wv2mi92FmXr0EVETbptIN+dts38PH1ZrQUIYcAnqCM0iFwVebSqZvsivRqmBz2JSK5Lz5A== X-Received: by 2002:a17:902:c408:b0:1fc:3600:5cd7 with SMTP id d9443c01a7336-20367af0b9amr84139415ad.10.1724348618612; Thu, 22 Aug 2024 10:43:38 -0700 (PDT) Received: from localhost ([103.156.242.194]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-203855664a7sm15365755ad.15.2024.08.22.10.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 10:43:38 -0700 (PDT) From: Celeste Liu X-Google-Original-From: Celeste Liu Date: Fri, 23 Aug 2024 01:43:27 +0800 Subject: [PATCH v2 2/4] loongarch: defconfig: drop RT_GROUP_SCHED=y Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240823-fix-riscv-rt_group_sched-v2-2-e4dbae24f7e1@gmail.com> References: <20240823-fix-riscv-rt_group_sched-v2-0-e4dbae24f7e1@gmail.com> In-Reply-To: <20240823-fix-riscv-rt_group_sched-v2-0-e4dbae24f7e1@gmail.com> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Anup Patel , Heinrich Schuchardt , Huacai Chen , WANG Xuerui , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Russell King , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Tony Lindgren , Thierry Reding , Jonathan Hunter Cc: Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, Xi Ruoyao , Celeste Liu X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1676; i=CoelacanthusHex@gmail.com; h=from:subject:message-id; bh=BD75Xt3LZKpr2Q5IcAd6LQbXDWkdD5S9pnl1NWkD0aY=; b=owJ4nJvAy8zAJfY4pvNJRPo6U8bTakkMaccrDq7cWv9HKpm1gp9XuSSxq8t74rLzH8Iuc9/9Z V6+kdfkhV1HKQuDGBeDrJgii9jOp6+XlT76sIzXZAbMHFYmkCEMXJwCMBH5fob/mZs/PD5ma8Hx 8F7zO+Gcfce/RpUvkP7W1qScI/C0aYLCVYb/pR2XVnbPdNm4oDwvfcO+zZx8fjqb7h2UvJJdVsM b5lHKCADITk6N 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] [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 [2]: https://github.com/systemd/systemd/issues/13781#issuecomment-549164383 Reviewed-by: Xi Ruoyao Signed-off-by: Celeste Liu --- 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