Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp561608pxb; Fri, 8 Jan 2021 11:52:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1xEXfUxdiI1JxhJZ80t3KzG/l8KYIv74Ybk9UFtw1lrLq9t5d7dpfYrkMkIBVVH5NcnwJ X-Received: by 2002:a05:6402:541:: with SMTP id i1mr6568530edx.289.1610135542148; Fri, 08 Jan 2021 11:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610135542; cv=none; d=google.com; s=arc-20160816; b=XxyAR8yKjnJwkRkr62FCvcpkI7TKPFPBixmVX/o+rt0EEErTNdo8AXNtID7I3ymnD9 JAHngYcaj/vjU5g2+CTqzq5Kp5ONyevlbaoluMCGJyMBryfj4oD/j1MrO1q9jj/UruN3 Bbp2+hBgUPy84LhDYUTRvJhG96F4VvRAeO8sVtjFt72IK55T4T85lICQQMPOwByo5cqH PAwo1m5dI9aCfZ3MrG28MFC+odWzapN7wcLbP04bdGT2Mq78jm0/HE6X1H43PHLRpKq1 3379Fj9YrrQ34mbe0nJTMWdgujl5lbj6+DorxIL1eRNigiRwwQfLrfPcuERat6WpbNRH zdPg== 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=qGT6ITD948+X3O7N9PZkCxcWPjEhw3d7HZbLs1mJhIY=; b=OAJHD/cqQBm+iGDWKEIrcXsE63ANEI1Dd/Qgino8oqSQYFQYY06aq7R3JCCj6d/FTx f3XKdtPlyo/frawFO6+xlDLFDH5cH2G+1SGobh3Mp8WGThcln8zzsxeyR+NhoQDyx0Jd xnIMyVkH2c1tJU19dx7+lEK7E9Uwo5pnjA+u1bri7Bt0snaRw4BcHZzGufI0XZUAGhwo IpRCD3FuTNrbHjB6EPuLScU2xaY8TUwiSwKIfvbkgRDhrpVunKI+wI0pxz1mRZbcnALl ZeiGRK6cbmmxp15NYLRULRWMHBJ7vjDhlIpKCWmxcUaWrPNiTWt7tyYL4TEKHhAH1Swz wdxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=N2XSu3Xc; 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 ot14si3682590ejb.493.2021.01.08.11.51.58; Fri, 08 Jan 2021 11:52:22 -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; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=N2XSu3Xc; 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 S1729014AbhAHTuu (ORCPT + 99 others); Fri, 8 Jan 2021 14:50:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbhAHTuu (ORCPT ); Fri, 8 Jan 2021 14:50:50 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC110C061380 for ; Fri, 8 Jan 2021 11:50:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=qGT6ITD948+X3O7N9PZkCxcWPjEhw3d7HZbLs1mJhIY=; b=N2XSu3XcfBvkwMqILWi8ee02XA lPHgG0nqqDqhy/RUGzSZFLYah/McTK5lgY6bCENRaZzFPvstaoxC6Qj08YV5ss8f2VdAd3O1OaAC5 t5343BTxRxm2W1WDn1TobVJ2P09gjTDxUiw5OTFQu4ryujmPtIP6acpOti4MJW1hctIF4MGw6Ni0e Ap40m7rYxRw1jZ6wrKHJerRn0rtxp2KjVifO2AAqaOCE+8n4Krg/hJEtEJmYALDowiYv5qxG12u0I KXMvQN9DSMOEaFm+vv5h9PkWte1RXWuv6N3CU1Ca1dGpEb9E/J+nfesHwmeAB4Idew08OD6Tx3WQU /E2LFKkQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxxlQ-0007r0-2L; Fri, 08 Jan 2021 19:49:36 +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 93C933003D8; Fri, 8 Jan 2021 20:49:33 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 82B842C48C575; Fri, 8 Jan 2021 20:49:33 +0100 (CET) Date: Fri, 8 Jan 2021 20:49:33 +0100 From: Peter Zijlstra To: Vincent Guittot Cc: Mel Gorman , "Li, Aubrey" , linux-kernel , Ingo Molnar , Juri Lelli , Valentin Schneider , Qais Yousef , Dietmar Eggemann , Steven Rostedt , Ben Segall , Tim Chen , Jiang Biao Subject: Re: [RFC][PATCH 1/5] sched/fair: Fix select_idle_cpu()s cost accounting Message-ID: References: <20201214164822.402812729@infradead.org> <20201214170017.877557652@infradead.org> <20201215075911.GA3040@hirez.programming.kicks-ass.net> <20210108102738.GB3592@techsingularity.net> <20210108144058.GD3592@techsingularity.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 Fri, Jan 08, 2021 at 04:10:51PM +0100, Vincent Guittot wrote: > Another thing that worries me, is that we use the avg_idle of the > local cpu, which is obviously not idle otherwise it would have been > selected, to decide how much time we should spend on looking for > another idle CPU. I'm not sure that's the right metrics to use > especially with a possibly stalled value. The thinking was that if this CPU has little idle time, this CPU should not spend a lot of time searching... That is; if we spend more time looking for places to run, than we have idle time, we're loosing cycles we could've ran (supposedly useful) work. The only counter argument is tail latency.