Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1440181rwb; Thu, 6 Oct 2022 13:04:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55+119mwszUBMnNLIzt8KE4nyDLmRaHgW7buHMIV1Bevs1tS6kgwSMMu5GSkL+zxCl7/mn X-Received: by 2002:a17:902:e547:b0:178:7cf4:90e9 with SMTP id n7-20020a170902e54700b001787cf490e9mr1457433plf.158.1665086683485; Thu, 06 Oct 2022 13:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665086683; cv=none; d=google.com; s=arc-20160816; b=p4APcEf6Vf19hZGcgnlS1TGEeAbh8ORtUId8znkBBrKKSbQ8wVBrLKQFzA2LRtOfVD EOJTKhBlCnDoPr7l/9T3DWWSC3DAUjFxPtB4GzA6zrVnYQEHRFDk3imx0Lt41ZWvjKoh Bv2doTnpQSvdp/cASVmSUQv3mHR6JMSKRWVHaa3GWu8XzHgbtcXDNvrIZulSJVywlhak U7fMuOvqMEQ0hWIp5/dkN9lylMHVf5W9ISIz5DHq5kUOClOe0WvB08AsD1lGwOJbRmx4 va15o3woNbc1dbdOay60vDUVptFYB04lTgIQJATRKSWLnkZhVT0elf19QCPqPHenbKSQ 0RCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EdYscPS9Yyh2FIf+HojndDA+pAMSefIWUbLwa+dYOCU=; b=wTVhd5ib4U+Iz8m0A/RKEvODvHQfW62IGvv4UF3inwR+IvVepHJ/vu5gLCvyxaUzOq 65bgW1oNFLbEUm0MafQ+NlqWAIDRrKe+OSvK/SNpgT97hG/VZL2fmeYZ57+XuDwtiL7O ajFKMpmA5ppmPwGmx0Nl3yEoqCc7M2M3UxR2rQ2CTlzX2hmMsW5v6jWhlyZLF4Bgh2dc G4DMGQOxIGJbb7oC4nA8HL+tz6VnkN8tKpNjaXynRN6x240TjmSYZ3PyRD3fBeH+LmGu j8o9A01qDWNblQ0LTdBE5IAEwXUhXXNBhVogQuTlK884PxYcxB1yEjczwFC8yHP2Zt2z p9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XZ/fMCUl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x63-20020a636342000000b0043aebb63fc7si392075pgb.301.2022.10.06.13.04.01; Thu, 06 Oct 2022 13:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XZ/fMCUl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232644AbiJFTC7 (ORCPT + 99 others); Thu, 6 Oct 2022 15:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231971AbiJFTCb (ORCPT ); Thu, 6 Oct 2022 15:02:31 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDA11144F4 for ; Thu, 6 Oct 2022 12:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665082897; x=1696618897; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eloqXl/5HqSaNDYR4ND9CwZjrnE5ddVstvROr2A2S6o=; b=XZ/fMCUlzGTLW9fb68jHq7fZN8SoGhfS/56wMU1R0lnhD3bzLLgXoXPY cruAGh1K+y/lfItSl8s7ozb7F1FxkF4pzql1miGEcio7kHyy7XvS0x+p7 bN5mJa/VuggfFLg+FGF3FkKoWtgKYSs6XQuNbbnkTY2AWP1Ys/r8qFgd6 Bw90bzOT2yyzwpOiysiIm7A9fFgH+WfzGM1s4KNgPQ6qF/C37oLL6QYuF ZX+NgwMi3JAcGV8TXOMKxeyx1BwWA2ihuVUla0YHvoblTcaY/lU01lL49 emwagnmKizr1mRNzrG5a+5Lwo3xcpuTA/Ak6BJx72sU+ApOKp7gV/QgaD g==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="389833373" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="389833373" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 12:01:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="800005354" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="800005354" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga005.jf.intel.com with ESMTP; 06 Oct 2022 12:01:29 -0700 Date: Thu, 6 Oct 2022 12:07:58 -0700 From: Ricardo Neri To: Peter Zijlstra Cc: Juri Lelli , Vincent Guittot , Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org, "Tim C . Chen" Subject: Re: [RFC PATCH 09/23] sched/fair: Use task-class performance score to pick the busiest group Message-ID: <20221006190758.GA1624@ranerica-svr.sc.intel.com> References: <20220909231205.14009-1-ricardo.neri-calderon@linux.intel.com> <20220909231205.14009-10-ricardo.neri-calderon@linux.intel.com> <20221005233841.GA29251@ranerica-svr.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Thu, Oct 06, 2022 at 10:37:52AM +0200, Peter Zijlstra wrote: > On Wed, Oct 05, 2022 at 04:38:41PM -0700, Ricardo Neri wrote: > > On Tue, Sep 27, 2022 at 01:01:32PM +0200, Peter Zijlstra wrote: > > > On Fri, Sep 09, 2022 at 04:11:51PM -0700, Ricardo Neri wrote: > > > > > @@ -9049,6 +9111,12 @@ static bool update_sd_pick_busiest(struct lb_env *env, > > > > /* Prefer to move from lowest priority CPU's work */ > > > > if (sched_asym_prefer(sg->asym_prefer_cpu, sds->busiest->asym_prefer_cpu)) > > > > return false; > > > > + > > > > + /* @sg and @sds::busiest have the same priority. */ > > > > + if (sched_asym_class_pick(sds->busiest, sg, &sds->busiest_stat, sgs)) > > > > + return false; > > > > + > > > > + /* @sg has lower priority than @sds::busiest. */ > > > > break; > > > > > > > > case group_misfit_task: > > > > > > So why does only this one instance of asym_prefer() require tie > > > breaking? > > > > This is the only place in which two sched groups with running tasks and of > > equal priority are compared. > > > > In all other places sched_asym_prefer() is used to compare the destination > > CPU with others. Since asym_packing is done only when the destination CPU is > > idle, there is no need to break this tie. > > That would make for a fine comment, no? Because as presented one is left > wondering, why if asym_prefer() needs tie breaking, only this one site > needs it. Sure. I will add this comment. > > > > And while looking through this, I must ask about the comment that goes > > > with sched_set_itmt_core_prio() vs the sg->asym_prefer_cpu assignment in > > > init_sched_groups_capacity(), what-up ?! > > > > Are you referring to this comment? > > > > "No need to rebuild sched domain after updating > > the CPU priorities. The sched domains have no > > dependency on CPU priorities" > > > > If yes, then it looks wrong to me. Sched domains are rebuilt after updating > > priorities. I can included in the series a patch removing this comment. Thanks and BR, Ricardo