Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5118638ybx; Sun, 10 Nov 2019 07:18:10 -0800 (PST) X-Google-Smtp-Source: APXvYqy8P2Mhd/Blyt24Ivb71ljEcRZBL663X2BXvy0jSOeOe58jrhSLeS0se/k7JUfLYzwul58k X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr15383628ejb.138.1573399090057; Sun, 10 Nov 2019 07:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573399090; cv=none; d=google.com; s=arc-20160816; b=kXA/btCsu2IRt2J1gwjNQk5sdgrfnGZXoevked3m1L95hrCOtn4dy22BFUOsxUtT0B aBFJIkIlqu6y43Dtp3qm8jXNv+KEpCAuEjHUthtjfskKFHJDW+r6VdVxWCP6Yp21V/Ey SqD1jIHRPomvZdG7FTIZZuuxfOuneOL4LzSmzlM6MutFcbMvtEBwQekfqvm/A/V1UZyS /fvwaB3hSAETYgYjrjVwt2xXgM/LqFb0/NuWkByKcm10CAj7MAEA0dilxd18ElOfXu+M m5FiISk/i0ilHwYG+3NNSgHHhinlVCzbur0h4WO+8WWbuzAv0BBn+71QYXw1F2ijljez d73A== 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=lcuaDzTn5xcx3GvRhEsUKRkdeQxQHVuFzpLwf2zUomU=; b=ivTVTZK2y44EKMw1dAitKBxPf+0JeMWskRBRBhdyMSE7qVsZLCUeJymrCv5kYN9I2l nKLwvYEANJBk29j083D7hT2kMizjmNvr3bsHlir2UfRGQl+hXEaMAsvT9Gj8A1uphw75 j5vTMmeOGsCUEUwbugb5W2YaiZmq69BxeHxJVZIiDD0HrhYi9moPtcG64Szh3X5yYSSJ NVahMT2c92efOQjZcJyyaBaPBDTl7XUgFa3H17qzPiClltM0y+to+UKfRnWwtt96dw0X yXLudJMa+Npd5IfNoKeELIWo7M1IxcISJVgGVWSTUcOCycxU0OvNIO0HjTi6Ygthn7fH W13A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZBl2Q626; 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 z33si8057676edz.114.2019.11.10.07.17.08; Sun, 10 Nov 2019 07:18:10 -0800 (PST) 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=ZBl2Q626; 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 S1726845AbfKJPN2 (ORCPT + 99 others); Sun, 10 Nov 2019 10:13:28 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43519 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbfKJPN2 (ORCPT ); Sun, 10 Nov 2019 10:13:28 -0500 Received: by mail-lj1-f193.google.com with SMTP id y23so11043350ljh.10 for ; Sun, 10 Nov 2019 07:13:26 -0800 (PST) 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=lcuaDzTn5xcx3GvRhEsUKRkdeQxQHVuFzpLwf2zUomU=; b=ZBl2Q626uvo+qPgSkpC2cJabVplXCzF78qFmX7LeouV/27Y6uldo66xhfgL/qXiOhk 17GqrrfVdKaUU1PoYyKk4nMu2eq6FFgl+yLOvHDNmV5GLe4sVR4aPLHfyFzlGGN3ZrrM bGXRBuUCBQvqjEkF+rNkbjPgNxxrSgamRzUbgmmuv9CtRvJ16YmjQyxzmgLKJu0Y0md7 k7hahzuHJzZwjt5U0/+qSjoqJ6GYNjTLUwKNEMfspSvEcSqvns/YMBelHzfKpKaoJxaf 30YfYrheitZ/0MXy1KapL+0m2lBWQVURjwT9VWd7aDHupaJTytnxu+OcMPLP9IXfAhm3 pN6A== 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=lcuaDzTn5xcx3GvRhEsUKRkdeQxQHVuFzpLwf2zUomU=; b=MUDWZDgUb+NFdllC+RJJYVca64Tpa2fDqrOH2Er0q8jzZ3DwKc2E+BbpCF9fdZ7d9I rZBl/exjou7JpMB0qnZj3Xc5qVUzhLU5Gr++vKpzqHBRsdTqm2AfrcLbu+1srFU3voW3 0XGgBn5UPZ9KmemVd75L5Wpjo9ABEqnnKNnoIxsutbAKc6vNYPiSr9q1f/LscsqzH1bm 1WWfDe7Pyd7pgKUpB+8Xoy4yv2TUNLPZY124ZGTiOlRCNtRKh2i6O6hJYllXoS2JojGP Jj0p+PXAVhNCWz2SCltTWBQxyv7L90cibPNJgXblyqdBgX8l3vypKMGKmhDDO27HzoPC xr5A== X-Gm-Message-State: APjAAAVfi233FY0bcW95xZ3b6U/rAWO96JhRLBn7jdu8fjk39eSEQuxL xSXtLmHRnrn0GVk2llwUVWCfwN3blQN4VHE4oPhhZQ== X-Received: by 2002:a05:651c:28a:: with SMTP id b10mr12768619ljo.193.1573398805894; Sun, 10 Nov 2019 07:13:25 -0800 (PST) MIME-Version: 1.0 References: <1572018904-5234-1-git-send-email-dsmythies@telus.net> <000c01d58bca$f5709b30$e051d190$@net> <001201d58e68$eaa39630$bfeac290$@net> <20191029160210.GA8343@linaro.org> <000001d58f2a$fc593200$f50b9600$@net> <20191108091834.GA24402@linaro.org> <000001d5971d$57a90c80$06fb2580$@net> In-Reply-To: <000001d5971d$57a90c80$06fb2580$@net> From: Vincent Guittot Date: Sun, 10 Nov 2019 16:13:14 +0100 Message-ID: Subject: Re: [PATCH] Revert "sched/fair: Fix O(nr_cgroups) in the load balancing path" To: Doug Smythies Cc: linux-kernel , "open list:THERMAL" , Peter Zijlstra , Ingo Molnar , Linus Torvalds , Thomas Gleixner , Sargun Dhillon , Tejun Heo , Xie XiuQi , xiezhipeng1@huawei.com, Srinivas Pandruvada , 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 Hi Doug, On Sat, 9 Nov 2019 at 17:47, Doug Smythies wrote: > > Hi Vincent, > > Thank you for your item 2 patch. > > On 2019.11.08 01:19 Vincent Guittot wrote: > ... > >> I have to prepare a patch for this part which is item 2 > > > > I have finally been able to prepared the patch for item 2. Could you check > > that it also fixes your problem ? > ... > > We can still have some spurious call to cpufreq_util_change in > > update_blocked_average() with this patch but at least the value will be > > up to date in both calls, which was not the case before. If this fix > > Doug's problem, I can prepare an additional one to fix the spurious call > > but I wanted to make sure that this fix the problem first. > > Yes, the issue is solved with this patch. Thanks for your tests > I do wonder if I am seeing the effect of the spurious calls. I don't think so because the spurious calls are in fact a 2nd call during the same update_blocked_average and from what i have seen , intel pstate driver filter call when there is less than 3 or 10ms between the 2 calls > > Details: > > Test 1: an 8000 second trace during system idle: > Maximum duration: 4.00015 seconds. Good. > Typically, there would have been about 300 durations > of over 10 seconds in 8000 seconds. > Number of calls to driver: 103168, which is about 8% more than > the previous experimental solution. > (Should be repeated a few times to verify repeatability, but > not going to.) > > Test 2: one 8000 second energy sample, for high accuracy idle power: > 3.703 watts which is about +0.7% idle power increase. > > Test 3: The load-no-load test with only idle state 1 enabled: > There was never an excessive energy sample for the no load samples. > The test ran for about 8 hours. > Maximum: 9.49 watts > Minimum: 9.13 watts > Recall that with the issue, the max would have been about 14 watts > > Kernel: 5.4-rc6 + your items 1 and item 2 patches. > Idle governor = menu, because teo fixes are still pending. > Note: some reference data is from kernel 5.4-rc2, and really > should have been re-done with 5.4-rc6 as the baseline. > > ... Doug > >