Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp102842ybx; Wed, 30 Oct 2019 12:01:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmHB8zFsji9jB0QusfQ/04NkQClCfGasXBEtO8HtuRcpyupVbSZt8s2DjOEe1CjcWusPDy X-Received: by 2002:aa7:c34c:: with SMTP id j12mr1363730edr.175.1572462095096; Wed, 30 Oct 2019 12:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572462095; cv=none; d=google.com; s=arc-20160816; b=xqnp89Qbkt+wkIPzvYFDc5tarNhmwdCmyfa/KMdaEIe6hQWEVhGWbm8WIhbIXvsqaX nt1pOdiDvRvoaWNW42rZHMd/Rgedn08w599F0dLM7CFn5MOP7QMajO75D1Zxyb8dyJuZ EA6W3d1mo08jDATH9K+UQDTmmu2ST88GtTXZVhj9ZpPqmygzDKXUwcf6w8pB5rAR+89m c1Gt/XvxYNf8LUalcroWVmZliw8O3xxc1wjuc415ZTMGM6ILQYg0Bw4gVi4JSXk53Yin h/cEt2wGq6FZU/KKUOR2SIMMOIknPE4OyYZH1ssFLX4+KM8nR17i7t9/fbyMdwFTN+nd hC5A== 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=fglx1P/Lr2zU5Bv2rqxkj3RwVFl25hRHEVVaBlkj2AM=; b=OkhFP+1o4TJkXnE9OJaOW9PbISDr9pgaA3I+5Xe6GKKxW91D48MPRcNL4D+awcEno8 6zLZMGgLloKm9FKfhZ8R2mQvKrAHpuGJe0dbBH99otd2BxeCdrPD6OLy3mEYscGaZgOD 1fPeqZBA8s1RIHv7n/THk+3M92dNK3vzcSBp3HsO6vNi9MIIlycwKnVvApukMY18qeQe VuKptCY6Hb/5+lbBaYy9GC7SJKoeK0GqWWPwpbzRPGmWrwi8ULUY3lkSZvocNUXypk7d sHrRbyaKdQI2LUMG/lWKbO7UbIjwj/tPfUVkQ3icrLVxupwH/Lu1HCzPuwR7CnfJu5Ns Yfyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7omyIFW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si1901169ejw.34.2019.10.30.12.01.10; Wed, 30 Oct 2019 12:01:35 -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=pass header.i=@linaro.org header.s=google header.b=i7omyIFW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726874AbfJ3QgJ (ORCPT + 99 others); Wed, 30 Oct 2019 12:36:09 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:34572 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbfJ3QgJ (ORCPT ); Wed, 30 Oct 2019 12:36:09 -0400 Received: by mail-lf1-f66.google.com with SMTP id f5so2083072lfp.1 for ; Wed, 30 Oct 2019 09:36:07 -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=fglx1P/Lr2zU5Bv2rqxkj3RwVFl25hRHEVVaBlkj2AM=; b=i7omyIFWFXzx+qrHikNEEnejVxeMI+/RkkoSc9Uh7jn1Uu4NJ65e1gQXFAR6nerCCA k3s4BnXN/BLtrxMZ91NiqXOVQ+z6MmOPGK/HU3PwvL3nZU/odNQcqvj8Yyg2AP6beOm5 kBZtrlO2zdXyQkrYbG0Nbnb8UcCOCKOiFhCt5PsLoAVGEU6ph/+cKBZjUf+9xYC2ZDay tu2FUNhEWyk3pK4M8HKIYLN+zHa9iXd+WZ9E43UDVVUbSxN9G9xPqaqKHtm2OC8hUvnt 2TzmqLNiIlqHKQAlHLcKbXBUNTGGCEiqAALYpjcUaiaJiu2BL5ZXqhMDujNZGhPDNrCv oRvA== 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=fglx1P/Lr2zU5Bv2rqxkj3RwVFl25hRHEVVaBlkj2AM=; b=V7lw3SNvJ/ivpTC1Ef4mgwtVxTGEcvXKE6Wl/2FUvQr6W3t8ueVGzfJKZfQS8uMsbk UqkZEGe1TjCMwXuaqs7uxgNai/vJoYxm7DK9VzkmK3Ai080KHICYPmkeGZp5SuSM7Ml3 L80GZsBTFJhdoX8aSdz6gn7Zw4Aqe5/xiGA22CiIuhCkh9S7O3Zo/QxWq/h+g4/4RvLK vmr47lm3f6hIlZi2uc3XB6ihgPQhFwggJZV8DBeL8lmJXtUtwfL7izB2IXjVhsPtAEtd Nl4rOvMDDzRKsOdks4BtfvpwqWp2D54D/K1lFlOwhJWzGnxMbKAahTP4uTgCqEgEztam Lhjw== X-Gm-Message-State: APjAAAUF2smzrzPVQnCYqb/Z2cu/dnLN+mbncbRMlUjuaeGYJWDvVqoD aAzFy0GZo2Ot3Cxf4g8Tmzt42f+fDjYcbUMRQZmS5Q== X-Received: by 2002:a19:ca13:: with SMTP id a19mr6645684lfg.133.1572453366556; Wed, 30 Oct 2019 09:36:06 -0700 (PDT) MIME-Version: 1.0 References: <1571405198-27570-1-git-send-email-vincent.guittot@linaro.org> <20191021075038.GA27361@gmail.com> <20191030162440.GO3016@techsingularity.net> In-Reply-To: <20191030162440.GO3016@techsingularity.net> From: Vincent Guittot Date: Wed, 30 Oct 2019 17:35:53 +0100 Message-ID: Subject: Re: [PATCH v4 00/10] sched/fair: rework the CFS load balance To: Mel Gorman Cc: Ingo Molnar , linux-kernel , Ingo Molnar , Peter Zijlstra , Phil Auld , Valentin Schneider , Srikar Dronamraju , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Hillf Danton , Parth Shah , Rik van Riel 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 Wed, 30 Oct 2019 at 17:24, Mel Gorman wrote: > > On Mon, Oct 21, 2019 at 09:50:38AM +0200, Ingo Molnar wrote: > > > > > > > Thanks, that's an excellent series! > > > > Agreed despite the level of whining and complaining I made during the > review. Thanks for the review. I haven't gone through all your comments yet but will do in the coming days > > > I've queued it up in sched/core with a handful of readability edits to > > comments and changelogs. > > > > There are some upstreaming caveats though, I expect this series to be a > > performance regression magnet: > > > > - load_balance() and wake-up changes invariably are such: some workloads > > only work/scale well by accident, and if we touch the logic it might > > flip over into a less advantageous scheduling pattern. > > > > - In particular the changes from balancing and waking on runnable load > > to full load that includes blocking *will* shift IO-intensive > > workloads that you tests don't fully capture I believe. You also made > > idle balancing more aggressive in essence - which might reduce cache > > locality for some workloads. > > > > A full run on Mel Gorman's magic scalability test-suite would be super > > useful ... > > > > I queued this back on the 21st and it took this long for me to get back > to it. > > What I tested did not include the fix for the last patch so I cannot say > the data is that useful. I also failed to include something that exercised > the IO paths in a way that idles rapidly as that can catch interesting > details (usually cpufreq related but sometimes load-balancing related). > There was no real thinking behind this decision, I just used an old > collection of tests to get a general feel for the series. > > Most of the results were performance-neutral and some notable gains > (kernel compiles were 1-6% faster depending on the -j count). Hackbench > saw a disproportionate gain in terms of performance but I tend to be wary > of hackbench as improving it is rarely a universal win. > There tends to be some jitter around the point where a NUMA nodes worth > of CPUs gets overloaded. tbench (mmtests configuation network-tbench) on > a NUMA machine showed gains for low thread counts and high thread counts > but a loss near the boundary where a single node would get overloaded. > > Some NAS-related workloads saw a drop in performance on NUMA machines > but the size class might be too small to be certain, I'd have to rerun > with the D class to be sure. The biggest strange drop in performance > was the elapsed time to run the git test suite (mmtests configuration > workload-shellscripts modified to use a fresh XFS partition) took 17.61% > longer to execute on a UMA Skylake machine. This *might* be due to the > missing fix because it is mostly a single-task workload. > > I'm not going to go through the results in detail because I think another > full round of testing would be required to take the fix into account. I'd > also prefer to wait to see if the review results in any material change > to the series. > > -- > Mel Gorman > SUSE Labs