Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4527313yba; Tue, 9 Apr 2019 22:30:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBMQbASouCUBLsd/qoq3mitTbZlaYVuNZ/kQLdPHkzFVb6Wth93RjyQ5kWj+Vf5cAiiKlQ X-Received: by 2002:a65:5941:: with SMTP id g1mr39880012pgu.51.1554874200397; Tue, 09 Apr 2019 22:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554874200; cv=none; d=google.com; s=arc-20160816; b=dZwxNvsLQA3I51pRbOoBK1Z0DqKch1cWLX1xpCi5ub913SLQs2Czd3LjFejRiuUU4Z iKAgrzakL+adkWU+vwuE6E6X79WiRrjjH5uiTKgPGhaKuJmsXrE9NcTNYAPenRuVMlCJ Sr6MNjwq7UlZ9DgUy6myKYL7nMgAs8ztcix4Oql3n6FbavELwHdVTFWor4YZfzxSYLZ1 LjJvM451WKmIy9uxfdnuLnor8yPQlZgi4eL1DlWcGLrmiVddpt63n9o78K/5hhEt6xj8 9VckROyBto+oxa0DOa2xOBGAVuNcciFYHJjnbBDcnLsHi3DhiL3SwKnWwJUL1Ynpwi/w Fdbw== 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; bh=anRDBP9zdBIYfjM/31MZeGr1f36Do4w+S/zuY7M7Ap4=; b=aQ48gx8y19GlN2naqBJuqLPICPnoqqls7nkIryDbctdzmgAFtuLqwkedmO4Zm2g0T8 6XVIlomg6CVWmztDKbYIbYZ4QN13aKRcfEKATwMQ8qljxzR+irG5x6UiKO2AQpAEvkFY uyOj5SjVlJnvPUHhx//lleeY8VHn3xZAsjdY7onyCKRb/k/IS7qxmCdbI3KnG2exNF0K /hDoymzKgVHV32Hc06m2XOG4h8+k0+XkxmbO5kUwSJbOCBiS45EPyhSCyX83pixdbuWM FNDmFwx7qIOOT3a+xtqqJ9BpDevl2TjaM40P2Kt9gvg5XSzfjbIhg+6pHoCr/teCJ9cK UOlQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si30849910pge.349.2019.04.09.22.29.43; Tue, 09 Apr 2019 22:30:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727301AbfDJEgo (ORCPT + 99 others); Wed, 10 Apr 2019 00:36:44 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:41252 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbfDJEgn (ORCPT ); Wed, 10 Apr 2019 00:36:43 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01422;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0TOxb9X1_1554870993; Received: from aaronlu(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0TOxb9X1_1554870993) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Apr 2019 12:36:39 +0800 Date: Wed, 10 Apr 2019 12:36:33 +0800 From: Aaron Lu To: Tim Chen , Peter Zijlstra Cc: 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: <20190410043633.GA67532@aaronlu> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <460ce6fb-6a40-4a72-47e8-cf9c7c409bef@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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). 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.