Received: by 10.223.176.5 with SMTP id f5csp519330wra; Fri, 9 Feb 2018 02:54:16 -0800 (PST) X-Google-Smtp-Source: AH8x226XU+3cepccpgfFt3Ei52gcI0OFe8khrgTQWYv8ZdwLxlKqMTSjdNNCua8FOcX2TNqocVtg X-Received: by 2002:a17:902:47c2:: with SMTP id d2-v6mr2228954plh.222.1518173656364; Fri, 09 Feb 2018 02:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518173656; cv=none; d=google.com; s=arc-20160816; b=RTs7EnA5WWNysKnXBMLamQXCzbwY/kQXf53J4YFhLcZ8N0vZwS9rMPmG13VlbypYML RnInMZLaDfHNoRA7xFGVrNWv38TaMePMoG/Ddz1/LAwUcgpOuaFignXQwVA3HN9IIElL 2aW8l1wpvbmSEdXEUYtAQ6a7UIqACEgREGyGEMVAZcJ62m+WPTt6j3J8pXL5bPKUEX3S HjOAo9RaW1gnSkvk1R8u8pRNkWQRvEEtRN2lmMusaJeabdT/ZPfQsLfAzAJZBDzc3XJG nrIdN6ZFLxOg2RJNtyKfn2690Ux1WaC6NOLTWKaTSMl4CqK8pgCzR7X9RwyXgkNmb6Kf 11qg== 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:arc-authentication-results; bh=4XS4P7oYAF3aNH2JIH+1Dh0bNH34D8TxpL8PjYn6iW4=; b=nza+0tK0475dYU3EAmVRa8T7wN5KcRI9KHDUjsusWgud68iomC4EkWGbjuwdQe6FMg XLrIdTrw4cF1vUpaDPyCDlmjInSOFYDGBQfBaQZhRWCTh8DUDmsMtvcIcuj9Vuu6zxx6 cQ1wvQ951+YWJhQ9xYyAnH83LvSc1goZEgp3mANB9nU3A9X2BZinacNIWBlcH5OCJZ8X 8V2GCKYqiS8SEFpuQwvdSBFgnkE+ajoim+MRTg8aAuu5fv47wzxb6p+BWIcIT1nvLNkV lcR23d/WSKGAPH+iEMfMjtNErmdhPUuHy2wUqOLb3kV14Yrk0ybaQgQ1Z06BJKFf4rFz Ro/g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p128si1209312pga.15.2018.02.09.02.54.01; Fri, 09 Feb 2018 02:54:16 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751099AbeBIKxQ (ORCPT + 99 others); Fri, 9 Feb 2018 05:53:16 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:52430 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbeBIKxO (ORCPT ); Fri, 9 Feb 2018 05:53:14 -0500 Received: by mail-wm0-f45.google.com with SMTP id g1so14605308wmg.2 for ; Fri, 09 Feb 2018 02:53:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4XS4P7oYAF3aNH2JIH+1Dh0bNH34D8TxpL8PjYn6iW4=; b=a3yIGpde82YIFgYh4Tdobapfot+jyy5e6ne+t91v4YPcQ/Kq6h/NDSlq9wpxYvdgbf JiUfPdfHueBN6Pa+DK2Zf2MHcWPZMNDnQb2UxQ+TQE+Nqg3P17wxsNqOkQZLbMrKwpai VwsXLZTd2dqPDmZg4zQ1Zpky7r+Hzqvu4ZCxTiKfNiwVLgwt9l3WYfPSZ1Wa5fSl/MmX grw4Ba/6Lq5GgSnQcY/hp6r9+kYcAKiSStotZaHAMtFg1vuELSZnlWONST3JdlJjkRQ+ IFJIaO2MEKZZxYMWe7FJAYuHSZow1gIkefn/SyQC7nc/cq5jKmv8HNzfbJeEDyVeY1oi c8+g== X-Gm-Message-State: APf1xPCC2IRG4gaSQMZ1wZssyBE3jaTCnAwfIbRBC9UfawcN7qO79Bpw m82Z51dk0iEQXkUT1ECPk7E09L7gb0g= X-Received: by 10.80.161.5 with SMTP id 5mr3168464edj.65.1518173593438; Fri, 09 Feb 2018 02:53:13 -0800 (PST) Received: from localhost.localdomain ([151.15.228.62]) by smtp.gmail.com with ESMTPSA id j17sm1203077ede.84.2018.02.09.02.53.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 02:53:12 -0800 (PST) Date: Fri, 9 Feb 2018 11:53:05 +0100 From: Juri Lelli To: "Rafael J. Wysocki" Cc: Claudio Scordino , Viresh Kumar , Peter Zijlstra , Ingo Molnar , "Rafael J . Wysocki" , Patrick Bellasi , Dietmar Eggemann , Morten Rasmussen , Vincent Guittot , Todd Kjos , Joel Fernandes , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: schedutil: rate limits for SCHED_DEADLINE Message-ID: <20180209105305.GD12979@localhost.localdomain> References: <1518109302-8239-1-git-send-email-claudio@evidence.eu.com> <20180209035143.GX28462@vireshk-i7> <197c26ba-c2a6-2de7-dffa-5b884079f746@evidence.eu.com> <11598161.veS9VGWB8G@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11598161.veS9VGWB8G@aspire.rjw.lan> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 09/02/18 11:36, Rafael J. Wysocki wrote: > On Friday, February 9, 2018 9:02:34 AM CET Claudio Scordino wrote: > > Hi Viresh, > > > > Il 09/02/2018 04:51, Viresh Kumar ha scritto: > > > On 08-02-18, 18:01, Claudio Scordino wrote: > > >> When the SCHED_DEADLINE scheduling class increases the CPU utilization, > > >> we should not wait for the rate limit, otherwise we may miss some deadline. > > >> > > >> Tests using rt-app on Exynos5422 have shown reductions of about 10% of deadline > > >> misses for tasks with low RT periods. > > >> > > >> The patch applies on top of the one recently proposed by Peter to drop the > > >> SCHED_CPUFREQ_* flags. > > >> > > [cut] > > > > > > > > > Is it possible to (somehow) check here if the DL tasks will miss > > > deadline if we continue to run at current frequency? And only ignore > > > rate-limit if that is the case ? Isn't it always the case? Utilization associated to DL tasks is given by what the user said it's needed to meet a task deadlines (admission control). If that task wakes up and we realize that adding its utilization contribution is going to require a frequency change, we should _theoretically_ always do it, or it will be too late. Now, user might have asked for a bit more than what strictly required (this is usually the case to compensate for discrepancies between theory and real world, e.g. hw transition limits), but I don't think there is a way to know "how much". :/ Thanks, - Juri > > > > I need to think further about it. > > That would be my approach FWIW. > > Increasing the frequency beyond what is necessary means wasting energy > in any case. > > Thanks, > Rafael >