Received: by 10.223.176.5 with SMTP id f5csp531889wra; Fri, 9 Feb 2018 03:06:40 -0800 (PST) X-Google-Smtp-Source: AH8x226ip4S8IzvjY3iQhj6FbicWIkHfNtjF8LYg1xTfm7bmuUM3CGHMOhY2hgcqXtWwvIrR2wWO X-Received: by 10.99.4.213 with SMTP id 204mr2075982pge.93.1518174400226; Fri, 09 Feb 2018 03:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518174400; cv=none; d=google.com; s=arc-20160816; b=ApN6peA9sBoZM7kBduealkIubFxteXzCkuimFpGznMPOcorjRUUiichcnMl0CkZDVs hJRnUp5QEg4WPE39BwhOdWYOwFERlGekxi2bDzQfUkVZTm2m3+4DQf2E+gJAUNe/t77f NxN9QCfMlcBNW3P0NbjzB5OmS7GrGEFaceM8Fiv0iiqLEHlNjhMowPhWnQUF08zi0JCD /GhYFI4nMyWieg4KsGPO5ufvRwZFJwP/ufwPhcF3UQ/BFcniEkm22ihFN/G44VRmKxpn uNuxn7KlV6V7UZWyNRPjrKV5oWRPK4R33lLs2sCtHuFIt5l0B8fwUTgA3eYfchyfR8tD mXuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=F/U8DB7JbMekoK6tk68PUNOEOZmDafZ21GW6XEmxfIE=; b=CPFFNV9Ygrw3nLX9p4L7vVP55EJDWxPgX2uJ7ASFsbiU+cEoCkLrs5eblGKHwr/Hib RjFyU9b0Q64m0Z6/2kXvnwffQn4riV1uPMkqY2HViJFgB7tfpROMXa1urzxYnNxuVnoz X7TrssZBOaAVhJjFC8bM8PgRR57+d0BELQiIYajF00juTEQiEZno/P+RZgNKKrp2OSjJ mo/734kyrxKILYtXxk1lS5YxiFR31c1qzDD80fT9FLLJAkClzSdtFTQ1LmFdeiUC6P/E dXXcmJkjaSaY9oxHM9aJAa1nLueqxLE6N32Lk+/zfAcPnacPznaFMyneuYlDAMNkoN/B 0FPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=T1ZlZR0C; 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 q25si1238098pge.457.2018.02.09.03.06.24; Fri, 09 Feb 2018 03:06:40 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=T1ZlZR0C; 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 S1752208AbeBILEt (ORCPT + 99 others); Fri, 9 Feb 2018 06:04:49 -0500 Received: from mail-oi0-f49.google.com ([209.85.218.49]:38102 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbeBILEr (ORCPT ); Fri, 9 Feb 2018 06:04:47 -0500 Received: by mail-oi0-f49.google.com with SMTP id j15so5852367oii.5; Fri, 09 Feb 2018 03:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=F/U8DB7JbMekoK6tk68PUNOEOZmDafZ21GW6XEmxfIE=; b=T1ZlZR0CowVwVkFNyyOdVR542CD39KZxbEtUYFDFfJu+iSsHWz2NLFp/cR7F9O5G9i O/bOQtPDqnTH0PROTi0eIPE+32SY2VZ0vmNuPlHNxGQP5CiFVVY6AqP/vyRppsIt8eXm qYwo6cS+8oZEq3KEuLsCxrk1NHouVa0PeuiCSRrnwrlarAUenZmU4h1HElhyzLucv+hw yJn2AQk8Se1O0l/n8TBP+wXRK2IRmMP2J91Q+wXuQ12rvlyTkTATAT7yjsTHklltBQmL ldsGMhbA5UIE2u/lBZzdh04DP2z8yyJEKBtjOm/e9bvIcdZAapUBi+CY8G5hLOFwiNYx 9ulA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=F/U8DB7JbMekoK6tk68PUNOEOZmDafZ21GW6XEmxfIE=; b=bwGrO9zE0Z3EhD2UjGoZaTAHYra+9Jg7byDRiD915QKDIzxa6z4RdYs2pJMdAqaDMw e5wCthfGEegkBm8KH1lxQRyB4uu/0dO22gaEd793Bmrj9Hl+tGZ8KFsUJKGLt+eDQyyi ACa/PGSJ8V4mZU9SniRMdMCV0qfJuaRL/pP4qj2U4oD0jW+g0Gpa8CJVXe0BqzwmW3Qb gIzEngbogVMI3bheZlLrXnVjJT/NjiKfXHVayA/2Vrp1szJFb5ZqDUu5BlEIQ9VOOCMq p47kn5I0R7QB89qAMPY2FRmj/1WeuEOiul7JJsGSzBjxMf1Si5dAClMsJxT7iHEAu86a 4iGQ== X-Gm-Message-State: APf1xPAzF4ikS4fPECwv2F+GLrJ3nXfmRaITNbBqE4hRK73pgw+ksHD/ /aGplqa6deTnqqp8dhgMp55AAOUJzIbb6h4bD2c= X-Received: by 10.202.15.2 with SMTP id 2mr1538421oip.336.1518174286865; Fri, 09 Feb 2018 03:04:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.46.234 with HTTP; Fri, 9 Feb 2018 03:04:46 -0800 (PST) In-Reply-To: <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> <20180209105305.GD12979@localhost.localdomain> From: "Rafael J. Wysocki" Date: Fri, 9 Feb 2018 12:04:46 +0100 X-Google-Sender-Auth: msgNT1OTMZLj8JZJIzhZsod0Jes Message-ID: Subject: Re: [PATCH] cpufreq: schedutil: rate limits for SCHED_DEADLINE To: Juri Lelli Cc: "Rafael J. Wysocki" , 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 , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 9, 2018 at 11:53 AM, Juri Lelli wrote: > 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". :/ You are right. I'm somewhat concerned about "fast switch" cases when the rate limit is used to reduce overhead.