Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3298619pxb; Mon, 9 Nov 2020 07:40:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEgPuk2t1xNPbyPaUHSq1rC2ehg4MpcVY7IMRwa0QSwv4t5yyS6/SQKfHUzmJhFhfp17Eo X-Received: by 2002:a17:906:6b86:: with SMTP id l6mr15302279ejr.524.1604936432814; Mon, 09 Nov 2020 07:40:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604936432; cv=none; d=google.com; s=arc-20160816; b=OmoL61dRQhs+KEXo+rpYnhGi65VmCqLGmg5s4OkUPGZBAWT+KYjJClIP82bLn1I9H8 M/uEAksMtQC5WL3V1OxTN0uMsXO/vPKRsvwDMShKapVzb8sycWpsB76Y7qp7bsfr9LL9 zd0uRnyLQ4yhIbml8xfyWoW8+NOPnnPCTDBxvNi9Q0Fw39ZYzab5KB7tvh/yqmpCigcn yCi+hsUAE3ZXcCzMWxQUq8oSyxp/QvDfnrDiKYcgr3POk2OxsW1xlPGm/NFB22I9R1qE qQlPD5xVafNjPr5I/MLcCIWoRVQd4ZdiORQay9jyx+9arprVzLNRv6pXqfAGuSKXsAkg 6/rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kQdbRhE7pFpPldHr+2DLaSM+C03ZKrdkfjLrYyXmYjk=; b=e81XSoBZTFuDK0MLdi9EdrDniIgWHVHybLbL4KE8BiO8iIciEEk5Oya8HD06i7e84I BohNlv4NtrJE9FfqHQGxgeTaCb6xlHFBC1KJHfXC4MQbK3rmDveGw5OCFYhkK1K57sOw mI7ioWg82+ke5Fv8NDH24nr3LjBnQMsqZj/k/4suOSyXnvINFVU0wYlWF0OU0mwwOlvm /eQBkq9hLZbEy0fdocC9fbxSN8qQyDgrXYw94tEtoN0eyRxyZe8bJWFi3BsP/qSvUb6M Uc54bHtt+68Gx79KlmANQnTTsdoeQCgYs4XdbjeukASuBGyvxrSULWPfQaScGlU28X/G hSOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w23si7734512ejv.504.2020.11.09.07.40.07; Mon, 09 Nov 2020 07:40:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729302AbgKIPiV (ORCPT + 99 others); Mon, 9 Nov 2020 10:38:21 -0500 Received: from outbound-smtp48.blacknight.com ([46.22.136.219]:38901 "EHLO outbound-smtp48.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727311AbgKIPiV (ORCPT ); Mon, 9 Nov 2020 10:38:21 -0500 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp48.blacknight.com (Postfix) with ESMTPS id F0F05FAC36 for ; Mon, 9 Nov 2020 15:38:17 +0000 (GMT) Received: (qmail 25473 invoked from network); 9 Nov 2020 15:38:17 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 9 Nov 2020 15:38:17 -0000 Date: Mon, 9 Nov 2020 15:38:15 +0000 From: Mel Gorman To: Phil Auld Cc: Vincent Guittot , Peter Puhov , linux-kernel , Robert Foley , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Jirka Hladky Subject: Re: [PATCH v1] sched/fair: update_pick_idlest() Select group with lowest group_util when idle_cpus are equal Message-ID: <20201109153815.GH3371@techsingularity.net> References: <20200714125941.4174-1-peter.puhov@linaro.org> <20201102105043.GB3371@techsingularity.net> <20201102144418.GB154641@lorien.usersys.redhat.com> <20201104094205.GI3306@suse.de> <20201106120303.GE3371@techsingularity.net> <20201106160010.GF3371@techsingularity.net> <20201109152411.GA610888@lorien.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201109152411.GA610888@lorien.usersys.redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 10:24:11AM -0500, Phil Auld wrote: > Hi, > > On Fri, Nov 06, 2020 at 04:00:10PM +0000 Mel Gorman wrote: > > On Fri, Nov 06, 2020 at 02:33:56PM +0100, Vincent Guittot wrote: > > > On Fri, 6 Nov 2020 at 13:03, Mel Gorman wrote: > > > > > > > > On Wed, Nov 04, 2020 at 09:42:05AM +0000, Mel Gorman wrote: > > > > > While it's possible that some other factor masked the impact of the patch, > > > > > the fact it's neutral for two workloads in 5.10-rc2 is suspicious as it > > > > > indicates that if the patch was implemented against 5.10-rc2, it would > > > > > likely not have been merged. I've queued the tests on the remaining > > > > > machines to see if something more conclusive falls out. > > > > > > > > > > > > > It's not as conclusive as I would like. fork_test generally benefits > > > > across the board but I do not put much weight in that. > > > > > > > > Otherwise, it's workload and machine-specific. > > > > > > > > schbench: (wakeup latency sensitive), all machines benefitted from the > > > > revert at the low utilisation except one 2-socket haswell machine > > > > which showed higher variability when the machine was fully > > > > utilised. > > > > > > There is a pending patch to should improve this bench: > > > https://lore.kernel.org/patchwork/patch/1330614/ > > > > > > > Ok, I've slotted this one in with a bunch of other stuff I wanted to run > > over the weekend. That particular patch was on my radar anyway. It just > > got bumped up the schedule a little bit. > > > > > We've run some of our perf tests against various kernels in this thread. > By default RHEL configs run with the performance governor. > This aspect is somewhat critical because the patches affect CPU selection. If a mostly idle CPU is used due to spreading load wider, it can take longer to ramp up to the highest frequency. It can be a dominating factor and may account for some of the differences. Generally my tests are not based on the performance governor because a) it's not a universal win and b) the powersave/ondemand govenors should be able to function reasonably well. For short-lived workloads it may not matter but ultimately schedutil should be good enough that it can keep track of task utilisation after migrations and select appropriate frequencies based on the tasks historical behaviour. -- Mel Gorman SUSE Labs