Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5245242imm; Tue, 18 Sep 2018 06:38:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbqopJijL3jKvjl/Cp7CENZM6CzlXJQCVQkgmnY7emsN8y6Pd8JCXJDRiuf4uhE9euJl27O X-Received: by 2002:a63:845:: with SMTP id 66-v6mr27442304pgi.352.1537277929307; Tue, 18 Sep 2018 06:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537277929; cv=none; d=google.com; s=arc-20160816; b=OHbRsJzkjuNMK7DmDQcVo6Uq9TtOgQeNZ2seP1iUjD7o7YjCB4Op2Hr7kGP9gX2n5b 9jwz9xY62pxim4srjejOaWzt9q072qA9S2XKs6hsEoGCfdU82BNfOoZSvD/8BwqlKwWn hm9yALbuBEA6mTq8FUYE+1bwtaMRZmn+myOyY1sQwVbUy5Erf7oUdLiMMLCCbAibj8BI oLpYc4Lb6Ru4ZCWdXjMIJ1J27gUggxdTyq11L+CIXUvxKtymO+S9v75OJiDqEhQHYv78 M5daTGmdbAWZkHWjABxRE/iiBeh33abHScbvfUon+uwcnOjdMSWgwKZ/hUSBo7sABq2T qXuA== 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=p0rsKkkMM1fWB2KKGf3W9qkuVQvLMIK38763629zTxs=; b=b1grqhRfIaxTYOLn1pNvQqbEUqwoNQFwSiiJcoV4ltRaW+T6tL3PwOhKtR8nBfDyNv 54HDLxDjAWn4huuhJkO0gPRCxoKsWOnRU0Z2yDUA5Y1RsOI5/e3wYU39zuoRD9HDp6ff FTqgkD3G7Mr8mepv1TCDESeqajcQTo2JAd9ZKOPz/s6B9rngYUzdGZS8dDLVyAu0jl0b uC8PA0XixnVubRn+nRHb7aeguJJERXrQT42s9WSRQDA6LuavyW26ONOYetyf/ikKOVga /O7LqIRo9D2mCFNys1174sVax2aELfN9ZAprlOFYDZPvsCTV2+FFcxvyMf9Iod84gN6Z gqmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=fbJoFM63; 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 m7-v6si1298821pls.194.2018.09.18.06.38.32; Tue, 18 Sep 2018 06:38:49 -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=fbJoFM63; 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 S1729808AbeIRTKy (ORCPT + 99 others); Tue, 18 Sep 2018 15:10:54 -0400 Received: from merlin.infradead.org ([205.233.59.134]:53496 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbeIRTKx (ORCPT ); Tue, 18 Sep 2018 15:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: 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=p0rsKkkMM1fWB2KKGf3W9qkuVQvLMIK38763629zTxs=; b=fbJoFM63l2pCC7CrQWNFh4T/CG ZLliht3mJPzU+bg3ntEsNQ3Yy26od+xAelI8+5hM5nqq4XlTpwhM8IRtI95CGFWKVtDEEAZJ8r+V1 zhXlc0ebBC1JbVmIAobGFqvonS5rUcEDKDS0AcPElJzZ4dVuTKBsH1g/1NnHvC6T0AtzLf1Z6upma HlxlG8DhZPEdze7s9GGVP8Ls8LV2XOXuSn+Yd0yFf6fggZ1ywP0bgg/ovzzuAbI5s7bfolVYG59ET FFHGYQ/O0yLsJRaYjSRuBlczvsDRgGUEbW/rJUoq2zw/lbgzuYGkdlD3So5VV9W7m7xjYCpYPQvWm LiTFd0kQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2GCd-00030z-2j; Tue, 18 Sep 2018 13:38:07 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 64CE5202C1A38; Tue, 18 Sep 2018 15:38:05 +0200 (CEST) Date: Tue, 18 Sep 2018 15:38:05 +0200 From: Peter Zijlstra To: Jan =?iso-8859-1?Q?H=2E_Sch=F6nherr?= Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Paul Turner , Vincent Guittot , Morten Rasmussen , Tim Chen , Rik van Riel Subject: Re: Task group cleanups and optimizations (was: Re: [RFC 00/60] Coscheduling for Linux) Message-ID: <20180918133805.GN24106@hirez.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <08b930d9-7ffe-7df3-ab35-e7b58073e489@amazon.de> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: > > On Sat, Sep 15, 2018 at 10:48:20AM +0200, Jan H. Sch?nherr wrote: > >> On 09/14/2018 06:25 PM, Jan H. Sch?nherr wrote: > > > >>> b) ability to move CFS RQs between CPUs: someone changed the affinity of > >>> a cpuset? No problem, just attach the runqueue with all the tasks elsewhere. > >>> No need to touch each and every task. > > > > Can't do that, tasks might have individual constraints that are tighter > > than the cpuset. > > AFAIK, changing the affinity of a cpuset overwrites the individual affinities of tasks > within them. Thus, it shouldn't be an issue. No, it only shrinks the set. Also nothing stops you calling sched_setaffinity() once you're inside the cpuset. The only contraint is that your mask is a subset of the cpuset mask.