From patchwork Thu Sep 21 06:33:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 143343 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a55:b0:13f:353d:d1ed with SMTP id 21csp4560674rwb; Fri, 22 Sep 2023 03:46:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFixgQmUaxsQ5GnAIZpJwGpXa1aYKedk1EW1SxCpPRjyWI2vP5yHi7E217JKAp6krDdTUkr X-Received: by 2002:a05:6e02:1526:b0:34f:7e36:5f8b with SMTP id i6-20020a056e02152600b0034f7e365f8bmr10107982ilu.25.1695379575552; Fri, 22 Sep 2023 03:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695379575; cv=none; d=google.com; s=arc-20160816; b=cKaq7xMAo28LfDR9Kw6Uwsbx8RlZr1BPgHLM9mQM0YrbmxJ07TWcMht8ltsa7Kkbsv skybyRc8XN7PomdNW83+S/VkYBM80sc3j+kUeXWF9z4bcj1elSbwifs6lDEbk6AjPHz5 1ZmtY6GxjZCPnhI6IlUX8VxleVNEnXCJiu2KHTjSmyXBBrC/H8dh+l+3l+/Q4FnVQIIr 7KgnRHiyd0h1WBkgxKwmU7Uj0JJMAcVNajGW5LXWmGWZYHTxDEPGw6m+actBHhtHeYDJ hzLp+iYmaxxMItKADYHjLWSzyaw6JNuczd76KJR1WA6S7J1b7bZpQNIKRP30jr7mzbp8 NO7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=FA7A855TbBCr1Ls7xPmjU7HiQJ8bxXU32yUpWueygxg=; fh=IBbxDdW4FrhuL+8jyNWo82YrnPhUuhY74Df5vtv+Jis=; b=GkpgHNpPWjH480OBzz3WrSG52QYKvbjyDuCHb4BOC8Dki8gD/gpoBANKak72BgFaq/ fKKqkt3+ahipow0g85PyY8lX7cMfHiU2ti9rFQI9+qRdPF8NJENGHDIBrdXDXTkbC71R qmtZ2eRCodzBJaI+fkmDYLWs/rL6LYZKd2i9BpT8sEcIhsyfd7/cvp7W87/sTwCedRjt Hx0b+Gqox1EbeWSrk/uE4/P2VeF453f+zbZnX+rzC7PYXKnwpFsDm4OdEENMdPaQuW5e jz/aTAOUFuvbyW4YCDj/dKrgUZOhL0kz1SQlLnDVtcQmXixPzgenP4V6DU9FPcOVHzHI XQEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HJ9z45cq; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id k62-20020a638441000000b00578afb3123bsi3651390pgd.700.2023.09.22.03.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 03:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HJ9z45cq; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BA558834FBB7; Thu, 21 Sep 2023 14:14:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbjIUVNj (ORCPT + 29 others); Thu, 21 Sep 2023 17:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232424AbjIUVNJ (ORCPT ); Thu, 21 Sep 2023 17:13:09 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5297680; Thu, 21 Sep 2023 10:10:10 -0700 (PDT) Date: Thu, 21 Sep 2023 06:33:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695278003; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FA7A855TbBCr1Ls7xPmjU7HiQJ8bxXU32yUpWueygxg=; b=HJ9z45cqOlsUxdGTO+tqJp+C4Sh8Y5vW+AvS1lN3ZiEv5RhCKlXy9YuKjaV4MVRo0OH523 7aZUd2O++pooldtAY8OOnHbbNh2rTeBlkSBEaiNAR6cJcYQV4lfg7QdzA3wT7+eCKDW2YD E3igFaPv0yI9xg4E/gbtepoFPFKT+Yu4ySb2Lu8PkBYfhfxq+WQ7CPUgbk0+LLhWWBcjhO MuYol+Z+a4SGD4HNX6wXVkkp9nPxjZbzfIqKOihk7dMlMQG2gZBvQjgR2ztcU6M1EEE1Ay eoOHX8Ud1eAD4aroN4IW+zU6SPQynRHF/zaZtD8rTYApjHaKJK6cSlnPw+03Ow== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695278003; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FA7A855TbBCr1Ls7xPmjU7HiQJ8bxXU32yUpWueygxg=; b=sDuzeD3W5dzENKIoPiQD0aLGp3Wai+BRXUki+elLaLiP4NGo3ngWR4KLjnkPM6xOGRJlSg njQlqbuqxRlWVxCA== From: "tip-bot2 for Sebastian Andrzej Siewior" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/debug: Remove the /proc/sys/kernel/sched_child_runs_first sysctl Cc: Sebastian Andrzej Siewior , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230920130025.412071-2-bigeasy@linutronix.de> References: <20230920130025.412071-2-bigeasy@linutronix.de> MIME-Version: 1.0 Message-ID: <169527800257.27769.9797272865607860084.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=0.3 required=5.0 tests=DATE_IN_PAST_06_12,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:14:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777734333947549141 X-GMAIL-MSGID: 1777734333947549141 The following commit has been merged into the sched/core branch of tip: Commit-ID: 17e7170645e34c519443ba63895264bbdee7beee Gitweb: https://git.kernel.org/tip/17e7170645e34c519443ba63895264bbdee7beee Author: Sebastian Andrzej Siewior AuthorDate: Wed, 20 Sep 2023 15:00:24 +02:00 Committer: Ingo Molnar CommitterDate: Thu, 21 Sep 2023 08:30:18 +02:00 sched/debug: Remove the /proc/sys/kernel/sched_child_runs_first sysctl The /proc/sys/kernel/sched_child_runs_first knob is no longer connected since: 5e963f2bd4654 ("sched/fair: Commit to EEVDF") Remove it. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20230920130025.412071-2-bigeasy@linutronix.de --- kernel/sched/debug.c | 1 - kernel/sched/fair.c | 13 ------------- kernel/sched/sched.h | 2 -- 3 files changed, 16 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 4c3d0d9..132dfd1 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -864,7 +864,6 @@ static void sched_debug_header(struct seq_file *m) #define PN(x) \ SEQ_printf(m, " .%-40s: %Ld.%06ld\n", #x, SPLIT_NS(x)) PN(sysctl_sched_base_slice); - P(sysctl_sched_child_runs_first); P(sysctl_sched_features); #undef PN #undef P diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index fcf0c5b..7572000 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -78,12 +78,6 @@ unsigned int sysctl_sched_tunable_scaling = SCHED_TUNABLESCALING_LOG; unsigned int sysctl_sched_base_slice = 750000ULL; static unsigned int normalized_sysctl_sched_base_slice = 750000ULL; -/* - * After fork, child runs first. If set to 0 (default) then - * parent will (try to) run first. - */ -unsigned int sysctl_sched_child_runs_first __read_mostly; - const_debug unsigned int sysctl_sched_migration_cost = 500000UL; int sched_thermal_decay_shift; @@ -145,13 +139,6 @@ static unsigned int sysctl_numa_balancing_promote_rate_limit = 65536; #ifdef CONFIG_SYSCTL static struct ctl_table sched_fair_sysctls[] = { - { - .procname = "sched_child_runs_first", - .data = &sysctl_sched_child_runs_first, - .maxlen = sizeof(unsigned int), - .mode = 0644, - .proc_handler = proc_dointvec, - }, #ifdef CONFIG_CFS_BANDWIDTH { .procname = "sched_cfs_bandwidth_slice_us", diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 7e070dc..9260120 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -100,8 +100,6 @@ extern __read_mostly int scheduler_running; extern unsigned long calc_load_update; extern atomic_long_t calc_load_tasks; -extern unsigned int sysctl_sched_child_runs_first; - extern void calc_global_load_tick(struct rq *this_rq); extern long calc_load_fold_active(struct rq *this_rq, long adjust);