Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3200729pxk; Mon, 21 Sep 2020 07:44:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz03p6bWwTgjasCUU4EuPvTiZ9Y8jgX2sc0qEwiYk8Ba37LpKzMMYBLkWqrEQqG91N3Bflx X-Received: by 2002:a17:906:cc99:: with SMTP id oq25mr38820348ejb.292.1600699448937; Mon, 21 Sep 2020 07:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600699448; cv=none; d=google.com; s=arc-20160816; b=xg6RRWmY7a6oYURoidPMy7n4zMS8ore+OZxrRtzLCWjQkt1Y8sxBCPmUTvPkt59Y3j n93D6Aqoy8TPpECF/lJBVNY7EQDqo9O976rcQlLYgYpozyPTzhXgXjLGI5xQGbiV65mN zmoyfGgAozVGjeFOiIswZautYFwzgz4C2J0AdwnaUaJU1wYUVYFDHHoNp/uermAJfZTt GoUElhFUkdYA00wQgMINURiUjtKAEZXGX7Yy3t38YeilIyVH9nGMjFK0f9/YL7+unC/7 pT7Sx6GeWLe8tTc+r4rjW65BjrHcpA5asDUh2bPambh/PiiH+ns3QkaPPq1rFr4CPNTR XJvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+enI0R7DMCyjAKerCPgkYFbbuWxHbIO4MyCZsWUDDyc=; b=TrNjQ+9vx+vAJqJFcHo6zj2YKHFv740tVIi+eVT3wD+cSBqJ1oj7crcHrvXn8Y5wHP vxj/fmgA+q7lUPBuItKnmsrGfcGzCM10kLibsY2YWvdjM6ukhgkATjzs0g7YtILiRszo p+kDDwXZIqdrmiRU3+r8vF+mk5bTeR8ynWfZ0csuCAEYpOyjvm96m5P5Y8MBt+I++KfK 1puf7uSagjAg+1/Y1D+kWjZuNzicIXmVYInUNSy/QJD78M3hAE0E5D6ti395fco8C55G MVKYP6x8tDGdIh+IHn9D7GnrCWr+irnepNRa9ZByHO13WCAwuAHEo2Uanzz134OI2mTS iG1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e9bgo7aD; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si8228147edr.520.2020.09.21.07.43.44; Mon, 21 Sep 2020 07:44:08 -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=@redhat.com header.s=mimecast20190719 header.b=e9bgo7aD; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbgIUOk2 (ORCPT + 99 others); Mon, 21 Sep 2020 10:40:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51763 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727610AbgIUOk1 (ORCPT ); Mon, 21 Sep 2020 10:40:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600699226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+enI0R7DMCyjAKerCPgkYFbbuWxHbIO4MyCZsWUDDyc=; b=e9bgo7aDnMqIdiImJBlvJB4rbph0IWPNqlQ7zwZzQqPbO+JhIx+hXIwZOVvc2Ll+l4GPBn 910DubhAauVDWzG+DU/AVcqmuLI3g1Wm9ILNbHXK4X8jUhdrRvvBh+3pbdWFvIWqVVCWuc TB+kbwKhGIUt+gdHWgTBB5l26fTOvBE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-343-PhKmVfuPMJ-JDwgUEL8ctA-1; Mon, 21 Sep 2020 10:40:20 -0400 X-MC-Unique: PhKmVfuPMJ-JDwgUEL8ctA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1C0D2802B4A; Mon, 21 Sep 2020 14:40:16 +0000 (UTC) Received: from x1.bristot.me.redhat.com (ovpn-113-39.rdu2.redhat.com [10.10.113.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7248A60BF4; Mon, 21 Sep 2020 14:40:06 +0000 (UTC) From: Daniel Bristot de Oliveira To: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra Cc: "J . Avila" , Wei Wang , Todd Kjos , Daniel Bristot de Oliveira , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Thomas Gleixner Subject: [PATCH] sched/rt: Disable RT_RUNTIME_SHARE by default Date: Mon, 21 Sep 2020 16:39:49 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rostedt Cc: Ben Segall Cc: Mel Gorman Cc: Daniel Bristot de Oliveira Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org --- 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 7481cd96f391..68d369cba9e4 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) -- 2.26.2