Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5230293pxu; Wed, 21 Oct 2020 18:02:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhvWx6kh2OmAUcnrjMoM89my2u3TEEPFv4eof143WSjVT5NUD4qISxcfUc6rl55MSZ8IHj X-Received: by 2002:a17:906:34d1:: with SMTP id h17mr55622ejb.87.1603328561736; Wed, 21 Oct 2020 18:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603328561; cv=none; d=google.com; s=arc-20160816; b=lMjbWZRORQvUwiRVhcQiyTZi3qpQcO0OwqnIRFdYtEaqKi4dKwNnQm1QIoHaw+BNEP lj4SYkGL6ckzBo2zpfZlK3obEzvVwpcspINart529Mp/jw+sLXF8pI2q9WaM7slqDQKW X5KtWSlz3rphZG3uZwrG4pnxxwfTBAcBeCHoGFRF9cZT11T5gEPwUqLF60tTyUIniiBj Q2gbWiIGic9kH/hQ74eFpVLNtNUxv68N9+dEheTj7JKtB/JdKIsqiRAiwwMyqoDuKxvg +R7Qu93VKKq8RdKzDZDb+bFrghmIxXM8NV8NHT8NjNKarzXR30EhQailLD6wwho9qboX kkKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Uq5uoGCfFjFseaKYtetVeX6eT0EP/TsERuBq6LOZk28=; b=enA0DYHyumyC431A4l2SA/NddsYzE1G1JqzG8bVcbWzcag+rmYz759Vw74jH39brhA Sqc6IKImvm+/qgLR3NtwfpAdtQJaKXgiONhY+KkKVbynR+6F/APE62ySu56LMphlvhSu iw0M05214ZvHxMIz1azHYDieviAvnAxO9VAQiCDSSpHmhB1te+IBgXRXAvJcQVsAR3N/ tAvGipE+R8ZkAs/QZcBOM4LGWaHRQ0mu8DZ4qMBxiGnX+ND78EAQOMJ+l0j2FcIxR1Am k977eEeWUoS0r5i3+A9R5CopyITYLnWhxLeQ+f3oZJe7/lBHMZOG2h4DJBmtQCBOcrCk 9MWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Viwr+En7; 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 o6si2426003eju.647.2020.10.21.18.02.19; Wed, 21 Oct 2020 18:02:41 -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=@infradead.org header.s=casper.20170209 header.b=Viwr+En7; 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 S2442672AbgJUMw2 (ORCPT + 99 others); Wed, 21 Oct 2020 08:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440686AbgJUMw2 (ORCPT ); Wed, 21 Oct 2020 08:52:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB12C0613CE; Wed, 21 Oct 2020 05:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Uq5uoGCfFjFseaKYtetVeX6eT0EP/TsERuBq6LOZk28=; b=Viwr+En7j03ibYqEEkgIXLWjwm uoFtHwXEVjyaPwD5mUXxPpH/k55ZSM2o+5sGbVHB477cW8yBE2SigNf+qDScZPo9e5HT4fDjzbODM KQ84HwFNcF3jovtgNhIV/gYosM632W3GCdZGJVDpCEkItzhZ9dXCmMvOK6iU99AQwXB4aCbDsqi+n 0Qj88YRBZV+rjtuuWW2IeGyyLavF1iszNTKlyVwfQEBSf1Bs4c4y2yyUghgoFNKOiOWrxdtaL2FSv eeHD/W66+MnL/9vzKvoBJAw0at/KEAy/cQltrbMHyzIpZG1DA8mh16lATxDCSTJZyUV53r9BGPkWq lew1craw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVDb3-0007Bh-1V; Wed, 21 Oct 2020 12:52:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A5619302753; Wed, 21 Oct 2020 14:52:03 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 717C82BA9E6D3; Wed, 21 Oct 2020 14:52:03 +0200 (CEST) Date: Wed, 21 Oct 2020 14:52:03 +0200 From: Peter Zijlstra To: Julia Lawall Cc: 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 , "Rafael J. Wysocki" , viresh.kumar@linaro.org, srinivas.pandruvada@linux.intel.com Subject: Re: [PATCH] sched/fair: check for idle core Message-ID: <20201021125203.GG2628@hirez.programming.kicks-ass.net> References: <1603211879-1064-1-git-send-email-Julia.Lawall@inria.fr> <20201021112038.GC32041@suse.de> <20201021121950.GF2628@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. What's: $ for i in /sys/devices/system/cpu/cpu0/cpufreq/scaling_*; do echo -n $i ": "; cat $i; done say, for you? And if you do: $ for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do echo schedutil > $i; done Are the kworkers gone?