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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 33300C433ED for ; Thu, 22 Apr 2021 19:19:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED3F360FD7 for ; Thu, 22 Apr 2021 19:19:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238919AbhDVTUX (ORCPT ); Thu, 22 Apr 2021 15:20:23 -0400 Received: from foss.arm.com ([217.140.110.172]:55178 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238468AbhDVTUT (ORCPT ); Thu, 22 Apr 2021 15:20:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ADD031474; Thu, 22 Apr 2021 12:19:44 -0700 (PDT) Received: from e113632-lin (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3E6F73F694; Thu, 22 Apr 2021 12:19:43 -0700 (PDT) From: Valentin Schneider To: Dietmar Eggemann , Vincent Guittot Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Morten Rasmussen , Qais Yousef , Quentin Perret , Pavan Kondeti , Rik van Riel , Lingutla Chandrasekhar Subject: Re: [PATCH 2/2] sched/fair: Relax task_hot() for misfit tasks In-Reply-To: References: <20210415175846.494385-1-valentin.schneider@arm.com> <20210415175846.494385-3-valentin.schneider@arm.com> <20210416135113.GA16445@vingu-book> <87blaakxji.mognet@arm.com> <878s5bvrij.mognet@arm.com> Date: Thu, 22 Apr 2021 20:19:40 +0100 Message-ID: <87pmymt9df.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/04/21 19:29, Dietmar Eggemann wrote: > Just to make sure I can follow the conversation ... > > In case you: > > (1) return 1 instead of -1 > > (2) keep the `env->idle != CPU_NOT_IDLE` check > > (3) and remove the `dst_grp_type == group_has_spare` check > > you are pretty much back to what you had in [PATCH v3 7/7] directly in > task_hot() except: > > (4) the 'if (p fits on src_cpu && p !fits dst_cpu) => tsk_cache_hot) check? Pretty much, I'll now filter the return value of task_hot() rather than affect it directly.