Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2238960imm; Sun, 9 Sep 2018 19:52:16 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda18gJQnPr8XBSTdHaTIHqtchLQmayKU12DhUmbYDWGGSWa3eyKOr3oLSDMGN3eymJcFp6+ X-Received: by 2002:a62:da0b:: with SMTP id c11-v6mr21179914pfh.68.1536547936730; Sun, 09 Sep 2018 19:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536547936; cv=none; d=google.com; s=arc-20160816; b=ESQdmPzbBBVYU7cR+/wZnOBXvU5vTThWE79FeyFWKnfcf70Q8akIjqwoSSIySxnoPu OLNS5/B25gc3LatdwsNayUnMpquJmxLUmsAV8+f/l2ENjLz9lsBJxNhJla0KooMFMMwV KmLJNAT8pg4kwgFz/pqt7v2cdosuqBU1QDzgsLDXF5ZXxd5dScZzKuMAaolMbYxiPinu /+0SYH2F7I7sWUWC3hTEJnROJsT8UbVwZgru6gwBiK4DOfJEepYDsVOTUkQw5tDFN7Ya TUgk2ML8ztJCDXoc9Q82JcNqmw7LnP1Yv8vutMVdXtTC1NRKBbtaO1VmP9Wu8ZE9Look hLVw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Z1Nwqfdt88dHF7ZC/NCDGGjZrZLPYEOeUlsxoH6d5H4=; b=nmqP1w5h33yTE0yhjJj+tRg3tL09PPxCQJUSaRwzC6+75fRLaAhaijTl/XlgQ/I/5u ZP50JG+RAvZdPlYsUWEML30eT0lXqU7HNR7O4c8rGwzftR6tP9LYKmHeyOI2yLbafo/P zAaez+OZIFZhdSsVWkFwKZMUXLBFqEh3nlrUMQ8Pwx+y3h/bthCu6I2GxsPaahuh/D9D /uVHcAlyvm+WEBWQ4vO3HHL9xwdLJAtsonxzHz2BBF1+sVjGq/PJMclY3wpQsn3R+7rR JRkItCXfPPLn4wPDcR0uOcHwfJHTFEJgmI++8ZIIb2PLGYHMH3Xo/FQSeD0YKSjXDCPs j+uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=NKs9RrQ6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x189-v6si15688953pgd.1.2018.09.09.19.52.01; Sun, 09 Sep 2018 19:52:16 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=NKs9RrQ6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbeIJHmc (ORCPT + 99 others); Mon, 10 Sep 2018 03:42:32 -0400 Received: from merlin.infradead.org ([205.233.59.134]:44446 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbeIJHmc (ORCPT ); Mon, 10 Sep 2018 03:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z1Nwqfdt88dHF7ZC/NCDGGjZrZLPYEOeUlsxoH6d5H4=; b=NKs9RrQ6HoPkD0XAWyWUrlKq+0 CO4EPggFHOI6aU++DEnHrgy+OZY1Pp3CFTxqC2EQyPeaAsiwq8lF1fZIB23ZNPoz5kdBYjbGYzhqM g6cEHiOvFDyIKmKHUG2yPR7ETpdwt2FgZ9gxG61YtmnwZueLSDCN/gQooxxZlcIcKkEARi4C0Hlp2 sGZMwY0WjB/XraCziySgFfJXuci8ClUY2kZS6kIZ9Ukl/aUepiuODnifht1ET7k3onxnBnt1zNGXa oS5beX8L46/5euzsOFNbbNyr8v5DWCU3q/RWEVgzVncAwNMfnErHOsnYoKN4zpsi9fsFkaSecg7hr 5VuTFJ3Q==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzCHl-0007bk-Sa; Mon, 10 Sep 2018 02:50:46 +0000 Subject: Re: [RFC 60/60] cosched: Add command line argument to enable coscheduling To: =?UTF-8?Q?Jan_H=2e_Sch=c3=b6nherr?= , Ingo Molnar , Peter Zijlstra Cc: linux-kernel@vger.kernel.org References: <20180907214047.26914-1-jschoenh@amazon.de> <20180907214047.26914-61-jschoenh@amazon.de> From: Randy Dunlap Message-ID: Date: Sun, 9 Sep 2018 19:50:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180907214047.26914-61-jschoenh@amazon.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/18 2:40 PM, Jan H. Schönherr wrote: > Add a new command line argument cosched_max_level=, which allows > enabling coscheduling at boot. The number corresponds to the scheduling > domain up to which coscheduling can later be enabled for cgroups. > > For example, to enable coscheduling of cgroups at SMT level, one would > specify cosched_max_level=1. > > The use of symbolic names (like off, core, socket, system) is currently > not possible, but could be added. However, to force coscheduling at up > to system level not knowing the scheduling domain topology in advance, > it is possible to just specify a too large number. It will be clamped > transparently to system level. > > Signed-off-by: Jan H. Schönherr > --- > kernel/sched/cosched.c | 32 +++++++++++++++++++++++++++++++- > 1 file changed, 31 insertions(+), 1 deletion(-) > > diff --git a/kernel/sched/cosched.c b/kernel/sched/cosched.c > index eb6a6a61521e..a1f0d3a7b02a 100644 > --- a/kernel/sched/cosched.c > +++ b/kernel/sched/cosched.c > @@ -162,6 +162,29 @@ static int __init cosched_split_domains_setup(char *str) > > early_param("cosched_split_domains", cosched_split_domains_setup); > > + > +early_param("cosched_max_level", cosched_max_level_setup); > + Hi, Please document both of these kernel parameters in Documentation/admin-guide/kernel-parameters.txt. thanks, -- ~Randy