Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3853565yba; Tue, 7 May 2019 08:06:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8cVYLLRCLXvRw8MA55swCyHIJFrC2UcY2TxThXYLfRYqph1996eHuVJyRAFTl87CZSrCJ X-Received: by 2002:a63:130d:: with SMTP id i13mr9062435pgl.396.1557241567717; Tue, 07 May 2019 08:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557241567; cv=none; d=google.com; s=arc-20160816; b=RMxcS9B2vs8ZXcNUGUxarWsnePQy/TyjRuGKcy5eAE2jZQIYBc0+LqBTSHyL6CBegK BZEFi/FXAlG3PmM6v0oyGq6dgwCGCzlnNbY+vM9bwSaqNdnxbAiLAD9uFTlA+cVWHh5j rmhqZ6vok5UBfhc7ABTbdEvSKtaSJ6rmiTYiwLTkTR66XC3ZnyyAjK6+141q9ZfcSNfO NUG3liwS0SGOjBmj7mOVCL9+aJVhfVZNLOvSurHulxb8pLHZ+iXR+7sVC37fMpKFAhfy fSp7hreJzvR9zBNhTkqFyI2FWJDNCEb/8cH8T5YUlhVyi99OMzLCDhTnD02K3Rk5Gwpk si3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=eYltsTZsjWmtP+ouDAVxiwj3Kw+kQLbYQ55VsYV+i2o=; b=pik4oh79esOEr70Uig41u5ULzdLfj3RRWqYdwEcA0zO5lFPk0mhtp5rjf/0g20+5Nr 1kDM6638xGkGZ7/BejgAQJos7A9+9eWTMOUDxbtNvUR3+3lcsS/OIDZVlgbkc7DJk30p iTdzwWUOszwISlyehGYnQmetQ65USDA3mWuycmfs6Hb5Lca1XxXoLOAObrso+jgiOY96 +4TxOB7pmISVS4i5QbfT/eFRci7EkB4h55nm82SDn27CYyi3V0dO5fEbOYCV4EXcsCGG r+3noRS9T0GK5HdnBJL/yCnqx+4XdYOoUd0BGYV2IPAh1paxu8fm3tyJmAkf5C2RmZ8g Ipuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 35si19537371pld.6.2019.05.07.08.05.51; Tue, 07 May 2019 08:06:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbfEGPEa (ORCPT + 99 others); Tue, 7 May 2019 11:04:30 -0400 Received: from foss.arm.com ([217.140.101.70]:56820 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfEGPEa (ORCPT ); Tue, 7 May 2019 11:04:30 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 96DDA374; Tue, 7 May 2019 08:04:29 -0700 (PDT) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 17B743F5C1; Tue, 7 May 2019 08:04:26 -0700 (PDT) Date: Tue, 7 May 2019 16:04:25 +0100 From: Quentin Perret To: luca abeni Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , Vincent Guittot , "Paul E . McKenney" , Joel Fernandes , Luc Van Oostenryck , Morten Rasmussen , Juri Lelli , Daniel Bristot de Oliveira , Patrick Bellasi , Tommaso Cucinotta Subject: Re: [RFC PATCH 2/6] sched/dl: Capacity-aware migrations Message-ID: <20190507150423.xid3j6wcjdbtavdf@queper01-lin> References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-3-luca.abeni@santannapisa.it> <20190507133528.ia4p3medvtg4z5az@queper01-lin> <20190507161733.1a26419b@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190507161733.1a26419b@nowhere> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 07 May 2019 at 16:17:33 (+0200), luca abeni wrote: > Hi Quentin, > > On Tue, 7 May 2019 14:35:28 +0100 > Quentin Perret wrote: > > > Hi Luca, > > > > On Monday 06 May 2019 at 06:48:32 (+0200), Luca Abeni wrote: > > > +static inline int dl_task_fit(const struct sched_dl_entity *dl_se, > > > + int cpu, u64 *c) > > > +{ > > > + u64 cap = (arch_scale_cpu_capacity(NULL, cpu) * > > > arch_scale_freq_capacity(cpu)) >> SCHED_CAPACITY_SHIFT; > > > > I'm a little bit confused by this use of arch_scale_freq_capacity() > > here. IIUC this means you would say a big DL task doesn't fit on a big > > CPU just because it happens to be running at a low frequency when this > > function is called. Is this what we want ? > > The idea of this approach was to avoid frequency switches when > possible; so, I wanted to check if the task fits on a CPU core at its > current operating frequency. > > > > If the frequency is low, we can (probably) raise it to accommodate > > this DL task so perhaps we should say it fits ? > > In a later patch, if the task does not fit on any core (at its current > frequency), the task is moved to the core having the maximum capacity > (without considering the operating frequency --- at least, this was my > intention when I wrote the patches :) Ah, I see, patches 05-06. I'll go have a look then ! Thanks, Quentin