Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3236797pxb; Mon, 25 Jan 2021 10:20:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5H9a3o4pzjNOA4hqPm6RrWGC2wkarwDuMQun6nDeXuFWEBpbCfSUkn+GizCLAvVn4u87g X-Received: by 2002:a05:6402:558:: with SMTP id i24mr1546151edx.141.1611598801502; Mon, 25 Jan 2021 10:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611598801; cv=none; d=google.com; s=arc-20160816; b=QFyVIApzYKP/JL62esseYRNO486wCbu5ySwnuSaOHlzFzzCvhH25odKnCL/G6ydPSp zNS/9gkBdf/4qLVo+/OBbrqQD7LM61QMaiecVGIf1vhguZX2rQM7+geAnz7HjCZnnHlw 1SzFjOdskC50lwJBjJsLUXI2dudgk4LylMwCYj7vJ2p8Zn91DPaN91EE266Xttoh357W MZTTc+zqBSREL6Rbu+7Xi0ODTE3t6YSomDw+5TqS+DWB/8gTr2ZLsIRNpXKAzR5uCcgd Zb5ONEg8xI4jy4VepPaWuvIuqWv9UIlk10n7fskHHo5iUR9lttGbr2NEGASfje9gxqiD IlOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=L9tjr2Yk9widln8XMauiHL3btNvAyfhqkqC+h8TzKWA=; b=0wHj4EtN0/S5bHJqt1Gb/i5n3MKLha6YDzwEYabVaE3tD36PYqecsPAeR6J8E6slVM UqMffNySuq7Pm6J6VfuIBaE+yja2aTbgellQQwEDOhEVDQYV05mWNM3MhHOGJ1U8a3DY zJcIpJKXkE7rhjkozLpGr0yBLbP2mAuykmA2kGV/l9udtVqKJDnB4UUddfIDOyHHwfH+ JyiGBQ4i2v5S0DePIPH+Qv7+Lg5xVlYfFEjizObcHyuSpXunJ80t3UqCzjUnMIM6JEfs /S5JW+YhsV8m2Kw5XcL06TtQ8L2bvxsYPX057xp/bKmOYvn+J7qva3mPWcGgpfaXbiGg a91g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si7898648edr.561.2021.01.25.10.19.14; Mon, 25 Jan 2021 10:20:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731302AbhAYSOT (ORCPT + 99 others); Mon, 25 Jan 2021 13:14:19 -0500 Received: from foss.arm.com ([217.140.110.172]:54048 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731296AbhAYRyn (ORCPT ); Mon, 25 Jan 2021 12:54:43 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A29DA1063; Mon, 25 Jan 2021 09:53:57 -0800 (PST) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6845F3F66E; Mon, 25 Jan 2021 09:53:55 -0800 (PST) Subject: Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ To: Vincent Guittot Cc: Joel Fernandes , linux-kernel , Paul McKenney , Frederic Weisbecker , Qais Yousef , Ben Segall , Daniel Bristot de Oliveira , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt References: <20210122154600.1722680-1-joel@joelfernandes.org> <2cd5683f-eea3-e661-7dd0-c617c836896f@arm.com> From: Dietmar Eggemann Message-ID: <8db5ebd3-4e5c-cd7e-e0cb-dc86c3cafb5c@arm.com> Date: Mon, 25 Jan 2021 18:53:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/01/2021 18:30, Vincent Guittot wrote: > On Mon, 25 Jan 2021 at 11:45, Dietmar Eggemann wrote: >> >> On 22/01/2021 20:10, Joel Fernandes wrote: >>> Hi Vincent, >>> >>> Thanks for reply. Please see the replies below: >>> >>> On Fri, Jan 22, 2021 at 05:56:22PM +0100, Vincent Guittot wrote: >>>> On Fri, 22 Jan 2021 at 16:46, Joel Fernandes (Google) >>>> wrote: [...] >> If I understood you correctly, you want to avoid these frequent calls >> to update_blocked_averages() here to further avoid invoking sched_util >> via update_blocked_averages() -> cpufreq_update_util() (since 'decayed' >> is set) very often in your setup. > > So It's not clear if the problem that joel wants to raise, is about: > - the running time of update_blocked_averages > - the running time of the cpufreq_update_util which is called because > utilization has decayed during the update of blocked load > - the wake up latency because of newly_idle lb Pretty much so. IIRC his interest is driven by the fact that he saw much less activity in newly_idle lb and therefore cpufreq_update_util on a system with the same kernel and userspace but with less CPUs (i.e. also smaller frequency domains) and less cgroups (with blocked load) and started wondering why. I assume that since he understands this environment now much better, he should be able to come up with better test numbers to show if there is a performance issue on his 2+6 DynamIQ system and if yes, where exactly in this code path.