Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1053134ybx; Wed, 30 Oct 2019 09:08:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6qlj5tI2ujN7vjmrR+ASbIe66ZyhUHIsap64BoBQyyulto7oZRa6oj4NAJvzFBjAgGS7f X-Received: by 2002:adf:dc07:: with SMTP id t7mr646299wri.274.1572451731914; Wed, 30 Oct 2019 09:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572451731; cv=none; d=google.com; s=arc-20160816; b=mMkhu6eBRA3rRcMZf4JeDA3HZYksOn28bu1TGRoh1ZIu8Ast9TiCCAPLyKQVMWP1uk WsdjhautkP3Y26gtQbxRfYzgHWyhic4ctJH1X6b4C0wlQ3G5kfxgzkSXGt5onddYdsVs rXGuvbG9ATFv5kgrPch38ceVMX8iuDdDBUBxyxS3xNU3tmVJyQF19k4cEKJHWWF38lw2 eBCaN9iCVF4cReIHp1EenL/6QGodmEB0xF5jjm/kEfeVDV+jQRuukvVNt9ar51rQi6UC WL3x2yu9LdruyAdR+BxMMZbwyt3ghwLI9Rg3o0xrt8tdo9WDue0CDU+JSnvTJspUI0jo DbtA== 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=D9dFagpKNQ6wOc81HJuh/ry6gPiAgM2U2uX3VBYKpu8=; b=lcSdny8WjfEsj3UBLUsZGVwOIMRGaZyTv0EY8+/jmx+azxp6CTXeT3RpS2Tpb1BET+ HxPpzJW8/xjp+1IZXjjwOrFt1fCeLkObOxt79LjxJZz30BeIfO8+tAb9bmgiZRqPglhp h5OeXAK2klw3oCenY3iwbZ+t/UOQyzTbk3q2MCfOAsEa+KCm8tv+6Xgs/VF6yEz+y51j mpzCihbVHSuAfAI2T4uQL0KEyCVASAoItQ50XLBdA3y0D2cTjikKZyOMSs6mpiOKQPOK +OXS+tKA19CuhgEamxgjRI9ST2vXJ5xE5OJqOdLJ1LWKDf8mR/96rzevkFmkYrOejXyn H8Mg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m38si1721692edc.37.2019.10.30.09.08.27; Wed, 30 Oct 2019 09:08:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727134AbfJ3QHy (ORCPT + 99 others); Wed, 30 Oct 2019 12:07:54 -0400 Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:36232 "EHLO outbound-smtp01.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfJ3QHx (ORCPT ); Wed, 30 Oct 2019 12:07:53 -0400 Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp01.blacknight.com (Postfix) with ESMTPS id 94FEF98765 for ; Wed, 30 Oct 2019 16:07:51 +0000 (GMT) Received: (qmail 18503 invoked from network); 30 Oct 2019 16:07:51 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.19.210]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 30 Oct 2019 16:07:51 -0000 Date: Wed, 30 Oct 2019 16:07:49 +0000 From: Mel Gorman To: Vincent Guittot Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, pauld@redhat.com, valentin.schneider@arm.com, srikar@linux.vnet.ibm.com, quentin.perret@arm.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, hdanton@sina.com, parth@linux.ibm.com, riel@surriel.com, rong.a.chen@intel.com Subject: Re: [PATCH] sched/fair: fix rework of find_idlest_group() Message-ID: <20191030160749.GN3016@techsingularity.net> References: <1571405198-27570-12-git-send-email-vincent.guittot@linaro.org> <1571762798-25900-1-git-send-email-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1571762798-25900-1-git-send-email-vincent.guittot@linaro.org> 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 Tue, Oct 22, 2019 at 06:46:38PM +0200, Vincent Guittot wrote: > The task, for which the scheduler looks for the idlest group of CPUs, must > be discounted from all statistics in order to get a fair comparison > between groups. This includes utilization, load, nr_running and idle_cpus. > > Such unfairness can be easily highlighted with the unixbench execl 1 task. > This test continuously call execve() and the scheduler looks for the idlest > group/CPU on which it should place the task. Because the task runs on the > local group/CPU, the latter seems already busy even if there is nothing > else running on it. As a result, the scheduler will always select another > group/CPU than the local one. > > Fixes: 57abff067a08 ("sched/fair: Rework find_idlest_group()") > Reported-by: kernel test robot > Signed-off-by: Vincent Guittot I had gotten fried by this point and had not queued this patch in advance so I don't want to comment one way or the other. However, I note this was not picked up in tip and it probably is best that this series all go in as one lump and not separate out the fixes in the final merge. Otherwise it'll trigger false positives by LKP. -- Mel Gorman SUSE Labs