Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4004791pxj; Tue, 11 May 2021 17:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoVOOzxNpD9bgWDFyw6kCz2Qb5D14VxeZ93A5YKq/O6n5JQjBehxMNtxosmlEDf2AaUP3R X-Received: by 2002:a17:906:1617:: with SMTP id m23mr35929637ejd.352.1620779626515; Tue, 11 May 2021 17:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620779626; cv=none; d=google.com; s=arc-20160816; b=NP14u2KnfO9zgZYzd3C5NEppv671xxslhDHfBK7t5nuZ05cWydbCDL70TzIJ8TAQe6 OcenFiVkw2kkGkdm77PylHtzSAFTBV/tqnYHZiftutuiGiBpy4Of8fbBc59u7che+f9+ E+R9GCNrwLgF2361AwpMou4sxQuf106Q4W0V3CMa4rbpdc/fkOf0NSQdgvJem4mlIeLJ HztDYwEDhMFV3Oq5uEl1i/eMLPAra5inSN1r39NWQ+kJ6mTGbvh8yJV7iPNc+J4zsHZ5 ai5z8sq2AUXvCC9PVn2IPjeJLy65X9MyPC3QLs8Tkg7V7JlEX7/c1hoUGNMX2Hk0Rb6Y XCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=UJPb8DJ4snyiTW1Dw37J3vHoT1WfysvveWtYJj+JHCE=; b=rMhKYJT4tZ7uSfA/OPVtIHhRxGgv//kjeeAzxVZBYQjefNbPA3DfONwopUPwow6He8 YmZOXNJDe1IZQVAuwuQUlJg/vKxi8h409wmlNurRHwzpetIATENLwQDWHu8P0pJqB2v2 8SLhQCftJ9wzxnM8WLQ/wzRviZe4OrCzQpwjAT5RyWE4LwSYb+T22fg7TCcgzPPOtpLx R0rZjynxS5AmQVQOfXvBeOK+ycvdR4MKzYZY+0CwUaY1NZgMEKaxHIIb/Xd4YDAUMBMX 3IzXoIIjwKJoks9Z9v2BgCz9AKjFZnk4/3gqObJVw9BlLHqcQrj7vnZhQpGUztmreUTt VNDg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ha1si17950347ejb.743.2021.05.11.17.33.22; Tue, 11 May 2021 17:33:46 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbhELAdd (ORCPT + 99 others); Tue, 11 May 2021 20:33:33 -0400 Received: from mga17.intel.com ([192.55.52.151]:16564 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhELAdc (ORCPT ); Tue, 11 May 2021 20:33:32 -0400 IronPort-SDR: syaI6emOLhBOzTHjZIV6uVAkOkU1aFBj0PnaCCBp8JhfalzIVzd0kUEJrQ5zqucYFtHeJxFI8a MbzBRWuNcTpQ== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="179850376" X-IronPort-AV: E=Sophos;i="5.82,292,1613462400"; d="scan'208";a="179850376" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 17:32:25 -0700 IronPort-SDR: +0utWd8fZ+y74rhosBdX/2HB1akE7iVziWV9zI4KBaZ+cWJ9YIZhpLbK4RkRLoqMupYIC1hSSe M5oMZsYvYgzg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,292,1613462400"; d="scan'208";a="455323210" Received: from aubrey-app.sh.intel.com (HELO [10.239.53.25]) ([10.239.53.25]) by fmsmga004.fm.intel.com with ESMTP; 11 May 2021 17:32:22 -0700 Subject: Re: [PATCH v2 6/8] sched/idle: Move busy_cpu accounting to idle callback To: Valentin Schneider , Srikar Dronamraju , Ingo Molnar , Peter Zijlstra Cc: LKML , Mel Gorman , Rik van Riel , Thomas Gleixner , Vincent Guittot , Dietmar Eggemann , Gautham R Shenoy , Parth Shah , Aubrey Li References: <20210506164543.90688-1-srikar@linux.vnet.ibm.com> <20210506164543.90688-7-srikar@linux.vnet.ibm.com> <87tun91oaa.mognet@arm.com> From: Aubrey Li Message-ID: Date: Wed, 12 May 2021 08:32:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87tun91oaa.mognet@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Valentin, On 5/11/21 7:51 PM, Valentin Schneider wrote: > On 06/05/21 22:15, Srikar Dronamraju wrote: >> diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c >> index 8db40c8a6ad0..00e4669bb241 100644 >> --- a/kernel/sched/topology.c >> +++ b/kernel/sched/topology.c >> @@ -647,6 +647,7 @@ DEFINE_PER_CPU(int, sd_llc_id); >> #ifdef CONFIG_SCHED_SMT >> DEFINE_PER_CPU(int, smt_id); >> #endif >> +DEFINE_PER_CPU(int, is_idle); > > This + patch 8 immediately reminds me of Aubrey's patch: > > http://lore.kernel.org/r/1615872606-56087-1-git-send-email-aubrey.li@intel.com > > last I looked it seemed OK, even the test bot seems happy. Aubrey, did you > have any more work to do on that one (other than rebasing)? > Thanks to mention this patch, in terms of the patch itself, I don't have any more work, other than rebasing it to Rik's bring-back-select_idle_smt() patch. But I have some other ideas based on this patch need to verify, for example, if we have an idle_cpu mask when we scan the idle CPU, we should be able to remove SIS_PROP feature at all. This removes scan cost computation and should reduce the task wakeup latency. But I need a while to understand some benchmark regressions. Thanks, -Aubrey