Received: by 10.223.176.5 with SMTP id f5csp670884wra; Fri, 9 Feb 2018 05:27:33 -0800 (PST) X-Google-Smtp-Source: AH8x225dK6X5LVUuEXbAIPW5XCPwAkQRNLpcBr3eC6W/J9eH0IYd4VaPak6WqaMM78/suH8JJvh4 X-Received: by 10.98.62.80 with SMTP id l77mr2894438pfa.103.1518182853042; Fri, 09 Feb 2018 05:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518182853; cv=none; d=google.com; s=arc-20160816; b=jcw3iFDjJRl1+IKQtu8cBBS41K+OrAg8Ru1pc0zqMHUvmOAy1KYKsdS3ZsCeQytPgj bCzr+4Oab//54pe6DymQNhJWgWxP2QDuNOcdb04vqmj8x2qsQaWXURHOCw2Mv8ILWUL5 Dxlk0IFmBJs6mO4FccFfjs1XHxGY5ZDIaMielMYzaW4aReWvsmWtQkoj427QZ3rlKsMN KnxKV9zQ92jWvzRF+nGvZAsh4/3T9PIKJtxUAQla5XEtE2IDCKoP3lNWIohVISFPlFcw QlEjzDMtvctABZrmOam609O1RIF6awiZ1nQHU6pvE1tPTajNOeefq7Z+fL5PsecJVuFC UVOw== 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=w27v/rHZH4kXOVvPNlhULTYtvcS0Kh9qcd4BCeo2W84=; b=TVgtXoJAYFMsHwJZ3nMeuPiXUpuvYKrl3q5EA4uJXTGAQ2fXBIR5Rp0nWSKDDSvZtl TgWrRDqzSBueWKUjZHjgfglh7d8xw6SCwoAiIgUoaJ/pKZYauKjeVKKJhs/NG567ceOw y6zF6mMHLOZLH8WWCYYSO2g0minXPJ9PyXkOtRHcP3LU5sFTDdhPAKlCYewmVQa+XzJI 9o3gTq5+Ptvar2+xrOau4m/PMThOEyV7yOW9X4Ju4ZuGm2my2huErOT2Tjb6qzLkRD3v sE7dezNf4aM99IbpY8D8nVPMHOy1ZrxoToI040TJ3oK24vTBiX9ZwpUxJdBpEt24/D+R J9pA== 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 t64si1368567pgc.749.2018.02.09.05.27.18; Fri, 09 Feb 2018 05:27:32 -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 S1751150AbeBINZu (ORCPT + 99 others); Fri, 9 Feb 2018 08:25:50 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:51226 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbeBINZt (ORCPT ); Fri, 9 Feb 2018 08:25:49 -0500 Received: by mail-wm0-f48.google.com with SMTP id r71so15468107wmd.1 for ; Fri, 09 Feb 2018 05:25:48 -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=w27v/rHZH4kXOVvPNlhULTYtvcS0Kh9qcd4BCeo2W84=; b=ewncRX/3qj848xrMipCUq8SVE8JnmxJgL3CVJR/agOlbBk3LcBixCt9OoovgVQSwYU E7sUQoOIT/BL0m7SYDIWbIVkjHGrhhL6XpXm1Zc3VmdZbVGNRZg1ZgujWp2hAsooEB3G +qLIgmuwHOlEdeAPpgadV2oAqfmTaAP1urGpoXlsYOiXFJrWEMqVEkOZ17CZeQK+GLrM Y5IFzLa2IFykDGKcIie/6/nMtKWoJBqjafDSuDPdAPURSA0BzyyHMEdhGQ5VaVRE9SLs CG0B6QMF0rLnAbIp3SsMcHuafg72DKkagEmmrRiFmq9ubVy7VfkAOcNzzhL1Mxd2wxlP Iu7Q== X-Gm-Message-State: APf1xPBdDETZnTMpNoVmWKy2q1mcPjQQTRbijN6w+8B5EFJEjUFT7ZXK lIUYV1qxBmPARN6o2CmuA58yPA== X-Received: by 10.28.71.198 with SMTP id m67mr2276337wmi.40.1518182747910; Fri, 09 Feb 2018 05:25:47 -0800 (PST) Received: from localhost.localdomain ([151.15.228.62]) by smtp.gmail.com with ESMTPSA id f19sm2192596wmf.23.2018.02.09.05.25.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 05:25:47 -0800 (PST) Date: Fri, 9 Feb 2018 14:25:44 +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: <20180209132544.GI12979@localhost.localdomain> References: <197c26ba-c2a6-2de7-dffa-5b884079f746@evidence.eu.com> <11598161.veS9VGWB8G@aspire.rjw.lan> <20180209105305.GD12979@localhost.localdomain> <20180209112618.GE12979@localhost.localdomain> <20180209115155.GG12979@localhost.localdomain> <20180209125245.GH12979@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 13:56, Rafael J. Wysocki wrote: > On Fri, Feb 9, 2018 at 1:52 PM, Juri Lelli wrote: > > On 09/02/18 13:08, Rafael J. Wysocki wrote: > >> On Fri, Feb 9, 2018 at 12:51 PM, Juri Lelli wrote: [...] > >> > My impression is that rate limit helps a lot for CFS, where the "true" > >> > utilization is not known in advance, and being too responsive might > >> > actually be counterproductive. > >> > > >> > For DEADLINE (and RT, with differences) we should always respond as > >> > quick as we can (and probably remember that a frequency transition was > >> > requested if hw was already performing one, but that's another patch) > >> > because, if we don't, a task belonging to a lower priority class might > >> > induce deadline misses in highest priority activities. E.g., a CFS task > >> > that happens to trigger a freq switch right before a DEADLINE task wakes > >> > up and needs an higher frequency to meet its deadline: if we wait for > >> > the rate limit of the CFS originated transition.. deadline miss! > >> > >> Fair enough, but if there's too much overhead as a result of this, you > >> can't guarantee the deadlines to be met anyway. > > > > Indeed. I guess this only works if corner cases as the one above don't > > happen too often. > > Well, that's the point. > > So there is a tradeoff: do we want to allow deadlines to be missed > because of excessive overhead or do we want to allow deadlines to be > missed because of the rate limit. The difference between the two seems to be that while overhead is an intrisic hw thing, rate limit is something we have mostly to cope with the nature of certain classes of tasks and how we describe/track them (at least IMHO). I'd say that for other classes of tasks (DL/RT) we would be better off consciously living with the former only and accept that real world is "seldom" not ideal. But then again this is just another theory, experiments might easily prove me wrong. :)