Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp146325pxk; Wed, 16 Sep 2020 00:03:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO+zu9OS1423bGi5EpUE+81z1wh5ZNx6lqU+c6XkftJS5mUrsr4Mjr0w9XQ6pA0W44dm3T X-Received: by 2002:a17:906:a251:: with SMTP id bi17mr23416222ejb.526.1600239800770; Wed, 16 Sep 2020 00:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600239800; cv=none; d=google.com; s=arc-20160816; b=izKsv6iSb1YnZ1l4R8yc8t5l3WP2nWc/8TnsfDXtaSncK7bSco85iF6aGYdQRye0Nc eMROyYEmTQqckx4nPcnqnFoYHP+B0Ol5XusZ6lvobB9FjG9ivwaS4jmAelH0NG9fTisq AKEBN0O/CCtbTpqgb1c6h5LM9Cu1uP2UuLl9ROk728U8YDf32y1rrG97vWv+dVe11QRs OrDgUjlogIO1U7DzCzqWbmhwW7pJtj2Gu/lFfI9PnNfQds9UVBUU+TjoQOxJFVPefllA d2O/r/v2TA0KXGDlwGEgubXQ+vuOvLkf/13fkv/9sI/dKWWwe+txDLgAYQ/ccVj0dQCK F3DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vCJLW8nQvOXApbk3la0saDMNsQyaJXyRyrTzDbvW5Rc=; b=qN6pwbcaVt29wg3xQp5plJvcyZfa57k9+QekgwJtIBNiaX2Ue6JNY/c+QDBZhY9gD0 fmlBlTksB3HJArOJM3gEi84HBHUAMX0ZrjBZfNLgSAVNv7bxb+MpMUf4wtv5qy+0+i1v bl2c7WZMbd3gs82RdSvCN4DJl5XWwYvPKnLda05kgWZfZ2NLHKjcKxspn3ubLjnIh7eu IwsWwyxHvhSeoO8aJfUqyRBWJgQOTpBbqqsJMmVHuFPMVkeH5kZmqPJRCPSSDPR13o03 DDCEvJzBgr8ZeKHx/NmMwNFMEK9ZlfKO393/qWzWBP+yGwR6TX5nrv7u08wBtLRmIhd1 e1sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4P0nr9G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si11501742edr.538.2020.09.16.00.02.57; Wed, 16 Sep 2020 00:03:20 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=U4P0nr9G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726172AbgIPHCU (ORCPT + 99 others); Wed, 16 Sep 2020 03:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbgIPHCS (ORCPT ); Wed, 16 Sep 2020 03:02:18 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 885E2C06174A for ; Wed, 16 Sep 2020 00:02:17 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id w3so4995674ljo.5 for ; Wed, 16 Sep 2020 00:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vCJLW8nQvOXApbk3la0saDMNsQyaJXyRyrTzDbvW5Rc=; b=U4P0nr9G63Cva5pVGBaKs47mb81G+pvTqF10ch8Jn+azXrumWjC5bdVF+hH77EugPv Pug3o0Ef3t+MnLGEv9CfSmIKnMvdBSKBSeGawr3u3YST8CFk7AXhSsL1A8qJOtpzz2Je /aL9eVWxY7IBaLYZyu1esacISpUUKiTba4RDXTVaeXL4ApUU6fTqEvs+t4GXD0p0ciGJ on9r6tzhvwy/Vv0Q5VSzrMzEN+7dZNmNpOSgjAyYba/BkCCCNOJmK/g/JXS7dzAAwzIE 19HGllLJ+Jpxo5III0r58G6LIraU9PoDSmtRo294SvwfGl8e9iZ/hnG3tlXznzqkyhBo h+Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vCJLW8nQvOXApbk3la0saDMNsQyaJXyRyrTzDbvW5Rc=; b=QgKj0PBRM0O4VpABx5LRL3LbOxnsVqp4iJKkG1c2E9wd8lWVI5GQmuQamP8pqCvOVp gXwfGs/ceIY4T5cVyMPyHlOzlF78nj3iw8+oE/xwK0jw1tQQeqw6sSa2jcUE5DcyDcy1 tEuFpUPSj3P2EuPnXTFkXbuBWQUHLlwSpqxfDKTBuJs7Mz3Ico9ejgtyJtHJLIuSAQc+ IT3gRXQKt+QzQv1Zw8fv/1de7ISwigKY/EGOwU90yBHobR9yoW8Ien6/ZSjhAUzfrJpv 9Sq5+9zaHvk+jgHIUbPJ1bk8SwUZMig+PF026H8bTODy65yFF3cE/ytIvjUsPzSYMNTI k8ig== X-Gm-Message-State: AOAM5322t/aRYNxJSISFJMMIkHWXKnMwoPGuVt1A7j4PIJifIy9wGuX0 sowyfl1SyLjt6isytye4zIh69k1Y46AoaFgIkngiGw== X-Received: by 2002:a05:651c:505:: with SMTP id o5mr8530997ljp.177.1600239732998; Wed, 16 Sep 2020 00:02:12 -0700 (PDT) MIME-Version: 1.0 References: <20200914100340.17608-1-vincent.guittot@linaro.org> <20200914100340.17608-5-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Wed, 16 Sep 2020 09:02:01 +0200 Message-ID: Subject: Re: [PATCH 4/4] sched/fair: reduce busy load balance interval To: Valentin Schneider Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Sep 2020 at 21:04, Valentin Schneider wrote: > > > On 14/09/20 11:03, Vincent Guittot wrote: > > The busy_factor, which increases load balance interval when a cpu is busy, > > is set to 32 by default. This value generates some huge LB interval on > > large system like the THX2 made of 2 node x 28 cores x 4 threads. > > For such system, the interval increases from 112ms to 3584ms at MC level. > > And from 228ms to 7168ms at NUMA level. > > > > Even on smaller system, a lower busy factor has shown improvement on the > > fair distribution of the running time so let reduce it for all. > > > > ISTR you mentioned taking this one step further and making > (interval * busy_factor) scale logarithmically with the number of CPUs to > avoid reaching outrageous numbers. Did you experiment with that already? Yes I have tried the logarithmically scale but It didn't give any benefit compared to this solution for the fairness problem but impacted other use cases because it impacts idle interval and it also adds more constraints in the computation of the interval and busy_factor because we can end up with the same interval for 2 consecutive levels . That being said, it might be useful for other cases but i haven't look further for this > > > Signed-off-by: Vincent Guittot > > --- > > kernel/sched/topology.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c > > index 1a84b778755d..a8477c9e8569 100644 > > --- a/kernel/sched/topology.c > > +++ b/kernel/sched/topology.c > > @@ -1336,7 +1336,7 @@ sd_init(struct sched_domain_topology_level *tl, > > *sd = (struct sched_domain){ > > .min_interval = sd_weight, > > .max_interval = 2*sd_weight, > > - .busy_factor = 32, > > + .busy_factor = 16, > > .imbalance_pct = 117, > > > > .cache_nice_tries = 0,