Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5415945rwb; Mon, 14 Nov 2022 04:29:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6e390SfXxyvzIfe9cvt0JxvEkDB7eGxo7QB32G2Cm0KaTbUCK62494J7ZoEk+YvFSHycJk X-Received: by 2002:a17:906:5154:b0:782:7790:f132 with SMTP id jr20-20020a170906515400b007827790f132mr10032940ejc.649.1668428988639; Mon, 14 Nov 2022 04:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668428988; cv=none; d=google.com; s=arc-20160816; b=zh2Idddnl2b8oeAnmCZoxKR7L7VXePydg53S1kR1Sl+ATtaH4p+PZHtZ2eRG1xb6dq p3p4zh59spkBPWMzVI6G2Q6nSJB+3M8mpcf0wgoYAVyyTNFkvtJZfIWnKAF7djPdjIqw MIfbmo+LYjnpEYDRvEcFktu+Fy4gzH+ffxtKdAg/7qrsxHjHyUyqM9H2R0ev8xcNobig uW3Ut8BiHJAzvIDqwDe0amhoJjR1R/70WEoVsl2QkSndR26EEzmH32C82uTU/NQibv6N MfJY0IFkCD9N9Vu9MZ/VJ3jLvGl1zB8Ded5Jq1IYvXNaj5cGkPAF7Za0FJ6Ql5cCpu7C uBrQ== 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=bAZUSv40jgzCq0R+qiCaOTsbPedpWmrtovBEEvNA0hc=; b=kxetke4AIEpQLBcBGkdqPRXAq+yOSR/6tWqixXYMXC5BzD7Wsfx1G24vdpU90G5bDh HFBrQ+hcoixK39TWNwYoUbbWbpuVpA9ut9URgSMdHokmwOn7A6HbkCpWpaHedw9cIIDV vVUeaukV9tEGWe2Rl0SuILQJchrk1RKgCF1rPb9uCV7Vduo0xyU8pkfEQm94U9fph83z m3p0kD93QCpaLySWfO99unvLO8MUwMREhAK4+QgNaxjQI7GWQcjjVR/7zv9gtL5xa5mj kp4sX4HJeWZM8Br5/a9IWnzJyZ14U5S/q1w3TQyCCieOQUTw3VF+4p4Mdtoszl+Q/Lc6 wLYw== 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 t12-20020a056402524c00b004542e6bd242si9681713edd.621.2022.11.14.04.29.24; Mon, 14 Nov 2022 04:29:48 -0800 (PST) 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 S237014AbiKNMP1 (ORCPT + 88 others); Mon, 14 Nov 2022 07:15:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236923AbiKNMPY (ORCPT ); Mon, 14 Nov 2022 07:15:24 -0500 Received: from outbound-smtp31.blacknight.com (outbound-smtp31.blacknight.com [81.17.249.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5877D1DF08 for ; Mon, 14 Nov 2022 04:15:22 -0800 (PST) Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp31.blacknight.com (Postfix) with ESMTPS id A91AEC0C3E for ; Mon, 14 Nov 2022 12:15:20 +0000 (GMT) Received: (qmail 31761 invoked from network); 14 Nov 2022 12:15:20 -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); 14 Nov 2022 12:15:20 -0000 Date: Mon, 14 Nov 2022 12:15:17 +0000 From: Mel Gorman To: Hao Jia Cc: mingo@redhat.com, peterz@infradead.org, mingo@kernel.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] sched/core: Adjusting the order of scanning CPU Message-ID: <20221114121517.vwg4rr5xb3nvwpjy@techsingularity.net> References: <20221026064300.78869-1-jiahao.os@bytedance.com> <20221026064300.78869-3-jiahao.os@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20221026064300.78869-3-jiahao.os@bytedance.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Wed, Oct 26, 2022 at 02:43:00PM +0800, Hao Jia wrote: > When select_idle_capacity() starts scanning for an idle CPU, it starts > with target CPU that has already been checked in select_idle_sibling(). > So we start checking from the next CPU and try the target CPU at the end. > Similarly for task_numa_assign(), we have just checked numa_migrate_on > of dst_cpu, so start from the next CPU. This also works for > steal_cookie_task(), the first scan must fail and start directly > from the next one. > > Signed-off-by: Hao Jia Test results in general look ok so Acked-by: Mel Gorman -- Mel Gorman SUSE Labs