Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3603633pxk; Tue, 29 Sep 2020 01:00:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXf4fM3ECCXzNy0CFanSW1G2C3d8fXEOGse104HJCCN9qS8C5b74n8FV+/LTjdUjp3dtDE X-Received: by 2002:a05:6402:1353:: with SMTP id y19mr1910999edw.71.1601366432084; Tue, 29 Sep 2020 01:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601366432; cv=none; d=google.com; s=arc-20160816; b=bIUBcjYDkG3myRpt+aTmTSzcQPK4OL4l6At+6bwikcD7RaUNQTgagM33o+RPwHvSpS GRfA3nyZbF37adV6SAxhQT9lYSq8cB39Yjz8x1AK2SVGo5pW3ak+vF6hYEwHTjFXPeeF gAX/aXkAHCSPW9magwNmyM0mJvcFcDvff0LwzS1qoWj3wwLC3TFK0W8GxLIXcbuxOuZe VOcrURhJ5cbHekyfEOFwXwzcafprnRgxkdWyFthMeju3mZzw9bSF/5bh1tIE1A4ICACQ WSKZVPVB6zviGMABezDv+5asNoXNwYtk7rBIIRBz6qwkt0jtJY7826Ww7kVCWViC/3Xy nQqw== 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=U7CfbqTIu4ffuB5Vk25yLn8JniTSOZFWZqsZFDKP7Fs=; b=hoDIcm9JzeX/AbaAe7nSM/cIst6vehwIPzC9mQIi2uwrCny9YxWj433Zaj3qso+438 Mz15r9GkjgjYm23Kt4jMmqbmFKn1kGS+7k0yLz+ssKVSpbZ2nYLLFBpcvDFryR2Q0UNe L6ffnq8ITn4Y2e/HAX7+J7xpfr5E/V7shsRihoKivV61S+7lOSlfiumC0QFFVtUPk6Ke PjJSpkC+9vV2cOvz/u7jWqXolZOmgtohH0/1FNtNeLU6lkTRw4LsbvDfJivSyfKKvz9o BI5Bn0O1TmAT9aSfqygH6k2jFsZbE8mE1CwriZF6lB47SRYN2K473RZ+mkb79brfft7E /1ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=u+FXIle1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si2313342eds.235.2020.09.29.01.00.09; Tue, 29 Sep 2020 01:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=u+FXIle1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbgI2H5T (ORCPT + 99 others); Tue, 29 Sep 2020 03:57:19 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44402 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727674AbgI2H4y (ORCPT ); Tue, 29 Sep 2020 03:56:54 -0400 Date: Tue, 29 Sep 2020 07:56:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1601366212; 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=U7CfbqTIu4ffuB5Vk25yLn8JniTSOZFWZqsZFDKP7Fs=; b=u+FXIle1pdoHwLi9Ush6KJCEcTsEd8tNis5pePfTQoRqzl4QVfZ7wawc815yaUsM9JJrXk lDNGmp1xo3t8RcFWYwXovVB4wP5jJQX0VOnCpZv9rrZ30oKBg+Lia2GVOQqDOs2dXDsvFc BZASb4cG+fe5zOekJYU3FLVFQaJ7EJFFMXaWCTVInC68FDWYO+B0PuNo5zuiS1w1Gvy5EH Y+tGGMzTiJQjHmoPCE8wy+6emezf5/HAZ13nm11znUuL1SWR7Vjzdgq+PMZkMnli+Wb515 YRCxxIoqtntm3mcJ46xOXn1zzCGWLM6RbF679piarMYc7v1mrQqw2GoWlkYIsQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1601366212; 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=U7CfbqTIu4ffuB5Vk25yLn8JniTSOZFWZqsZFDKP7Fs=; b=L9iCT9JwGGLNEhfvYNl5lTLZbr5ncxKM1o5wD97NFPROJreH8CS1sMtun8V9kA5HzXkrMY rMHaXJa8A4WkADAw== From: "tip-bot2 for Daniel Bristot de Oliveira" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/rt: Disable RT_RUNTIME_SHARE by default Cc: Daniel Bristot de Oliveira , "Peter Zijlstra (Intel)" , Wei Wang , x86 , LKML In-Reply-To: References: MIME-Version: 1.0 Message-ID: <160136621203.7002.9402784269901680382.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 2586af1ac187f6b3a50930a4e33497074e81762d Gitweb: https://git.kernel.org/tip/2586af1ac187f6b3a50930a4e33497074e81762d Author: Daniel Bristot de Oliveira AuthorDate: Mon, 21 Sep 2020 16:39:49 +02:00 Committer: Peter Zijlstra CommitterDate: Fri, 25 Sep 2020 14:23:24 +02:00 sched/rt: Disable RT_RUNTIME_SHARE by default The RT_RUNTIME_SHARE sched feature enables the sharing of rt_runtime between CPUs, allowing a CPU to run a real-time task up to 100% of the time while leaving more space for non-real-time tasks to run on the CPU that lend rt_runtime. The problem is that a CPU can easily borrow enough rt_runtime to allow a spinning rt-task to run forever, starving per-cpu tasks like kworkers, which are non-real-time by design. This patch disables RT_RUNTIME_SHARE by default, avoiding this problem. The feature will still be present for users that want to enable it, though. Signed-off-by: Daniel Bristot de Oliveira Signed-off-by: Peter Zijlstra (Intel) Tested-by: Wei Wang Link: https://lkml.kernel.org/r/b776ab46817e3db5d8ef79175fa0d71073c051c7.1600697903.git.bristot@redhat.com --- kernel/sched/features.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/features.h b/kernel/sched/features.h index 7481cd9..68d369c 100644 --- a/kernel/sched/features.h +++ b/kernel/sched/features.h @@ -77,7 +77,7 @@ SCHED_FEAT(WARN_DOUBLE_CLOCK, false) SCHED_FEAT(RT_PUSH_IPI, true) #endif -SCHED_FEAT(RT_RUNTIME_SHARE, true) +SCHED_FEAT(RT_RUNTIME_SHARE, false) SCHED_FEAT(LB_MIN, false) SCHED_FEAT(ATTACH_AGE_LOAD, true)