Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2393904ybb; Fri, 27 Mar 2020 04:49:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vto74FVIDNIlkpXGLxK1sBq2hESCJDuM40coLtpvRE1zG7oB/yEYA2sQiLm4d/gtYlyMHan X-Received: by 2002:a9d:5e9:: with SMTP id 96mr9943723otd.307.1585309759013; Fri, 27 Mar 2020 04:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585309759; cv=none; d=google.com; s=arc-20160816; b=Fh4rveVnHQxosMXHnL0XAABrYJiiwrctEHGQRc9NjHsS1v+76gtRbYA4hg9LAKK1Ch geV4zobuHTEC6BjiDRvK756wTMrWfuof2yFc0pvSn3VMJEf5EWrL77HSOMigfA3f5r2h tIQb2hGSk26GvHsVNEHw3GkSLckO6+B8gjylpXbklHqy+/CguP4dEbJ5mnU6fzwWhHfV m/jXGBRAv8NZZNlRgZI8QnM3bhYS59cHx0kny9GOVM43eqVc9Pb78asf9oLclwApskGx El+lh3Muc7PecYxxpJirCb/3OTC762YAZPMMNH5e/b0BZMUhqswLMSOrIfoY5F9Fnpq5 5jLg== 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=21VqSUD37rSd4JNETUMrfh143QVayxjminP987EHoqw=; b=HcZbX1ncnZXdfq5miGCMeJNH4bw5Yh7xKzoBhV1w79IKbpw7XOpbYj7YU2yEMEInS3 g/M0ePVsY2mcbcKs1ACvD0+c3YcOtPRDHB1XyKyIqFUGd3PrWBBB4Hn/PmXKXQWkjmVn 7SrafbM2fE5c8YJ6i/vEaDx84D9HTdxZljWoVLLvlEyz/qqC3+zXMThvMA2Rnq56PGtR sN7B+D7ZZtzwhrWrw1Z0IcnwTITDQ5bL2jRY2ZcyT9AJzEWQ6izez6vE5TCyw6whkUGf 0z0EDwd0OdoHLRounax4kcglQJGFNwrF8H7CCv6/lmZL2pPkdTdgmwDMSLo2oXWusOuq yLaQ== 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 f129si2235348oia.243.2020.03.27.04.49.05; Fri, 27 Mar 2020 04:49:19 -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 S1727125AbgC0LsH (ORCPT + 99 others); Fri, 27 Mar 2020 07:48:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:52594 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgC0LsH (ORCPT ); Fri, 27 Mar 2020 07:48:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A1E52AB7F; Fri, 27 Mar 2020 11:48:05 +0000 (UTC) Date: Fri, 27 Mar 2020 11:48:01 +0000 From: Mel Gorman To: Aubrey Li Cc: vincent.guittot@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, vpillai@digitalocean.com, joel@joelfernandes.org, Aubrey Li , Phil Auld Subject: Re: [PATCH] sched/fair: Fix negative imbalance in imbalance calculation Message-ID: <20200327114801.GL3772@suse.de> References: <1585201349-70192-1-git-send-email-aubrey.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1585201349-70192-1-git-send-email-aubrey.li@intel.com> 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 Thu, Mar 26, 2020 at 01:42:29PM +0800, Aubrey Li wrote: > A negative imbalance value was observed after imbalance calculation, > this happens when the local sched group type is group_fully_busy, > and the average load of local group is greater than the selected > busiest group. Fix this problem by comparing the average load of the > local and busiest group before imbalance calculation formula. > > Suggested-by: Vincent Guittot > Signed-off-by: Aubrey Li > Cc: Phil Auld Acked-by: Mel Gorman -- Mel Gorman SUSE Labs