Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8241569imu; Tue, 4 Dec 2018 05:24:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XKT6m/93jZAwYsBDeCQ+SeVO6reFx0ZHfp1Ox7r36UbaimScT7jLlA1QNGubB15Hmx5SVj X-Received: by 2002:a62:d504:: with SMTP id d4mr19948681pfg.38.1543929894387; Tue, 04 Dec 2018 05:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543929894; cv=none; d=google.com; s=arc-20160816; b=zmz11XNFmadfxfuQ/V0MCLh7pllvTmttfBsykJUw0PALsPw2V7OPpSkqizQ2aHV5lh r6PknAnJtMC+jcT6wm2EJzdpG2DZLpQKfCqMNf6NqlmUXCa+iliF0KWJ8zuKUW0MmDY5 5jDfKWGgET8mTOS4fheRilDiSxdgc/L4btFtlM9tVDQZVA/AwbEIh9j3UgK5FKRTwIKO f2uKohZyflhuxb45u/mdj2VDtgEg/atHXoUI5oDBwf4+e7yg+HgFDOiL+8yJKtKrj87r 4KFLArt1ECckMQvWgobQyhpZ1pag2X2uL+xpJxxBEl8TQH5lxra5F5JMomKw7rwuibJ6 EzvQ== 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:openpgp:from:references:cc:to:subject:dkim-signature; bh=1p/Eim5pnFRbUZD4qPcV+RGM/ETPQdicBLu/APe9LiM=; b=u5onz4KdvP3IPxucV4xKK2r2B0Guc9d8Oo6yit1mH2nAG+3oALFdeLWHGd7xcTA/oL S+htyw1UomXd9nIKuuuiGUJVRw3M4roVurrjvRL8ZHSvZ16ekdfjxoHd3iWg6+j7+wuh vGggu9hgIRLM0zd6AVWj6cCshCcsd+A15VBvNoKUUAal9DxQBSTao/e7TmTI1bCozvKz +qP5Es/cR6wduvqZrzFE4xlo/Y8cm1Tr5aZ1ISicmNeGPC5tKrSj2BG7cLLMBLaKItk6 l9MiRYOlHgSz6plbvbtYZsyhIjaM/vxFRKItVdDhdKKBsIAKMdNJ6M0DFdqYVDq9Rppq DYQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b="D/c6l9b8"; 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 19si14201443pgp.186.2018.12.04.05.24.36; Tue, 04 Dec 2018 05:24:54 -0800 (PST) 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="D/c6l9b8"; 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 S1726045AbeLDNXt (ORCPT + 99 others); Tue, 4 Dec 2018 08:23:49 -0500 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:20436 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbeLDNXt (ORCPT ); Tue, 4 Dec 2018 08:23:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1543929828; x=1575465828; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=1p/Eim5pnFRbUZD4qPcV+RGM/ETPQdicBLu/APe9LiM=; b=D/c6l9b8GW04rAMDF41f0Q+6LbLW/36RTlXMbqGXMEXpBLYtYZYPUoyE AW2lTTj4vTxBHc9eCZFUjZOkT2WrSw2D6CxZwDAIvlbD+LaLZS/XGwTFu msbKJWGEOJsx39SbTkFxDFAW5NsfJi+n3gQuwOfUELBY4yX1E+ZXsbtol Q=; X-IronPort-AV: E=Sophos;i="5.56,253,1539648000"; d="scan'208";a="376130486" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-2c665b5d.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; 04 Dec 2018 13:23:47 +0000 Received: from u7588a65da6b65f.ant.amazon.com (iad7-ws-svc-lb50-vlan3.amazon.com [10.0.93.214]) by email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id wB4DNe5W107292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 4 Dec 2018 13:23:41 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 ESMTP id wB4DNbm7020648; Tue, 4 Dec 2018 14:23:37 +0100 Subject: Re: Task group cleanups and optimizations (was: Re: [RFC 00/60] Coscheduling for Linux) To: Frederic Weisbecker Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, Paul Turner , Vincent Guittot , Morten Rasmussen , Tim Chen , Rik van Riel References: <20180907214047.26914-1-jschoenh@amazon.de> <20180914111251.GC24106@hirez.programming.kicks-ass.net> <1d86f497-9fef-0b19-50d6-d46ef1c0bffa@amazon.de> <282230fe-b8de-01f9-c19b-6070717ba5f8@amazon.de> <20180917094844.GR24124@hirez.programming.kicks-ass.net> <08b930d9-7ffe-7df3-ab35-e7b58073e489@amazon.de> <20181123165102.GB4855@lerouge> From: =?UTF-8?Q?Jan_H=2e_Sch=c3=b6nherr?= Openpgp: preference=signencrypt Message-ID: <0f025121-d3b2-36c9-5c0c-7db1d118f317@amazon.de> Date: Tue, 4 Dec 2018 14:23:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20181123165102.GB4855@lerouge> 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 23/11/2018 17.51, Frederic Weisbecker wrote: > On Tue, Sep 18, 2018 at 03:22:13PM +0200, Jan H. Schönherr wrote: >> On 09/17/2018 11:48 AM, Peter Zijlstra wrote: >>> Right, so the whole bandwidth thing becomes a pain; the simplest >>> solution is to detect the throttle at task-pick time, dequeue and try >>> again. But that is indeed quite horrible. >>> >>> I'm not quite sure how this will play out. >>> >>> Anyway, if we pull off this flattening feat, then you can no longer use >>> the hierarchy for this co-scheduling stuff. >> >> Yeah. I might be a bit biased towards keeping or at least not fully throwing away >> the nesting of CFS runqueues. ;) > > One detail here, is that hierarchical task group a strong requirement for cosched > or could you live with it flattened in the end? Currently, it is a strong requirement. As mentioned at the bottom of https://lkml.org/lkml/2018/10/19/859 it should be possible to pull the hierarchical aspect out of CFS and implement it one level higher. But that would be a major re-design of everything. I use the hierarchical aspect to a) keep coscheduled groups in separate sets of runqeues, so that it is easy to select/balance tasks within a particular group; and b) to implement per-core, per-node, per-system runqueues that represent larger fractions of the system, which then fan out into per-CPU runqueues (eventually). Regards Jan