Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1224715lqb; Thu, 30 May 2024 04:21:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+mvKVWk32bKDFy+0osDNjuJZCW9UThcwceOqNgd8ERUqAht8PnbViFIeH4LzCGw7wxmdh3owkJpvMjF7nLZx9skKBB6RlINPm7cEg7g== X-Google-Smtp-Source: AGHT+IGRnuvgT2MLheOw74yKLqfOmPXq9CRPNkDPwP0aAh07IlYqBK/9cp5P6sp6LTq5rE3f6nYF X-Received: by 2002:a05:6e02:1a29:b0:36b:26df:cce9 with SMTP id e9e14a558f8ab-3747e001400mr17472985ab.22.1717068110812; Thu, 30 May 2024 04:21:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717068110; cv=pass; d=google.com; s=arc-20160816; b=zhfLULqlGFu+I/26f0M79jBM8JozOv6jZjBxDczVpziJMV/wvs0862qaZFTsq1bysE KBhesYhiipRA93SF8wOTqFYWPCgJBUTxTu8+0VVqA1ZUYTH/gy66olZtkPUv+9pwMxpu OszK30da2Vhq16FGPHn3lYF93siDGLdCPyxgqlJUutyywZD562q7BPy4va0K4CV+Hjb1 wrLWiotV2doteITuzSJX7Db29bfh11up75pJs50xbOApWz3lf1dRL/UdJODR5P/3fNgh dEvj+67iLi9AAUaYcs5BsXtcQjJO9n5VBn0I/UM60IRuVvr9EI8okZIwDVuok8D4U6Hx 4Ljg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=UKDbsptHUOf10z9ycdwLPkvcPnlZIVKylvaMWlEqffg=; fh=9iucrDQQai3TmGNkMTSaVdimYoDx3LC8Qx0iSlD6WQI=; b=dOhI7Lic414q5WtJqpStuNAan+VVJ5yREi46RHVu91fSv3khzKL7RS3zE/0Z7j7GOj LWvo0sMQtkjgeQpXXl5s6zpxF/JM5NuwphcnEimHFwDwqAmPFcVgF9+i0urnGstwgbF3 yz279W/oa1FajMqn9WoiqgrbfGfPrYRT7kYddmpTjMWqqiu4chZnnxz2rBp3leQsVjOw zDfmEBBcPmjwgIC3Rph4cCp/0wIHby3I1Jt7q72uhOs7HlyVe1DmRsEZ7aXb5xCGfx5j oO6+1nDDr7IO9OkuQcMvuLrjChRo8nFa1Z1a/KbZrsQAQUFEzK5szfodjSxL22I6ZPWY hlvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Let0hHlB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195297-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6befe171de6si1606631a12.436.2024.05.30.04.21.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:21:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195297-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Let0hHlB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195297-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 D4D4E2822A4 for ; Thu, 30 May 2024 11:21:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6590717FADB; Thu, 30 May 2024 11:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Let0hHlB" Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) (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 089DD17FAB1; Thu, 30 May 2024 11:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717068012; cv=none; b=Lvmw914NkPo379tYy3t/WsyNxBAbE8XU9r2Yh9aB4KObdYu3beASgscn7NDKx+a88O3O0TYBIGftOZmz/OTtInAitOY9FfYVsxc7GGtu/+HGcP6YkTW0R66JjZF+JaFIBg3ApMrYFTQfl63GSeKVhCo+GWoAXYfVL5e5+78K4gc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717068012; c=relaxed/simple; bh=h4glHeoHIj1lCrO/9cfcaGCSQbc7rI3O4B300cL/OlA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VgNdXZCwSLqJiIDMC7OC4/zqBUoAy/0Yvxlnq2GZiztbAmvFdeqmPZMOB+Ws9pE/t2M790MzqLjBe4mOWYCz58SZp9AVoNYpZG5n2+So8jj3In76xqlva+2GI/ojTm8RMdjzXOsyCRG1qHfTO6WeZiDkr58QSZkgnu2HgeB2Fbk= 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=Let0hHlB; arc=none smtp.client-ip=209.85.216.68 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 Received: by mail-pj1-f68.google.com with SMTP id 98e67ed59e1d1-2b9702e05easo567360a91.1; Thu, 30 May 2024 04:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717068010; x=1717672810; darn=vger.kernel.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=Let0hHlBBdRiZl1HOYO00Iygkx7PhYJ7iepve126di3HcJccBPoyk8sNdpLNPHFm+/ YTKrz4hrG7E5vb7Dm6O5jBxb5x8bcecg5ikNxtMvYE7Num2RUENXfEmIm0CxMycU4oa8 p6az3UVYWNXxKaAvWsfr+fbu/rl+xPPbNke6vuoVMTERz/MVTOQpWp/wQZvOBPKwXzP6 KT5881Cto7BvwyRFdUxwmEsN3wEL/ZG8OVrNKMt0Prc0CuQU9Y8dqvnLX4h/fbaKBpQR TIy506TJYOhSJFHw4kWL4CeweniEVvAcCNBJjAsiEIGbmTFb0i2B/eHAabT4fDqZFUUA yCRA== 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=wPO5FzaExngm6wpiIkDpSiMzokx0Xft4sWrF7KhkOPf43HR8bhY48SbNyL9UmSiPKm 2fQuU2KQSAcGH6qVlcp/wEpU6tiGKmw/vSMF/aOlnavW7id9maesqgeF7d5oscCc0/7I svMjy0WXH2wkxR0UvjQT5ovAJOPpoP2CEV+jPoqS+qZA8ae/87PbVmoiFMVFOgfKtG8V p3ALjxSr9aqmP0SmE02sqGJlyYsMZtjfUSc/vautWulJHJtTY4jYCTQa379bdAoFmN2F KqmTEy0ISeBK5+xN/MquQFwDOokVEAPoVOY7RO1m0b64gaO3r7zpaxUxUzCcF1gcSKsu p4hQ== X-Forwarded-Encrypted: i=1; AJvYcCVIRwcyyqXYxiLzQcwnW8U1llTJxjwIC2oao+JtP1uYylXWIqHVayLqgJhNAvqT7bkNh/h0qAh5xs8RzB3i2ocfF1avC/Co5SKGp6nU5Xk9QK5CryHZ6168bnrPHzC0hQVx3Z0DYmRP8jkurz4wCo4bh5EJSgxTXrmqSK/OFNFndwaVL2esH6bOR2VS7epK4PebZaDyBU2DkN2zLMgA8xTj0gw1oaXmdaRQ9W1NbM+paGVDFqhp9vMrpNcoF2muZJxET1e/DQHV5z3t+5kp89Dg X-Gm-Message-State: AOJu0YyiRhcILucFdHIwVi8NcEBbJ3KBdLr0UpoRWOSGYl0TmNSaCLNQ 2HING/Zvwcb6LU5KEfkTfnC+4R41vX+KmBPw8XadRtpXaBkdqVW6 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=20Lebrun?= , 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit 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/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 -- 2.45.1