Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp112978imm; Tue, 16 Oct 2018 19:11:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Es3zUiskyOEdx5mVnFS0c/EUCCT7hjanvD69rkezovvAi/CfaJh1b6x6B7p5cDIsAPy28 X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr24549345plz.306.1539742299781; Tue, 16 Oct 2018 19:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539742299; cv=none; d=google.com; s=arc-20160816; b=tNaJXT0IkZ7Vy6K22ZTrt9qBw2aBpIeaVPirebw4noo/4NdlgUxPCSDIXdVfIq1AW/ jMkdvT9gQoVGP+gw7X2DqBZXzS9Ba2Pz1Jsas1q5JqMxRC76X7LKS/yN9J4xGik2iJIA v10xXfOuHPz8800UnLvYNeayf9tH6onrq1+ZJ39lFB9JtvSahQC7m+dWANkKPbQPK6wr z7ifw/1CFUtaAwj3Ivw5DjJ+Q36rHBP9xb6QYKLjGiqDPsH8YALoMnMw007+wQjgYEAj NbeGIWHwPX8tKQQj1hxwXrmEGWOKolrlrThy8UJ89fSvc3BZFWW9ol4Fyi1l5tSmUmGc 8PVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4BbF7pEGrCm5pgfLWAfpP1Qe6l044NibZTtAj5CvB/w=; b=XnyvkmMbNgVA6j0iRtjzKdfxOxG9q1gq/X16pa4tCJGIH162FKKYnE/c+6uxjqrBKk M8HWE9Yfc4q6mD0DAo28+dbzm3gFAWXbwgPHnBI9kvaIdcIQk/v2jq3kV4kjwmGGpxts tHaFfW5eZh52L7QYRCwM1P5vO/UAleZhyRgP3bFnod7fivAVXaPzC/9BoU1Np9AZywOj mXgzzDLpLVxNYdALt49Qe/5tgeDNF6lmdgS/WpgT2YEpPqINvQbQzDxgpczGsHaj2WXH q8LSh2QmgFi5lSEEiX31YPvx4VHXNzeW6BM+d7A/j8A4BeWZWEMQ9xfBBT4cTiGDOrh7 NX8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E7rlTd+z; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7-v6si16520852pgn.82.2018.10.16.19.11.23; Tue, 16 Oct 2018 19:11:39 -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=@kernel.org header.s=default header.b=E7rlTd+z; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbeJQKC5 (ORCPT + 99 others); Wed, 17 Oct 2018 06:02:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:53506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727141AbeJQKC5 (ORCPT ); Wed, 17 Oct 2018 06:02:57 -0400 Received: from localhost (LFbn-NCY-1-241-207.w83-194.abo.wanadoo.fr [83.194.85.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEFCE214C4; Wed, 17 Oct 2018 02:09:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539742177; bh=2IjcjD5/vhD7G3iaWIDtbvodTFcuD1fZAzHoDWY6/fY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E7rlTd+zeg7Jj2T2AnKfW5fWPmI63k8eCYiuvHJpwmXKPM5jk10zP28XtfRsUFffU brvyEu4O4OINBZif2b8nSo6c2wQcjuKBOhzo0mmxfw71/HlwYrsUZXtcaz2EtCBksG HliviyyBUcmForHgn+gdMWc3Tq/lrzouxvDo8uD0= Date: Wed, 17 Oct 2018 04:09:34 +0200 From: Frederic Weisbecker To: Jan =?iso-8859-1?Q?H=2E_Sch=F6nherr?= Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, Rik van Riel , Subhra Mazumdar Subject: Re: [RFC 00/60] Coscheduling for Linux Message-ID: <20181017020933.GC24723@lerouge> References: <20180907214047.26914-1-jschoenh@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180907214047.26914-1-jschoenh@amazon.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 07, 2018 at 11:39:47PM +0200, Jan H. Sch?nherr wrote: > C) How does it work? > -------------------- > > This patch series introduces hierarchical runqueues, that represent larger > and larger fractions of the system. By default, there is one runqueue per > scheduling domain. These additional levels of runqueues are activated by > the "cosched_max_level=" kernel command line argument. The bottom level is > 0. > > One CPU per hierarchical runqueue is considered the leader, who is > primarily responsible for the scheduling decision at this level. Once the > leader has selected a task group to execute, it notifies all leaders of the > runqueues below it to select tasks/task groups within the selected task > group. > > For each task-group, the user can select at which level it should be > scheduled. If you set "cpu.scheduled" to "1", coscheduling will typically > happen at core-level on systems with SMT. That is, if one SMT sibling > executes a task from this task group, the other sibling will do so, too. If > no task is available, the SMT sibling will be idle. With "cpu.scheduled" > set to "2" this is extended to the next level, which is typically a whole > socket on many systems. And so on. If you feel, that this does not provide > enough flexibility, you can specify "cosched_split_domains" on the kernel > command line to create more fine-grained scheduling domains for your > system. Have you considered using cpuset to specify the set of CPUs inside which you want to coschedule task groups in? Perhaps that would be more flexible and intuitive to control than this cpu.scheduled value. Unless you require this feature to act always symmetrical through the branches of a given domain tree? Thanks.