Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5054109yba; Wed, 8 May 2019 07:13:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE1znWuN/MBnqwRVhCteqcXbzeKcNDysMYiyQOs4GzQomYkIhVoQzgn4FcqyaxcTE0lHnL X-Received: by 2002:a63:d347:: with SMTP id u7mr47376765pgi.254.1557324815256; Wed, 08 May 2019 07:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557324815; cv=none; d=google.com; s=arc-20160816; b=MbHnb3mcY/QdBbpNmi/KjNfhCawyaFoenRUH1hgHLMBdpkDaxuWfNB2rip02JWRwEO txP8ITLLgPtwpepCH4vTT3TThde06DjQwLhqOhL/X/I2rkL0O3FSYL8PFk9yCyUnsR0A 2q2obtqehP196icpv5X9QI7sS8WrTLVIvdWldVMwWN6G4LUA4aqSXU2ak6ft4u7wwPwL K+5vgFdWLhXFh6jRNhY6dbRyO+tpK97SfwSrJdcvlpl+//PajdFsvHmRVmtB9A0EHSGt pyJ9ZbiK3oRhfMgdS0RbwMpMen7Uwk9GJzrHESj+CwaDPPVdOx3+Ey9ik8w51fsVBaqN 1/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=3Al55vMUQSAWrGLOgZasDzp2SV0pJTUXM7i1/BnOjEQ=; b=WiIWqILLoAUtxp4zf+FlJ0GIUV6LxL+hB9l5Xo2VJF3djFEIfTMKc4S0faxZoWccBn vQCG/MNfpfHLlZJ72uhVZgu3GOyASxuz2Loc54IQijdZDOFAy4vwxicFQJjKHlJJ5sW9 zqPcY6nYdoPP8OvtzdocsqNeDzZxJ1yMjNBwVS2luGvTYJEaQ0swYtQy0SEACwd78eXK ZHTaT+P6rZCyfqo/dxQFCyCZisNNQ3nxoZjQd6NqvopwXOlTs+VVq+8FvLLMnyDyJyFM Ph+BxHXTDJuPuU7ZWP3lilMx9Uj48ACQ118A3sZGeGOwtfd6wtRFbyUoIQQ8hzpLKhpQ taDQ== 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 e90si24097967plb.375.2019.05.08.07.13.18; Wed, 08 May 2019 07:13:35 -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 S1726803AbfEHOMS (ORCPT + 99 others); Wed, 8 May 2019 10:12:18 -0400 Received: from mail.santannapisa.it ([193.205.80.98]:36413 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbfEHOMS (ORCPT ); Wed, 8 May 2019 10:12:18 -0400 Received: from [83.43.182.198] (account l.abeni@santannapisa.it HELO nowhere) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 138932507; Wed, 08 May 2019 16:12:15 +0200 Date: Wed, 8 May 2019 16:12:08 +0200 From: luca abeni To: Juri Lelli Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , Vincent Guittot , "Paul E . McKenney" , Joel Fernandes , Quentin Perret , Luc Van Oostenryck , Morten Rasmussen , Daniel Bristot de Oliveira , Patrick Bellasi , Tommaso Cucinotta Subject: Re: [RFC PATCH 4/6] sched/dl: Improve capacity-aware wakeup Message-ID: <20190508161208.108caf26@nowhere> In-Reply-To: <20190508131018.GJ6551@localhost.localdomain> References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-5-luca.abeni@santannapisa.it> <20190508090855.GG6551@localhost.localdomain> <20190508112437.74661fa8@nowhere> <20190508120526.GI6551@localhost.localdomain> <20190508144716.5cc8445d@nowhere> <20190508131018.GJ6551@localhost.localdomain> Organization: Scuola Superiore S.Anna X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Juri, On Wed, 8 May 2019 15:10:18 +0200 Juri Lelli wrote: > On 08/05/19 14:47, luca abeni wrote: > > [...] > > > Notice that all this logic is used only to select one of the idle > > cores (instead of picking the first idle core, we select the less > > powerful core on which the task "fits"). > > > > So, running_bw does not provide any useful information, in this > > case; maybe this_bw can be more useful. > > Ah, indeed. > > However, what happens when cores are all busy? Can load balancing > decisions based on deadline values only break capacity awareness? (I > understand this is an RFC, so a "yes, something we need to look at" is > OK :-) I have no definitive answer about this :) If we do not want to break EDF and its properties, migrations have to be performed so that the "global EDF invariant" (schedule the m tasks with earliest deadlines) is not broken (and capacity-based migrations for non-idle cores risk to break this invariant). In theory, we should do something like "schedule the earliest deadline task on the fastest core", but this would require too many migrations (and would require to migrate a task while it is executing, etc...) I am convinced that doing the capacity-aware migrations when we have idle cores helps to reduce migrations (avoiding "useless migrations") when there are no idle cores, but I have no proof about this (just some simple examples); this is why I say that I have no definitive answer... Luca