Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2335431imm; Fri, 7 Sep 2018 14:54:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYJi/Smsn98HkdBs+9d0C+gYB5WvYXXZrr0DCzrhJR8SbraFD5t5ji0QGzDF7DVlRa72FUL X-Received: by 2002:a17:902:261:: with SMTP id 88-v6mr10012254plc.331.1536357241619; Fri, 07 Sep 2018 14:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536357241; cv=none; d=google.com; s=arc-20160816; b=0UUyOd1yAygHXmlg1pvPtjBfoMj6p6g6SLyva+emaSJsxqPYk7SiiOZqJ4qZ/CaKtj bUpjAkpa877TYS10HUeshVTyIsqJ6ok16P9VXPl/aKIoE3PKJ/euQpwq5HpAor9fskyP qE6DsgDn7oS2is77G2jTOvv1tZCgcG+tG3qOx7x36/sTAW4TpzrU+XvyAERCkArIJMrM KqmX8H36FvC9970nhHVYKF3F6ffpGy/RgThMcpoIBKnVzesw/K3060ZgxPMFWkuOx+lL wqZceOvCaOxPT0iprhd5Ptv6KFWQxxBqEN/RUdqRLcZevRzxj5hcAO3GdAp1KblIQrnq cBdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DbPcVkVqOz+R+v6aQlcMNERwnmRKSEKZObG9AN+yBJs=; b=MhkHlzaJIc2NUjfbhaWGTVIhRWTZIwcY/ZvR+o50ot7tG+9Diwq23PiKvbgZl6Ntwr 8czqODzT6aQBmOVaeZ9rFe+C0995xdx/431Qomc9GH4r08LsBvTyMMSlzNpGtxiV0kOP qQt/JM/DG7VSBsJtBSYh6Nf78Zx242Qd4SSZkh4Qd6ARZGcfr8ua7n7Vuzh+vIRz8Dpj eEX+5lIkmDagf8AkE6Ninyt5hU9gNUverwqZylOdEcbSip2Ukf8gyLF3nV32M8ifDOgJ 78bfgR5+utq1U+lT7EmmoIW/z9XGAreYW542dCGuZyDBRy/GvPbJCzWWUtyemBgjM1R6 Q+OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=FjmCSDK4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l61-v6si4818605plb.492.2018.09.07.14.53.46; Fri, 07 Sep 2018 14:54:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=FjmCSDK4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730466AbeIHCZE (ORCPT + 99 others); Fri, 7 Sep 2018 22:25:04 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:8260 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730004AbeIHCZD (ORCPT ); Fri, 7 Sep 2018 22:25:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1536356528; x=1567892528; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DbPcVkVqOz+R+v6aQlcMNERwnmRKSEKZObG9AN+yBJs=; b=FjmCSDK4ayK4e7iCAnEyLZjZCkEeQlXC6f1rbMKtJy0u/B+dXGWIqFP4 UwI82sJXmwBpWB1hP6VBco0JcVu8k1v9v8YDtQw9pHYlw12X43M5wOy+H 1LKBbiF9fpmc7smyNIjtHoiLHOEzMmX5VHtWvkYIM+ivbBKiMlgC0Dmlx g=; X-IronPort-AV: E=Sophos;i="5.53,343,1531785600"; d="scan'208";a="361243161" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-821c648d.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Sep 2018 21:42:07 +0000 Received: from u7588a65da6b65f.ant.amazon.com (iad7-ws-svc-lb50-vlan3.amazon.com [10.0.93.214]) by email-inbound-relay-1a-821c648d.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w87Lg1x6129451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 7 Sep 2018 21:42:03 GMT Received: from u7588a65da6b65f.ant.amazon.com (localhost [127.0.0.1]) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTPS id w87LfxJf027366 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Sep 2018 23:41:59 +0200 Received: (from jschoenh@localhost) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Submit) id w87Lfw3R027362; Fri, 7 Sep 2018 23:41:58 +0200 From: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= To: Ingo Molnar , Peter Zijlstra Cc: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= , linux-kernel@vger.kernel.org Subject: [RFC 22/60] cosched: Add config option for coscheduling support Date: Fri, 7 Sep 2018 23:40:09 +0200 Message-Id: <20180907214047.26914-23-jschoenh@amazon.de> X-Mailer: git-send-email 2.9.3.1.gcba166c.dirty In-Reply-To: <20180907214047.26914-1-jschoenh@amazon.de> References: <20180907214047.26914-1-jschoenh@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Scheduled task groups will bring coscheduling to Linux. The actual functionality will be added successively. Signed-off-by: Jan H. Schönherr --- init/Kconfig | 11 +++++++++++ kernel/sched/Makefile | 1 + kernel/sched/cosched.c | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100644 kernel/sched/cosched.c diff --git a/init/Kconfig b/init/Kconfig index 1e234e2f1cba..78807f8f2cf7 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -762,6 +762,17 @@ config FAIR_GROUP_SCHED depends on CGROUP_SCHED default CGROUP_SCHED +config COSCHEDULING + bool "Coscheduling extension for SCHED_OTHER (EXPERIMENTAL)" + depends on FAIR_GROUP_SCHED && SMP + default n + help + This feature enables coscheduling for SCHED_OTHER. Unlike + regular task groups the system aims to run members of + scheduled task groups (STGs) simultaneously. + + Say N if unsure. + config CFS_BANDWIDTH bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED" depends on FAIR_GROUP_SCHED diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile index 7fe183404c38..f32781fe76c5 100644 --- a/kernel/sched/Makefile +++ b/kernel/sched/Makefile @@ -29,3 +29,4 @@ obj-$(CONFIG_CPU_FREQ) += cpufreq.o obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o obj-$(CONFIG_MEMBARRIER) += membarrier.o obj-$(CONFIG_CPU_ISOLATION) += isolation.o +obj-$(CONFIG_COSCHEDULING) += cosched.o diff --git a/kernel/sched/cosched.c b/kernel/sched/cosched.c new file mode 100644 index 000000000000..3bd4557ca5b7 --- /dev/null +++ b/kernel/sched/cosched.c @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Coscheduling extension for CFS. + * + * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Author: Jan H. Schönherr + */ + +#include "sched.h" -- 2.9.3.1.gcba166c.dirty