Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4925425yba; Wed, 10 Apr 2019 07:45:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN2sZsHNSkuDfyBnj7h+wMHl4WCgAjU+qVDr5UbRZOU/AVwkgG6+ZMidP84EZ1daJXlcIS X-Received: by 2002:a63:e44f:: with SMTP id i15mr37175520pgk.362.1554907559569; Wed, 10 Apr 2019 07:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554907559; cv=none; d=google.com; s=arc-20160816; b=U0tXHt4G/lKXDpntyOA2ZmwTdE6S+UH1V1FXYIyXdbMGTacgbveqitXVydXY3k383Y nMIvRO77jeQ3Or4ijcTh6IjP2z/jyJvilspHUCEUGQIJs3uAeBT2Xa27JV4L6xsjicZV cUNNUDXT/lTdPttJCwBZ2vn8Wllt9ZX1vcaRaNRF7WrFkAvy0Z4/fdx89NJ2YebkEO32 y/ehKkjQ9EFWsLO4tzbLDGVVfK/Twlkmf3oqOKCjzUMuq4kE1Rqg/IF6/xUVe/E4mEWJ FyL+Y49RWs8ADTVeZOlbosC8lmAkBQg5Z36mTbssOStjNCgFuTHliq4xExFOnDk2TmyG tk5Q== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4YVFWr0gIfVgCxc2G9GPVRtvsl+Z3HYriqsv+oJBi2Y=; b=LAMxTUzte4LNu2+Nc6UYRq81ZYrR0EUIANVDOsr8VaIDWCkHXJLJCBrqZkRiwvUL1X d7YAssg32FOOeWi8AuWWemsQFG7WTS5V0t8azqAlI4ykhaRPLzXOLdaMO7kXdB47q2Ge CybyaJGA3b35UaoVJzl7jFMkzRrtnEpA2C8rnAlooCi6zNoN0ZqNULQOu5sCWuHcp/Rn xoViubbavMhifqZt7YLEEpk+TbKQgaxuFx08BFHCMxGQM3mzRQ4bf5JOeYWxhY8zzOMh BqLVXUtqRLtuv7c6AWWRXAtfvSxv6hgNt9B68HudbWwjed+CYrd4sK5PEjQi7poBiQfu MH2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="nGMtr/6L"; 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 y11si27418716plk.237.2019.04.10.07.45.43; Wed, 10 Apr 2019 07:45:59 -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=bombadil.20170209 header.b="nGMtr/6L"; 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 S1732869AbfDJOoL (ORCPT + 99 others); Wed, 10 Apr 2019 10:44:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40578 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732818AbfDJOoK (ORCPT ); Wed, 10 Apr 2019 10:44:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=4YVFWr0gIfVgCxc2G9GPVRtvsl+Z3HYriqsv+oJBi2Y=; b=nGMtr/6Lf/IR9Ua0DLDUmyza3 7CSTYI3OtFo7xRxuqjJCRo3o0EDp6ppzaSXxEd6p8JbNrRaRIoFjTFn8v+CY8akDzwBUD+zUJ4FI9 KTeYYuTMXSnFzYsGHTnEi/2TWcROZWLfx7b8pECNGHidH4lm7CVm+Jw1XxMTIFGUWiIl7F3GZo5ac Hg7Wqbu/e1Yr5fJiXkImH9/XuL1TLdG07eosNKyR0OCRr+6bK0fd2ZFCdDwSEZPZWN8arcNqfJo/g 4C+jj4FOuPNSIblKOuujgJeBABSSJt5fzqFt91HBlsPd/q8UU0tjsFbStXKo4nnu2ZGTpJxilTE6q cQ7co6SHw==; Received: from [89.200.33.100] (helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEESK-0002kg-GD; Wed, 10 Apr 2019 14:44:04 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 46A18984F06; Wed, 10 Apr 2019 16:44:18 +0200 (CEST) Date: Wed, 10 Apr 2019 16:44:18 +0200 From: Peter Zijlstra To: Aaron Lu Cc: Tim Chen , mingo@kernel.org, tglx@linutronix.de, pjt@google.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, subhra.mazumdar@oracle.com, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Aubrey Li , Julien Desfossez Subject: Re: [RFC][PATCH 13/16] sched: Add core wide task selection and scheduling. Message-ID: <20190410144418.GH2490@worktop.programming.kicks-ass.net> References: <20190218165620.383905466@infradead.org> <20190218173514.667598558@infradead.org> <20190402064612.GA46500@aaronlu> <20190402082812.GJ12232@hirez.programming.kicks-ass.net> <20190405145530.GA453@aaronlu> <460ce6fb-6a40-4a72-47e8-cf9c7c409bef@linux.intel.com> <20190410043633.GA67532@aaronlu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190410043633.GA67532@aaronlu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 12:36:33PM +0800, Aaron Lu wrote: > On Tue, Apr 09, 2019 at 11:09:45AM -0700, Tim Chen wrote: > > Now that we have accumulated quite a number of different fixes to your orginal > > posted patches. Would you like to post a v2 of the core scheduler with the fixes? > > One more question I'm not sure: should a task with cookie=0, i.e. tasks > that are untagged, be allowed to scheduled on the the same core with > another tagged task? That was not meant to be possible. > The current patch seems to disagree on this, e.g. in pick_task(), > if max is already chosen but max->core_cookie == 0, then we didn't care > about cookie and simply use class_pick for the other cpu. This means we > could schedule two tasks with different cookies(one is zero and the > other can be tagged). When core_cookie==0 we shouldn't schedule the other siblings at all. > But then sched_core_find() only allow idle task to match with any tagged > tasks(we didn't place untagged tasks to the core tree of course :-). > > Thoughts? Do I understand this correctly? If so, I think we probably > want to make this clear before v2. I personally feel, we shouldn't allow > untagged tasks(like kernel threads) to match with tagged tasks. Agreed, cookie should always match or idle.