Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp746578pxy; Thu, 22 Apr 2021 12:23:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiepLLHKfjtN+AmpnmeSeSjueTpHNpen8kdGFXwYzofVjACFxfXmj3OJ+uJJMX3+Du1yqa X-Received: by 2002:a17:906:1a0d:: with SMTP id i13mr211705ejf.197.1619119416930; Thu, 22 Apr 2021 12:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619119416; cv=none; d=google.com; s=arc-20160816; b=eN1wcf0gFXsVaNRoDqpR+O0ofImwMNft1MTm6Tm7OePh+IbyEA4il1tNd/6qq+sHGN wUUo1uZpNmQXiyEJqXHwOLoCkpvNhVFj+gSN1TWcvqS3t1nhyfiRtZYXWkjvBuz8igd0 /hurAjVd6d2v/FoZw6DvgwwfLCM71sV1mXrMI7dG0CDVCGlcPxMhKUcvWo4ZB6Kh9oPh fvBCpY7TgjRlsK8MChFZ1EGByXcmdYYC8LdxUWFrP4myKQXvdp1CPB9Xg5oiq7RDh0W9 OcSt+wGUqphZzhMAmUq/Mskd4NAkhkjCPuF8RvfBw0WMEDbFueaE7VHYa7KKxABzlkg6 lYkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=yM0HYMyVttG8Cm8pocDwvCiPpafHetFMmrCWBBgiAeY=; b=Yd5vx5lp+BygLL/ftFaRqKIlZeVijNjlZIOAwKNptBaTO2UsXCVlUdD9oA2v+fg18g vAWslbyH/IHRckMOS4wtIoPwIaCF2pM1e6+V744111dAtxSUaY8MwEn9S/4XNJ4W1MmA AbePoTKS9VXU77gB+RckuqyNuq58zgdMy76SNcgwkxwTclFLAVxOsp9Otuyxy1DgoAKt 1XhczmSRhelis6AQkG0dKl59n/3fED63fRZv1lAj7VTE1HARfgdqadiDzNAIbiTSqSlA NRQnvL9Hp2EhDEU8VaJwgASPxIUSRJCeZBzQ7GTECqJ5M5OsHBdwP4S41CCx2V0o4ryB +4wg== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si2998650ejd.62.2021.04.22.12.23.13; Thu, 22 Apr 2021 12:23:36 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238930AbhDVTUW (ORCPT + 99 others); Thu, 22 Apr 2021 15:20:22 -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.