Received: by 10.223.176.5 with SMTP id f5csp551817wra; Fri, 9 Feb 2018 03:27:23 -0800 (PST) X-Google-Smtp-Source: AH8x226zK0OPEwYyyl9FGjWEKE1IDaYkxa6SqGuz5PqCv/PBHueYqT6aVD/I3AnM85IieF6AJDap X-Received: by 2002:a17:902:3fa5:: with SMTP id a34-v6mr2399305pld.326.1518175643134; Fri, 09 Feb 2018 03:27:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518175643; cv=none; d=google.com; s=arc-20160816; b=zx3/6njsgECPP2BBZn+H/ySim3QBTEMJRlF61XDkakUlzSA0m29KYWJ9gw8/vhASAJ KWwGQlMXMosFDYB0yz/hqiPI7+X2QzNs3cKTi3wY2PUsMnbmGu5BHN/MuOJNVIBXcexQ YMQFu235gJjBGwe2oJ42mZq0WupIab+63Uhu4BKFxaNMfwNWuel/MFutz2Awf+x1UjuH GromufPSR65dJfsGumsIuhZJ2OwAXOA/30yA4kqfE1ejkY/7mgcbAGEAnMrrHBujqFKI X0YVQZkAthnMo+hLzKioyWyTtX8w/u4SY48tsQS0kKFUj4XCjCwNTrEAMxUqZg7+kNoM 4BsQ== 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=1Hvg7h/9r+La5fLc9I7qLhbA9Rp9iAclsECmJiY4DGw=; b=ov+EWCMhT500qtmfZRX4dGY+wav2HsAyYR9V3SZHdmHmZcdq02OvBSP2D5RIfIJYXX wlY3TCvrS/b+Hjqn8Lz3o9Ac5XMQIj8CEfKsfhpNWLFHr0emHxlXQCfxFkC0v+jQ6k1D aIq6TXvqHtOGrmLJ4sTE5QZcCkZSylA0QO7hM3uWTm8gUHGjSWyRij71ADsPtmrtLqrW BnqDR6YfjbC3HcoH6+iqvjibdM536KKzPz0dDt1SNTYhQM791RYUGqX6nRPM1q1w1k6O 4D/7fqg/WJr1mjyBVawo/YOIcwA3vIBDRD50rLqVZX7EdJgjyBY+vYvW8+J9KXEtINpX wVpQ== 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 b33-v6si1413727plb.750.2018.02.09.03.27.07; Fri, 09 Feb 2018 03:27:23 -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 S1750997AbeBIL0Z (ORCPT + 99 others); Fri, 9 Feb 2018 06:26:25 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:51355 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbeBIL0X (ORCPT ); Fri, 9 Feb 2018 06:26:23 -0500 Received: by mail-wm0-f48.google.com with SMTP id r71so14874203wmd.1 for ; Fri, 09 Feb 2018 03:26:23 -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=1Hvg7h/9r+La5fLc9I7qLhbA9Rp9iAclsECmJiY4DGw=; b=kioQKrzow7sroccoscXelSiSEZBeDTadirce2p3tV/yvS1Q0n9RYUZTScaNoN/XteV kuIUU5KQ3h0CRXAmqUdNKFxlKUjEQdrQlJAFmLYq0ebO9XTCrQgo8TmBBv42URGJtOlA c3U8nSENWEGyJQkMUZGQ8I+JvAYf/UACCYBGYTxX9gj7FgUnJtSqDbLGp3558RVgGNXh b8JnL/maOu3ax/hOj0bCoGjAEtA4DKzenP+w2oM/n4iu1DjX1P9QPaIL9y0guGlN39qY aIHHxGqWN/eU0fhGIEGSFPkOVuvFxt18epT0h8G4iOhi2RpF4yt9vfbN23YSly8lapiI Fk2A== X-Gm-Message-State: APf1xPDJKABA0+B5vRL44g2mZeECGR2KVNCe6Zc70WpBU83R5sAieELQ 4AzFxvmsphOC01/E3FuXr55OZQ== X-Received: by 10.28.169.200 with SMTP id s191mr1828641wme.9.1518175582232; Fri, 09 Feb 2018 03:26:22 -0800 (PST) Received: from localhost.localdomain ([151.15.228.62]) by smtp.gmail.com with ESMTPSA id c18sm1413438wmd.18.2018.02.09.03.26.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 03:26:21 -0800 (PST) Date: Fri, 9 Feb 2018 12:26:18 +0100 From: Juri Lelli To: "Rafael J. Wysocki" 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 Subject: Re: [PATCH] cpufreq: schedutil: rate limits for SCHED_DEADLINE Message-ID: <20180209112618.GE12979@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 09/02/18 12:04, Rafael J. Wysocki wrote: > 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. Mmm, right. I'm thinking that in those cases we could leave rate limit as is. The user should then be aware of it and consider it as proper overhead when designing her/his system. But then, isn't it the same for "non fast switch" platforms? I mean, even in the latter case we can't go faster than hw limits.. mmm, maybe the difference is that in the former case we could go as fast as theory would expect.. but we shouldn't. :)