Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2894479pxj; Mon, 17 May 2021 12:23:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGNPbl8qhhlwocY8DPsUmLgRT9o6kirjlF7CzWTap6YushJ/hcQH2DPGYHd9dHNNXPlAAL X-Received: by 2002:a92:7510:: with SMTP id q16mr985341ilc.291.1621279435717; Mon, 17 May 2021 12:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621279435; cv=none; d=google.com; s=arc-20160816; b=ke8mb79Ym37hVbpLBkIYTc8K2bR47UE0AQPqVUP56DZR8ocYyumy2K9P+DR/B4hveA mwGpdPo+7BNM5v1r4pQcpGYjVJoy9nR0jSSkDuhR+Vb570Ftj7QQjQd3OE/uaYjFCE8B OCqZk5FcJ/TizusyDBmnw9yiKzzjqRVQ/pw21WofS0WVw84+keDBEu0LLugs55Gj0ay/ s8bjnaXkfSypUIW8wQeKjMoIZOPgokKVErG2xgPf3wXJ8bsy0G3L3KTUB+3Jk86aJ3AP 0OKY2jiFgt4c5lGQgzcPGYSuGQR6YnPdyqlMpp6DBi2CzjyMKcahR2EX/y5MUzqVj8Yx e4tw== 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=Kp/rTajPfllqr86T53707zq+30HDmbSvqkGlpYUe5BI=; b=yIbTEyv214gYKGjly9LbKjI9k4SYAPquZAq5ihVefSkGAPTKA9IwKzNV4nxERUmiyF F9fnIqnxB87szWCdwoauxvbJGBUoVF4r20bPbmYlwuC0E5jaCDGFW1Y5Pyf+Gxg8uVLj P5K9VwXeGTuCKOp0p7ogCxT63AlvzcYrXWxTCXOTdx29Eu+rmL2NOxzfyeb7meqkcM+/ 8F7NeZGxQY3MnMWCOyQLM3x9ZnPlWB23HNhvaKWDw5t/5eiRqqvr6Vz6BJ3kfrObV1RY Zk72CNCUlgebshe0qEg8Cg3UK9mp6SlJBiA5IEiAHq4cmLFb4L5abLdg5/q4/C3NhBq2 kFGg== 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 16si18157029ilt.35.2021.05.17.12.23.42; Mon, 17 May 2021 12:23:55 -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 S233271AbhEQMuG (ORCPT + 99 others); Mon, 17 May 2021 08:50:06 -0400 Received: from mga02.intel.com ([134.134.136.20]:51349 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbhEQMuC (ORCPT ); Mon, 17 May 2021 08:50:02 -0400 IronPort-SDR: YF70JEQkgZ48XpCbe1bmbPVD8iR37xo/+moDgL172TwEnq3NgrdpzrQnn+YLYh+He9w3DQRpQJ qrWFNPrXL7PA== X-IronPort-AV: E=McAfee;i="6200,9189,9986"; a="187578091" X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="187578091" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 05:48:45 -0700 IronPort-SDR: 0iqaCaLL/nRgIUzfPqPFVrA5Adm9a+cbAfgyhgATnOgNzsNALeh1jOKGNkkI1awIX8jQea7V3n k8PJDYI1xjCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="460291356" Received: from aubrey-app.sh.intel.com (HELO [10.239.53.25]) ([10.239.53.25]) by fmsmga004.fm.intel.com with ESMTP; 17 May 2021 05:48:42 -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-1-srikar@linux.vnet.ibm.com> <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> From: Aubrey Li Message-ID: <9d493353-7a27-16aa-3e99-c6a07e69de25@linux.intel.com> Date: Mon, 17 May 2021 20:48:46 +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: <20210517104058.GW2633526@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/17/21 6:40 PM, Srikar Dronamraju wrote: > * Aubrey Li [2021-05-14 12:11:50]: > >> On 5/13/21 3:31 PM, Srikar Dronamraju wrote: >>> * Aubrey Li [2021-05-12 16:08:24]: >>>> On 5/7/21 12:45 AM, Srikar Dronamraju wrote: > > > >>>> Also, for those frequent context-switching tasks with very short idle, >>>> it's expensive for scheduler to mark idle/busy every time, that's why >>>> my patch only marks idle every time and marks busy ratelimited in >>>> scheduler tick. >>>> >>> >>> I have tried few tasks with very short idle times and updating nr_busy >>> everytime, doesnt seem to be impacting. Infact, it seems to help in picking >>> the idler-llc more often. >>> >> >> How many CPUs in your LLC? > > I have tried with X86, 48 CPUs, 2 nodes, each having 24 CPUs in LLC > + > POWER10, Multiple CPUs with 4 CPUs in LLC > + > POWER9, Multiple CPUs with 8 CPUs in LLC > >> >> This is a system with 192 CPUs, 4 nodes and each node has 48 CPUs in LLC >> domain. >> > > Okay, > >> It looks like for netperf both TCP and UDP cases have the notable change >> under 2 x overcommit, it may be not interesting though. >> >> > > I believe the extra load on this 24 core LLC could be because we may end up > trying to set the idle-core, even when there is no idle core available. > > If possible, can you please give a try with v3 with the call to > set_next_idle_core commented out? > > v3 seems not be applicable on tip/sched/core 915a2bc3c6b7?