Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp174670pxb; Wed, 20 Jan 2021 04:20:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYug+8mMfNEtoLac/byilemudradNLfMjwQZKQI9vFvmhcd7XEa4fXustpLiYUlSd7uH9O X-Received: by 2002:a17:906:e28a:: with SMTP id gg10mr5911289ejb.11.1611145221602; Wed, 20 Jan 2021 04:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611145221; cv=none; d=google.com; s=arc-20160816; b=Z+CaoqU8/qcLpTWj7zKSSeDPO/kbxxvgt/lj1LvIfYkh6VgvE27F5nV+dO0DFVDPuF v7KPbgZRIeS1DT4/nFVODOZd+fXrOIfxMdK1iktDweoOuvAwji8SCK3wXo0plFIiKQvz Mb3S6hPF1y4Ah/fomf4foq5PFu2xBWpK0eC3KMWw1pVkoPMwZFISToU3YiIbNWY0rJwo g0qwEjjsclog3Pf0NMMi4eJf+IhVwLJHC6kxJtd6gGPptb2CNoLwlxo7svPMUFypStvE bWenHn80u42TaVOA5bnSdUm+OJPhyj3oMS3wb8SCQQ6Qyxc+H9dfBlhDeACxFRHR/QSd VbdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FHnu9xizFwqaTEkMuy17LaSTcCLHHO4mpI+i8GLzebI=; b=poUGeHiMU0C+AsDIYpD1pnuC37N81UKG6HuPXBQaP13pCWLeR/Dl4NK+mkMC0Va/N2 kNrGcQrK5cDzWW53aK8wF6BBMhhIb2QvJA8b7B6BiJ43c7N3c8utnVWAqNekkLUGyzPt hQ8k6gRTbAtUiN4+GoNjSjq3OilUe93uTcUEkhBHdLDVHuH3LVAWITawrnlIRyxL/w/H D3hA7xFqijLa9fvhOtUPQ3zToq4RDThuuNRYMKi9LNLni4BdnbONy7/77xEET6GGbVdV aPLmK9+uWlAigaQpiVyPgXYtlRWq+VnK87sH8NVwzUbioWquS1bj/3xEyg8VwgSv4rfS IdNg== 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 bw26si614509ejb.644.2021.01.20.04.19.57; Wed, 20 Jan 2021 04:20:21 -0800 (PST) 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 S2389623AbhATMSi (ORCPT + 99 others); Wed, 20 Jan 2021 07:18:38 -0500 Received: from foss.arm.com ([217.140.110.172]:58402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732790AbhATL63 (ORCPT ); Wed, 20 Jan 2021 06:58:29 -0500 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 9B153D6E; Wed, 20 Jan 2021 03:57:42 -0800 (PST) Received: from e107158-lin (e107158-lin.cambridge.arm.com [10.1.194.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9B0213F66E; Wed, 20 Jan 2021 03:57:41 -0800 (PST) Date: Wed, 20 Jan 2021 11:57:39 +0000 From: Qais Yousef To: Quentin Perret Cc: "Peter Zijlstra (Intel)" , Dietmar Eggemann , Vincent Guittot , linux-kernel@vger.kernel.org, Valentin Schneider , Morten Rasmussen Subject: Re: [PATCH] sched/eas: Don't update misfit status if the task is pinned Message-ID: <20210120115739.ohe4l2c3ed72suk3@e107158-lin> References: <20210119120755.2425264-1-qais.yousef@arm.com> <20210119164027.drfpmrol3xhf4ckc@e107158-lin> <20210119174244.3p2graxd5gonv4di@e107158-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/19/21 17:50, Quentin Perret wrote: > On Tuesday 19 Jan 2021 at 17:42:44 (+0000), Qais Yousef wrote: > > Hmm IIUC you want to still tag it as misfit so it'll be balanced within the > > little cores in case there's another core with more spare capacity, right? > > Well yes but that's just a special case. But even you have big CPUs in > the affinity mask, you may find that the task fits on none of the CPUs > because they're currently under pressure. But in this case, you may > still want to mark the task as misfit because being under pressure may > be a relatively transient state. Okay. So your thoughts are that if the utilization is above capacity_orig_of() then marking it as misfit is meaningless (taking into account the cpus it is affined to). Which I agree with. But if it is less than capacity_orig_of() but doesn't fit because of pressure ie: util <= capacity_orig_of(cpu) && util > capacity_of(cpu) then we should mark it as misfit as it currently does. I think this makes sense too. There's the margin to consider in the mix here too. And util clamp effects. And the fact this gets called from pick_next_task_fair() which is a hot path :-) Unless someone else beats me to it, I'll send a patch eventually :-) Thanks -- Qais Yousef