Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp107374rdb; Wed, 29 Nov 2023 22:43:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3pmblDLGJ3wiKh6Mwcl/QGdIpSqOerg3yQcVP9jXf565Ms5yNKUAazjPVrCxoSBT/yqZ4 X-Received: by 2002:a05:6a20:8f1d:b0:18c:3b26:13c with SMTP id b29-20020a056a208f1d00b0018c3b26013cmr22097969pzk.12.1701326599881; Wed, 29 Nov 2023 22:43:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701326599; cv=none; d=google.com; s=arc-20160816; b=Z61+T5z0pL0ncgLFnT6XcQ4vo85mElcHWSRyw14Ih62QXs42GmzcEVApD7neGmMtGo sYc9hto84AcfTs010xRfCLXiEmNGw2NuyAQNUj9R0/2A5zUvY2co4q8y0/p59WMNFx+1 bDf+XMUTx7RkUkqd4DTEG6kuwqKxwoIax7t2ylwx9KAiTFEtFYDpuVZ14cqoCO44c+qS zBmby4X+KwfC2DWYYNFfJU+cwvV87sJYDLq2O4I9beZ2iUYzplJ6pErSIqKUZvFRQ3YE NfMzEy86Oa1nsS70Oua2JE8p0cjhq8b5DGFllBzZMM30fbeISItgMKVkffbF2dsEQoOc sDcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+Aia1H4GaSF980C1Y4zjWyXbrOYL7Cpo2RsR530hsng=; fh=Bjnm/ax6ByvucSmPaF4rH/9JcakKy/CSWGiz0lapEaA=; b=oe2elH47XkxMqUpzzVPpVMGW2FC15kRBope0DhpRfav55REA0exph3byEcSmc7jDD2 ZNlMqiR4qf0WtvXeTmQ0ZUjNyxWMw+7urgicYqDAyPu6WCYAMSrIV/HHuU2lCVOzTEvA XZfcc+W7/YRdSE/oZArQQpw3RXYplUlQ7WQquRtSXxaoS9XoM98lMzbuBi6KMG/+he/N stBo42o4x90nucteaYXkFdWpytI9G/2N7V2e1x0LHDrEyk1EfWHCyP6RBVnJQYFwB/Jy d0SBkYBCW/cxSNO3jaZgmJgd6AXzxDWXLX2XQwOw/XMCCBJsKibjvR67GPGZIqbtrHPH RsTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="dhMf/ssi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id jb20-20020a170903259400b001cfa126e7d7si524365plb.451.2023.11.29.22.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 22:43:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="dhMf/ssi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B1749802A708; Wed, 29 Nov 2023 22:43:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344629AbjK3GnI (ORCPT + 99 others); Thu, 30 Nov 2023 01:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjK3GnG (ORCPT ); Thu, 30 Nov 2023 01:43:06 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC4B1A3 for ; Wed, 29 Nov 2023 22:43:12 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-286406ae852so61506a91.0 for ; Wed, 29 Nov 2023 22:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701326592; x=1701931392; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+Aia1H4GaSF980C1Y4zjWyXbrOYL7Cpo2RsR530hsng=; b=dhMf/ssidhuyKw6IegXIQABd6dF8DMy8s1VTFPOdDKXxNbd8iq3XVfI0aaqJ1jLxww gau/oiLBZUtJVCgaXd1Gp7UKklQhPD7v5Z7WxlLBEu9KwOKzBVF7BSZoK2exHR4TPYTj AgFBofU/683fLa/RK34NrSYBqCQKVuc/YYztrZjiCLBibxDs87MTtPaQKc8xysGvysvd VP/cxdNiIt++QSkL8/W6urWMsk7n2+E9OY22G5DO3maemso0vhBdcbr1BSyyGumlInkO OBRbXoSnrWKGz0+bVGAGCc5/DzhMrjmZn9e/ifqKYZXT9ZwLR1F/9cz2K8uQgt06f8zp 1JJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701326592; x=1701931392; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Aia1H4GaSF980C1Y4zjWyXbrOYL7Cpo2RsR530hsng=; b=BBGUNyH1DGM26efiL1goHhPPi3DTM+E4SMyWhaMgCmLRSG16hiXD1ClsEN1jeZn4z1 pc55J2ealfjG2/DimDiR8beslAlKaLmTv4ksujr1gJFjhF/5J9Rg78nnQjHcfmRnuOhy 5G2flLytnyJZqx8KYEZafYNoJbrlewFqxhsTlSb4iV9pp0+EL5xbVMOd4iVomswz2d3z NhrroTAHu4z07/maRlKeuJW+OSq/oQJdvbRPiBbcvNV48afaOh6hs2rFMHhBmmt1q4cP 0LBlRA+S/1VjoMh1mKsyv57Hpp7WrHzZdCovqxn3ShaQ38Fy7zuLu4M17Yw8E0M3Z6mj 32+g== X-Gm-Message-State: AOJu0YznWWCNuZ1aRX2GLWIAoMwCA8Ix2sBP1s3nFzxvaQe5yeW7HRAA c5CrlVG6o5AhrY0iFvy5+0XWQzfglDIKYKbeNns= X-Received: by 2002:a17:90b:17c5:b0:285:9f17:2613 with SMTP id me5-20020a17090b17c500b002859f172613mr20287349pjb.27.1701326592119; Wed, 29 Nov 2023 22:43:12 -0800 (PST) MIME-Version: 1.0 References: <35e612eb2851693a52f7ed1ff9be5bc24011136f.1700548379.git.yu.c.chen@intel.com> <3dd5ae53-a914-bfd1-285e-e206ba0c58bd@linux.ibm.com> In-Reply-To: <3dd5ae53-a914-bfd1-285e-e206ba0c58bd@linux.ibm.com> From: Chen Yu Date: Thu, 30 Nov 2023 14:43:00 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] sched/fair: do not scribble cache-hot CPU in select_idle_cpu() To: Madadi Vineeth Reddy Cc: Chen Yu , Tim Chen , Aaron Lu , Dietmar Eggemann , Steven Rostedt , Mel Gorman , K Prateek Nayak , "Gautham R . Shenoy" , linux-kernel@vger.kernel.org, Peter Zijlstra , Mathieu Desnoyers , Ingo Molnar , Vincent Guittot , Juri Lelli Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 22:43:18 -0800 (PST) Hi Madadi, On Thu, Nov 30, 2023 at 1:26=E2=80=AFAM Madadi Vineeth Reddy wrote: > > Hi Chen Yu, > [snip...] > > As per my understanding, if the task which tagged a particular CPU as cac= he hot has woken up before > the cache_hot_timeout, we still don't allow that task to run on that part= icular CPU. Is this correct? > Not exactly. When we reached select_idle_cpu(), we have already checked if the wakee's previous CPU is idle or not in select_idle_sibling(), if it is idle, we don't check the cache-hot tag and return the wakee's previous CPU directly in select_idle_sibling(). thanks, Chenyu > If correct, then why don't we let the task to select the CPU if it's the = one that tagged it? > > Thanks and Regards > Madadi Vineeth Reddy