Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1726573pxj; Wed, 19 May 2021 12:25:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqD1TP6YCnErUFjQiZ9HdzFWZn7ghM7TIp/jfk0EA8g5zdFKb0Ag7HEKbKuSE1YHuiHDnA X-Received: by 2002:a5d:9a8c:: with SMTP id c12mr1221254iom.166.1621452353664; Wed, 19 May 2021 12:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452353; cv=none; d=google.com; s=arc-20160816; b=DLcd4/SrauZ/S9IrbRErwXtsUOlmO4j5U+jPydWKpb0btfOcgjJRTkbe0c3yAalbce 8FN83Szhhq0WVYVoM99cXli/ZwdatN0DBQLckkc1i1ncupHhX28N+TxL2AnV0odkdIor 8MB6r2SvxBJTT2pWyRZ3SEHsEalQP+BXby0dhzvphx4yCYOzGHMtwOH2wbx6dtQVcetl im9TaEwRWlnotevqCtyF7ZxyoxqK7CjUFWAPLwWIDWoBzAzDql4WJYp+zY15b/xvDW0E WiEIpMhN0AcAxcayJXdXVcjfLIF/74H4fggRn+p2W3Xy8FD7KgF33nC+XPZnBz7jZT4j 6DyQ== 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=XVplPvpKDOvVYo43BBjC5AQeRuFThMNnZNzZJEgmFHk=; b=ptoVOKRuo1QlDkWVDHY/+ryf+IDhiPW+gAtMqKnepTvILigv52AoGAp7PJV6hdVBzX 4y6wi2rSjUywBQ020t9EgRSYwuhS9BlbyJ0UAoCFXl6GPvSlg2gpjxBhoR0JI6bsMmvH /Gz6i14MMFi7uDlRlSUHU8Mo3s0ll8CbCYBHgwGB7XYeAg1mWKFh4/JAemXNmtuCQ3R2 n9m6SXAGNHjdWrTTazC152HJz96eBfgXkHQklJo5xQaHYVEseTmzQl2VkSETgKcsF+Sd Vi6LhXRGJpG50RyMTGVzaPHa0zKx5Us4H9PvWFxw0dJsfgPZqfOrt/sle/2V01CmUEVr 9IhA== 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 x8si603648ill.30.2021.05.19.12.25.40; Wed, 19 May 2021 12:25:53 -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 S1344871AbhESJpO (ORCPT + 99 others); Wed, 19 May 2021 05:45:14 -0400 Received: from mga05.intel.com ([192.55.52.43]:19435 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239386AbhESJpN (ORCPT ); Wed, 19 May 2021 05:45:13 -0400 IronPort-SDR: lBtbmSZqlSYsqkPL7ZfiakfsK/pbV+PJUN24unC+dOMTX/psYbf46FnazeAxLfhTCDku/P4MMI 1RDrPrmxOaeg== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="286466212" X-IronPort-AV: E=Sophos;i="5.82,312,1613462400"; d="scan'208";a="286466212" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2021 02:43:53 -0700 IronPort-SDR: ON3io25K4TSdRLdfXgZrCBD/Uy301n85yYSyiIxaNM8HryivBq7xALR0vp7DQ5Igxr7TfdPzbL ijE2ECeiwj1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,312,1613462400"; d="scan'208";a="461174404" Received: from aubrey-app.sh.intel.com (HELO [10.239.53.25]) ([10.239.53.25]) by fmsmga004.fm.intel.com with ESMTP; 19 May 2021 02:43:50 -0700 Subject: Re: [PATCH v2 6/8] sched/idle: Move busy_cpu accounting to idle callback To: Srikar Dronamraju Cc: Ingo Molnar , Peter Zijlstra , LKML , Mel Gorman , Rik van Riel , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Dietmar Eggemann , Gautham R Shenoy , Parth Shah References: <20210506164543.90688-7-srikar@linux.vnet.ibm.com> <47d29f1d-cea6-492a-5125-85db6bce0fa7@linux.intel.com> <20210513073112.GV2633526@linux.vnet.ibm.com> <5823f298-6fae-5a73-3ab8-f708d90a7e52@linux.intel.com> <20210517104058.GW2633526@linux.vnet.ibm.com> <9d493353-7a27-16aa-3e99-c6a07e69de25@linux.intel.com> <20210517125727.GX2633526@linux.vnet.ibm.com> <27ab234c-b36b-bf7f-52f4-92c1804f8245@linux.intel.com> <20210518040024.GY2633526@linux.vnet.ibm.com> <20210518071843.GZ2633526@linux.vnet.ibm.com> From: Aubrey Li Message-ID: <32b98350-35e4-7475-2d19-9101f50ecc63@linux.intel.com> Date: Wed, 19 May 2021 17:43:55 +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: <20210518071843.GZ2633526@linux.vnet.ibm.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 On 5/18/21 3:18 PM, Srikar Dronamraju wrote: >>>> This is v3. It looks like hackbench gets better. And netperf still has >>>> some notable changes under 2 x overcommit cases. >>>> >>> >>> Thanks Aubrey for the results. netperf (2X) case does seem to regress. >>> I was actually expecting the results to get better with overcommit. >>> Can you confirm if this was just v3 or with v3 + set_next_idle_core >>> disabled? >> >> Do you mean set_idle_cores(not set_next_idle_core) actually? Gautham's patch >> changed "this" to "target" in set_idle_cores, and I removed it to apply >> v3-2-8-sched-fair-Maintain-the-identity-of-idle-core.patch for tip/sched/core >> commit-id 915a2bc3c6b7. > > Thats correct, > > In the 3rd patch, I had introduced set_next_idle_core > which is suppose to set idle_cores in the LLC. > What I suspected was is this one is causing issues in your 48 CPU LLC. > > I am expecting set_next_idle_core to be spending much time in your scenario. > I was planning for something like the below on top of my patch. > With this we dont look for an idle-core if we already know that we dont find one. > But in the mean while I had asked if you could have dropped the call to > set_next_idle_core. > + if (atomic_read(&sd->shared->nr_busy_cpus) * 2 >= per_cpu(sd_llc_size, target)) + goto out; Does this has side effect if waker and wakee are coalesced on a portion of cores? Also, is 2 a SMT2 assumption? I did a quick testing on this, it looks like the regression of netperf 2x cases are improved indeed, but hackbench two mid-load cases get worse. process-sockets group-2 1.00 ( 5.32) -18.40 ( 7.32) threads-sockets group-2 1.00 ( 5.44) -20.44 ( 4.60) Thanks, -Aubrey