From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9E4AC433B4 for ; Mon, 17 May 2021 12:48:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C41D761074 for ; Mon, 17 May 2021 12:48:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235191AbhEQMuH (ORCPT ); Mon, 17 May 2021 08:50:07 -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?