Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp839892yba; Thu, 9 May 2019 06:47:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqydKso8nzjLgtIxtqZU7+KksRC/lG51pGwLsNcaR1gk9axrlW8t6TMjmVRQFj32LW+k4BwY X-Received: by 2002:a62:6b44:: with SMTP id g65mr5258309pfc.27.1557409671641; Thu, 09 May 2019 06:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557409671; cv=none; d=google.com; s=arc-20160816; b=BbIvG+wzpqJCB/R2hh6fSkM1z7Q+QElYafVNhUCgaAO03kSUUWzlToUVaxxwrpnfrr 472SN1LtyKimBQBHhfPbyvbPnhLR31EyBm+Rj1B/rR1HX2xiD/Eh/swc9EBbNaGKxrVv D85a1VstDkgEu4iEVibl+cvYPBoI2F8NN4U7ayCq+FnM51MBZCiB6O1cM1Gn7PtqhAx6 /5YegHDFJ3YYAKnLMqqa7xTvwgL6RzxCMYyFwudKs6xmDu8r2hdLXEWvy06TkgYiM0jz +QElSw8CKlmaO+iFKGHYH5LFc1icK8m++YslF4zr0FTS/cIEj9cay09S69ldG+woeR1I FSlA== 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=ONe4G/DitEf4ODev3039OVCT0pQw1Ux7lQXTfGSKfFs=; b=G6HfqKlcK26MGDQ55n3rQJeLFkhTpzz+eu//feHhTx2Wa5EIrT1mXVau1oEuJ7FyA3 WbRXvblAe6xjmbFeYVuD/XE2uGtbI8rVCkDytx13kgyhpkTXrNfWkAFP1RkcpzYik+I7 9hwe3/ROYG76TpRZbZGBolfzN7JQvxo+A4GghN52HzxkXIkQvPNSMtj/hto3LRM1NV1U +JTVxW9oZtZZBfDHSKyYtRPEBMQ+FbF5AocGEAlE+zIE0ZUSwRrZYp1fb7nVcIWQrye0 oH0xwN55u7G+t2FiRdRr9CSgRUfbZdsGP445UTSAviidoOossYf0lL17T62PMIPVMQFk LaaQ== 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 129si2657508pfy.251.2019.05.09.06.47.31; Thu, 09 May 2019 06:47:51 -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 S1726571AbfEINqc (ORCPT + 99 others); Thu, 9 May 2019 09:46:32 -0400 Received: from foss.arm.com ([217.140.101.70]:41876 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbfEINqc (ORCPT ); Thu, 9 May 2019 09:46:32 -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 5B169374; Thu, 9 May 2019 06:46:31 -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 CF8C73F738; Thu, 9 May 2019 06:46:28 -0700 (PDT) Date: Thu, 9 May 2019 14:46:27 +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 6/6] sched/dl: Try not to select a too fast core Message-ID: <20190509134626.toay67p6ky2i5pju@queper01-lin> References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-7-luca.abeni@santannapisa.it> <20190507155732.7ravrnld54rb6k5a@queper01-lin> <20190508082605.623ed4d5@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508082605.623ed4d5@nowhere> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luca, On Wednesday 08 May 2019 at 08:26:05 (+0200), luca abeni wrote: > Mainly two reasons: the first one is to try to reduce frequency > switches (I did not perform measurements on the hikey960, I remember > that on other CPUs a frequency switch can take a considerable amount of > time). Right, though if you want to use DL and scale frequency on these systems the only 'safe' thing to do is probably to account for the frequency switch delay in the runtime parameter of your DL tasks ... > Then, I wanted to have a mechanism that can work with all the possible > cpufreq governors... So, I did not assume that the frequency can change > (for example, I remember that without considering the current > frequency I had issues when using the "userspace" governor). But this is a problem I agree. OTOH it is also true that 'userspace' has a much weaker use-case than sugov for asymmetric systems where we typically care about energy and do 'proper' DVFS. So, I'd say we really shouldn't assume the frequencies won't change. DL is already sub-optimal on SMP if the user sets arbitrary frequencies for the CPUs no ? So perhaps this problem could be solved in different patch series ? > Maybe I just do not know this kernel subsystem well enough, but I did > not find any way to know the maximum frequency that the current > governor can set (I mean, I found a "maximum frequency" field that > tells me the maximum frequency that the cpufreq driver can set, but I > do not know if the governor will be able to set it --- again, consider > the "userspace" governor). Right, we'd probably need more infrastructure to do this, but I'm not sure how deep we'll need to go ... Thanks, Quentin