Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3439612iog; Mon, 27 Jun 2022 16:27:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGzkCkMTQl+r9GdkeaFRbYRCL8Hv7h9KjQ1HS04yVNayFzSY18BUdum3PFnDmKKO+RURB9 X-Received: by 2002:a05:6402:42d3:b0:435:2c49:313d with SMTP id i19-20020a05640242d300b004352c49313dmr18978358edc.86.1656372427526; Mon, 27 Jun 2022 16:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656372427; cv=none; d=google.com; s=arc-20160816; b=RSYyd6VdsboZAfsYhjuELu3PcEDFK6dmUegCOwGa5z4U6NPB8VWenou7c5t2pP0tSm UHHuZ7QtX6lew0i6bTTQBXkxalYUDYyx9QBk0pN9al4rmhhVMQtnxO1h2+gdV5hcGpdZ ELQ9sGdvCMDxjarQeBFPsqb9Xk+1as21MEJPGv+hXi/OFO6XFylJQVJQZL3aLOQ90OKE 7WU/MHVufh3/lJ6O0BXzMaw/j+u/E7Ll8A7x+79937pRaOJBaklr32eDdqgq7WKhlN3O Lc0YOG9nOlV024xSTmJYqHWv1KkSyG3Dc1GfWlqld9D08z76eBIlsMGbvluo4pBeeSGq 97vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZKrYTXSW7z/1khk7h8njEpnz4YPMgWD7vmDOzXoSSXQ=; b=NCo2ByZtRkGi51y78rT3ei3InBxhysKhk9vfcqJvjGatdFOYNyx1NE7f2QOdLqU5bz mNzjAH3b0z2w30d/99+/StWO7OZR/gmqujhyWthiQeN3iEoFHZZWiOi6paHHWXsByvna M/wofR1OUL+yiWnOgydMuLBjNZIGIQJhyuAhMipmz7dwTXLtep8M/f4lTpH+XfZrhATL e1Og43Ebp4wVUDQshD6hZLaMS2kEFtBcFT0Tqr37xNwNE+kVSZT+ajyfJRX5mD4u8h+P bIOEkENRZEW3m+WdFlrqHmIldcrTJcSXBIuiyTtLytrxl/xms8iKxwOpbcr1/5L2x1lX CcYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gtN2flgn; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v24-20020aa7d818000000b004358059d8f1si12916266edq.43.2022.06.27.16.26.42; Mon, 27 Jun 2022 16:27:07 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=gtN2flgn; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242102AbiF0XZJ (ORCPT + 99 others); Mon, 27 Jun 2022 19:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240138AbiF0XZH (ORCPT ); Mon, 27 Jun 2022 19:25:07 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0D723169 for ; Mon, 27 Jun 2022 16:25:07 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-3176b6ed923so100132537b3.11 for ; Mon, 27 Jun 2022 16:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZKrYTXSW7z/1khk7h8njEpnz4YPMgWD7vmDOzXoSSXQ=; b=gtN2flgn1WeaLbf0Wj16VG1k7Df3OBtuLCZtIHy6GLDK13OK0XcF0/mY0PJLzlagb6 bSBAWPQfKQYasXdVBPBMVkaquJ1MahTNrnbEAfDuq7VCMbaY39MOJ1NpNWXiKZCp3FNw yzjPzTId5ow80G6dd12A+ysaDcswKtDT7+2Dd4scMlHt+QsGWgdhg3UUG2mTXbxdsusE SnQ2ZpHlqe5aiz5SLrYRZ761XQB8Vdvjcc7p4fO+A1EOQkV3fv9VOPqo0lAsEoYHel/6 Qwr6FkdJGqn1a8BuxjCIgguvP9P9xpzQE8i4d6BPpH5s0BpTlOBOoV6h9JHjAmHviT41 npIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZKrYTXSW7z/1khk7h8njEpnz4YPMgWD7vmDOzXoSSXQ=; b=ycmzCP4WpAjLGaWCbcw/MHAm98Xss+RD1iXWnQrPKA2uf4iAbbTBMMJVQeVc2VGbnc b0CIOulVzqO6PoZ7ijK6ga8A3JYEo1BzGpEOxL9ehLwroSP4OCN63DguW3vxiA5MZAue hUIThnntpxRGRYrd2d2PyQfnIbIKo3wyrOG8rqTbgFxiQdyWiTo3nCMJ3asuFqXM5mPm h3C4TzkXxr4vtUYIdgOtqpUbjP8Y4gfZLVKxYKG3mdFbFHiTCZNQVNcGmC10eMcEdtcu p73lZITljMHeDKdvQ1mzVku98ifyJrmE3ox6nTLvisTtqXsJ4EIdpI5e/z+wAYjuhhVk yo6g== X-Gm-Message-State: AJIora/+Hf6g4UfdeIC+yT1kkeepeeMJohJllv8Ieqju5Tea1f8OZL7/ PqMEK05VthVlK8KOmU+kyqvRvquE3R9m7xUANX9POw== X-Received: by 2002:a81:19ca:0:b0:31b:732c:15e9 with SMTP id 193-20020a8119ca000000b0031b732c15e9mr17136460ywz.167.1656372306244; Mon, 27 Jun 2022 16:25:06 -0700 (PDT) MIME-Version: 1.0 References: <20220619120451.95251-1-wuyun.abel@bytedance.com> <20220619120451.95251-4-wuyun.abel@bytedance.com> In-Reply-To: <20220619120451.95251-4-wuyun.abel@bytedance.com> From: Josh Don Date: Mon, 27 Jun 2022 16:24:55 -0700 Message-ID: Subject: Re: [PATCH v4 3/7] sched/fair: avoid double search on same cpu To: Abel Wu Cc: Peter Zijlstra , Mel Gorman , Vincent Guittot , Chen Yu , Tim Chen , K Prateek Nayak , "Gautham R . Shenoy" , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Sun, Jun 19, 2022 at 5:05 AM Abel Wu wrote: > > The prev cpu is checked at the beginning of SIS, and it's unlikely to be > idle before the second check in select_idle_smt(). So we'd better focus > only on its SMT siblings. > > Signed-off-by: Abel Wu Reviewed-by: Josh Don