Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5544933pxu; Thu, 22 Oct 2020 05:21:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlB87ygMvqLePYcOveRAwuQUiu/PFa4PUba119S1EgwC/4T1c4hoF89P/k2YsNCHdnvguU X-Received: by 2002:a17:906:f0d8:: with SMTP id dk24mr1956815ejb.492.1603369310141; Thu, 22 Oct 2020 05:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603369310; cv=none; d=google.com; s=arc-20160816; b=jTuNjkYuYpns2eCdfMPLBxJxDmOMAnFKLm379+V1f/5xEviG034iTnXdJUXSkvOB09 zMlcuvRBPp4HiN6eTmayJiDFv8FielYGCQ2mEaA+E3IF9wiOgZyP2vvyO/7GMxPXIPhi 3Z+0CWAuHEfxhnXzPKw/Po9a7vI9JfFZXMzfjUUxWzqnOfRi5Lh755Q5wWSZAMeLkotT vr5a/d98WErXbwzql+Kei568x4KnsVj8B9iygdLYD5sSQHILpHnyDVeqihfwhyMpqQuX Z/eWC1B3XJ5V766ujWU0/eFB1AtmRoRMnJuUUXuPvEQYTbNNOfbgxAls0lVMPxihq8dj cqNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=12AvKRKeMDuuRRVJCrVkN43uxfQesK4FV0AMbt034Us=; b=c5zM7fLjDmcbN6GMF+YA+BazSe4jM0ypq+n00/yPjrtvarMdToP8h6iBynHjqCxHz7 zWAqYtpU3Xhy3mChLJVn8RHFx5CX5BhdTo3JB1uwr9BSqQme/rRD2PAjW4VmMZhwHHOi s6VO6gpyFM+2U3tCBQnho/LhT3S80IEonc+61ol0jJbbYLbWRHZGGCoGn9s9AyjFYXas 7JxASc97twvlJDiMIncJcm4AY+9J//rzqSwKMwq6Soj01zrE3uKDrSFZZ15rDyqeQhq2 pD/zo8P+Oq9Wl2IFwnzFbSS5XAC97QfO/YsKPUQw4Uc9oAhr+EQra8ej3TtWl0WmXIgu apyg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm17si775129ejb.356.2020.10.22.05.21.27; Thu, 22 Oct 2020 05:21:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503973AbgJUSSg (ORCPT + 99 others); Wed, 21 Oct 2020 14:18:36 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:54296 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2443059AbgJUSSg (ORCPT ); Wed, 21 Oct 2020 14:18:36 -0400 X-Greylist: delayed 394 seconds by postgrey-1.27 at vger.kernel.org; Wed, 21 Oct 2020 14:18:35 EDT Received: from 89-77-60-66.dynamic.chello.pl (89.77.60.66) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.491) id eea5634c258530cd; Wed, 21 Oct 2020 20:18:33 +0200 From: "Rafael J. Wysocki" To: Peter Zijlstra Cc: Julia Lawall , Mel Gorman , Ingo Molnar , kernel-janitors@vger.kernel.org, Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, Valentin Schneider , Gilles Muller , viresh.kumar@linaro.org, srinivas.pandruvada@linux.intel.com Subject: Re: [PATCH] sched/fair: check for idle core Date: Wed, 21 Oct 2020 20:18:32 +0200 Message-ID: <2595824.rfLgtAVNJm@kreacher> In-Reply-To: <20201021125203.GG2628@hirez.programming.kicks-ass.net> References: <1603211879-1064-1-git-send-email-Julia.Lawall@inria.fr> <20201021125203.GG2628@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, October 21, 2020 2:52:03 PM CEST Peter Zijlstra wrote: > On Wed, Oct 21, 2020 at 02:42:20PM +0200, Julia Lawall wrote: > > > > > > On Wed, 21 Oct 2020, Peter Zijlstra wrote: > > > > > On Wed, Oct 21, 2020 at 01:56:55PM +0200, Julia Lawall wrote: > > > > Prior to 5.8, my machine was using intel_pstate and had few background > > > > tasks. Thus the problem wasn't visible in practice. Starting with 5.8 > > > > the kernel decided that intel_cpufreq would be more appropriate, which > > > > introduced kworkers every 0.004 seconds on all cores. > > > > > > That still doesn't make any sense. Are you running the legacy on-demand > > > thing or something? > > > > > > Rafael, Srinivas, Viresh, how come it defaults to that? > > > > The relevant commits are 33aa46f252c7, and 39a188b88332 that fixes a small > > bug. I have a Intel(R) Xeon(R) CPU E7-8870 v4 @ 2.10GHz that does not > > have the HWP feature, even though the cores seemed to be able to change > > their frequencies at the hardware level. > > That just makes intel_pstate not prefer active mode. With the clear > intent that it should then go use schedutil, but somehow it looks like > you landed on ondemand, which is absolutely atrocious. Probably, the "default governor" setting was inherited from the old config. It didn't matter when the active mode was used by default, because it only recognizes the "powersave" and "performance" settings (and "ondemand" causes it to fall back to "powersave" IIRC). Cheers!