Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3116611rwe; Mon, 29 Aug 2022 06:11:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR4PnJsG3tmDoXHfHiTfrnn6EhGMVMfF0jKzoqSLmPENULRX+b/OHtt2zwGQTBPro/a0UcW8 X-Received: by 2002:a05:6a00:bd8:b0:537:ea87:45f3 with SMTP id x24-20020a056a000bd800b00537ea8745f3mr11729366pfu.55.1661778681929; Mon, 29 Aug 2022 06:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661778681; cv=none; d=google.com; s=arc-20160816; b=movgT8ZoTy3nNB25QJlLeGcw1BX1Vy/hzNWISJQAHrxhfkNdbYDyQJOyFnN2IEk+Vo DWaCIs/X2g02CsAGey9jdoaFOql33bUjl5sENazTP1dmkRr485pFE4B9ZKgJbo7GIhUX Jdc4WFMp5rAU4u0Du8v7SxNPXaMedjLQM7vs0qN2ldXnVATaFPk9CNMGWcs+1dWl4Vm5 CQ3N/OP4h7C4IRyF7R+e+zYD1G+6jU6WymYMD3eohGEQ1j+PJyJPrvv+A083SucFDo3A 1IqjnuUFw6LLFihxIV2SQdX6hJ5Yq6MejGLNJ/JlgXynVFqOWAvqVimzJXJOO/0sLqbM Xcmw== 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; bh=6g1PoWEtuD27I4OZy+M36PYvkl1ocMZ/tdFFhrZxywc=; b=SMcd1mUHXKQZSGrXZHcaVlV7vhqeeKKiBFF3EX1o4gr7YIt7yhBL2ub86v4LNuvuAh GJ0jXSetsmyvlm8AoVrWNIz6ru4YKo8/99e85NeZb1pg+EoR5gNXx9DPZ+c1Af/TsCxK K4EJU66SIXQKSZ4h8ecDUifK5ekjTxK++cUCL2Oobogu1NNKNEhYAmkD1vjfGJhSrUjA oa/dIbmkjQCvofPULfWhHQ4jpaxw7fioSVKNEEL0w+Q/6TU87fSdm+fPVbV9kXtfnUPv rOTSH4XQV4iUj2tO7GKczfdJtwKbMMNtjNwIuUhsNMltQrMfiv6F9ypdGF0i7frPGM1y JS1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a630005000000b0041cea5fee28si9227506pga.748.2022.08.29.06.11.09; Mon, 29 Aug 2022 06:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbiH2MuV (ORCPT + 99 others); Mon, 29 Aug 2022 08:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230140AbiH2MuD (ORCPT ); Mon, 29 Aug 2022 08:50:03 -0400 Received: from outbound-smtp18.blacknight.com (outbound-smtp18.blacknight.com [46.22.139.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35622861CB for ; Mon, 29 Aug 2022 05:36:17 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp18.blacknight.com (Postfix) with ESMTPS id 4E44C1C3A74 for ; Mon, 29 Aug 2022 13:36:16 +0100 (IST) Received: (qmail 8212 invoked from network); 29 Aug 2022 12:36:16 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 29 Aug 2022 12:36:16 -0000 Date: Mon, 29 Aug 2022 13:36:10 +0100 From: Mel Gorman To: Abel Wu Cc: Peter Zijlstra , Mel Gorman , Vincent Guittot , Josh Don , Chen Yu , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] sched/fair: default to false in test_idle_cores Message-ID: <20220829123610.iooaxujglh2l43x6@techsingularity.net> References: <20220712082036.5130-1-wuyun.abel@bytedance.com> <20220712082036.5130-3-wuyun.abel@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20220712082036.5130-3-wuyun.abel@bytedance.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2022 at 04:20:33PM +0800, Abel Wu wrote: > It's uncertain whether idle cores exist or not if shared sched- > domains are not ready, so returning "no idle cores" usually > makes sense. > > While __update_idle_core() is an exception, it checks status > of this core and set to shared sched-domain if necessary. So > the whole logic depends on the existence of sds, and can bail > out early if !sds. > > It's somehow a little tricky, and as Josh suggested that it > should be transient while the domain isn't ready. So remove > the self-defined default value to make things more clearer, > while introduce little overhead in idle path. > > Signed-off-by: Abel Wu > Reviewed-by: Josh Don Acked-by: Mel Gorman -- Mel Gorman SUSE Labs