Received: by 10.192.165.156 with SMTP id m28csp566768imm; Wed, 11 Apr 2018 03:57:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sMIaSVUIvaEHGJ29BCjRiyQ58LvmGGQnIwrSkifx+ZCHHeqIiCDPxnSMgqOxZyW6gECxj X-Received: by 2002:a17:902:8646:: with SMTP id y6-v6mr4636934plt.182.1523444265314; Wed, 11 Apr 2018 03:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523444265; cv=none; d=google.com; s=arc-20160816; b=sopy5YuyqkSmNmqgIMgcSA+7JDu5OJToRJ9jWKlPOenVcDlW1paGo3GY2RyLDSapxc pV1z8tSd6C/Mo94RDLnifnoWB0nYNmLqueGnyt1X0IpidT6jjmsK0ioOD/ySAKbIZ4Rv +hXgTQVAGLiwOJjlIqQpVZdV16NlQbzm/iWL0QTDfzoJRYoTR3YuaxqGP6VGmJUIfal3 pnukEh127vLXGscPKSoRSP0KvnXcMkprvjZujhjGT//2SQN6UK50RAgtL+s17zs2VZ2L mSUBJvmYiCiznjC3y7+Bie05a08LyW0HU7cKLYC/el9UVNkJ63LE4YbQtujnQax4IhAX DAWQ== 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:arc-authentication-results; bh=t4lZC8YCA0g+hrCBu1OYy7W5Ir+w8FWWCys++qlTuow=; b=qPR1KciI7vjFqwrBRgfxvFtx7KNF02Iklu+0Cmo2Y+35bsdCdlA/T3JajWFY84nTsI QLQQlHcVhmIzTF+TbHJTDbfFNSclbtBSqxvD/xRnsT11Z+JiO7Wq5piKoZxIb0zIVsuc AKYXQS/1i01rBswdd5yYJFq4+YnXajbqYXk5GzRDfvQPzVR4Ciqvyeu7qhrontt8hza/ i5MPiL44F7Wdra4jnzp70JTwTer6LVQlwFxLARya3iX6ofTwyCZGF19fa/RmzDk57nn2 5Dimj4OnkV5Fl2MbQpLjccUrMk2wOI2IoW4Gn5jRjrQimIP2O7LtsVdFfAemnjQrw8BJ vOEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=V+j7RW1t; 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 p1si530735pge.659.2018.04.11.03.57.08; Wed, 11 Apr 2018 03:57:45 -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=V+j7RW1t; 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 S1752976AbeDKKxf (ORCPT + 99 others); Wed, 11 Apr 2018 06:53:35 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45554 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752806AbeDKKxe (ORCPT ); Wed, 11 Apr 2018 06:53:34 -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-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=t4lZC8YCA0g+hrCBu1OYy7W5Ir+w8FWWCys++qlTuow=; b=V+j7RW1t+acYZ4CxojtdUxNgn vBhhNESkOF3rRLQdRltCzV/LsmseXVN4DfOYt2EKqBIZkMnf1UMsaK2v1v9/eu3gD0xpfTb1geKUq MYnr5IX1nrfNo3tSi6oRIW39Ztr8bXgAmMGGKKKjdvizkt3CXAy+rQ7aWRj4C8SMdRpKBznYSVAzK eZON47N0sE2O5NNR6tw27JlRMMp0oEC203/hGTCpW+1eKQ7UvwTilIp+UbeweI5dXDZYuWx2UWFOE GWFzH/Gp500l1Lp6FZKQABejCvx+ystAcdasKMRCa2aAMysEPiH2HvL9dLx02pZJ578JHUhOJv6Tk JY4aAIfmA==; 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 1f6DNa-0002au-IL; Wed, 11 Apr 2018 10:53:30 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1B5D92029908D; Wed, 11 Apr 2018 12:53:29 +0200 (CEST) Date: Wed, 11 Apr 2018 12:53:29 +0200 From: Peter Zijlstra To: Morten Rasmussen Cc: mingo@redhat.com, valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gaku.inami.xh@renesas.com, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 3/7] sched/fair: Consider misfit tasks when load-balancing Message-ID: <20180411105329.GI4043@hirez.programming.kicks-ass.net> References: <1521125224-15434-1-git-send-email-morten.rasmussen@arm.com> <1521125224-15434-4-git-send-email-morten.rasmussen@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521125224-15434-4-git-send-email-morten.rasmussen@arm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 02:47:00PM +0000, Morten Rasmussen wrote: > + /* > + * Don't try to pull misfit tasks we can't help. > + */ > + if (sgs->group_type == group_misfit_task && > + (!group_smaller_cpu_capacity(sg, sds->local) || > + !group_has_capacity(env, &sds->local_stat))) > + return false; > + I think that has the same 'problem' as last time, right? Since group_smaller_cpu_capacity() is affected by RT/IRQ pressure. We should have a comment stating this and preferably explaining why that is ok.