Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2530646rdb; Tue, 12 Sep 2023 05:05:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHx3mPk/TN9wgKbmQsYdlclIOT1Sjeny6OUAUjVLY+fQvSAuGPgQHCMDmT/j/Y45jdIUKxL X-Received: by 2002:a17:902:c111:b0:1bc:69d0:a024 with SMTP id 17-20020a170902c11100b001bc69d0a024mr10864698pli.33.1694520335683; Tue, 12 Sep 2023 05:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694520335; cv=none; d=google.com; s=arc-20160816; b=PmQqK8k5F1vNHhCUCrD9h7a/73pTl0zrJxdxhz4OOwAIwFRDzXhtQ/g4lEFhLurwI8 mnjJR+RQe5uIqF5Fk/xLlQ0ys7BIxfp8OxZ+uq6AYVw7HM+B8kaI2P3MgWxz9sTWdIlQ 3+1wVoUn2YU1cDdB86xfnLVT0hdgdKxgvYpCWqihl5k9rjYNUni4EtivStqQOnXK8nUL vI8vra5exd9yEwOwQ7irWzoLl/jFWW6aIo6xPFzpz8CqG1IUp/wVaF1i8IcOlj3UEeET s6mTT4/MV/cpPyp5u1WiHvREMjQCziPr7CqLxW7tzGb5WGUQuZ6SsXQXXVKQuQApPYaP qlug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=a89yXhMqOBnfFxNvX+BMJlFNsUXF1nf8s4cKTZ+5/Ts=; fh=iWUJwioOL1yuSPLkhMstQOwWm0LapeVxeaY93A/Lriw=; b=jYrHFjuHIS2+WA6o20MePA20iFjpmsjEBQAzhiGb9uhn9FgZ1CjzkkhAdH/clNNC4k GPIYW2g/xNx4ccSrFiG4MxGAW2cSsRBA5C0Kmx6U2oW7lW/4tauBFfERQE7FhyAhW90p 7+zTogCvLNDW0nx7JWtT1Q1uneXn3pF6XMqR3yCb5clrRFTm08nY/KZwLgfrDMMojjRQ 6EUvyHn7L9zPhzSJzCNoZ36C+ezEdWrUulpIbWfO5XzeSMuUAnEvg7GQQDOwt1FQjzc2 yu4ADQAuRneKL5GpjrMqzODYOmZDkB9MFHblPd+plAB7waxhC8mrDqDprQnu81TGf04R Lu1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z9-20020a170903018900b001b9e9b21280si8203994plg.592.2023.09.12.05.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:05:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5446B80F7282; Tue, 12 Sep 2023 04:57:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234883AbjILL5I (ORCPT + 99 others); Tue, 12 Sep 2023 07:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234910AbjILL5E (ORCPT ); Tue, 12 Sep 2023 07:57:04 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D9ED9170B; Tue, 12 Sep 2023 04:56:56 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC342C15; Tue, 12 Sep 2023 04:57:33 -0700 (PDT) Received: from [10.57.93.149] (unknown [10.57.93.149]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 957213F67D; Tue, 12 Sep 2023 04:56:54 -0700 (PDT) Message-ID: <83b8c8d7-d53f-bea7-4ca3-5730d5c80b30@arm.com> Date: Tue, 12 Sep 2023 12:57:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [RFC PATCH 0/7] sched: cpufreq: Remove magic margins Content-Language: en-US To: Daniel Bristot de Oliveira Cc: Qais Yousef , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Ingo Molnar , Dietmar Eggemann , Vincent Guittot , Peter Zijlstra , Viresh Kumar , juri.lelli@redhat.com References: <20230827233203.1315953-1-qyousef@layalina.io> <20230906211850.zyvk6qtt6fvpxaf3@airbuntu> <6011d8bb-9a3b-1435-30b0-d75b39bf5efa@arm.com> <20230907115307.GD10955@noisy.programming.kicks-ass.net> <89067f71-9b83-e647-053e-07f7d55b6529@arm.com> <20230907132906.GG10955@noisy.programming.kicks-ass.net> <5616e50d-b827-4547-5b16-9131ace98419@arm.com> <20230907133840.GH10955@noisy.programming.kicks-ass.net> <8657cc7c-169b-3479-5919-72bd39335b15@arm.com> <7c1cedb5-6342-1bf9-d1a6-3a87f63801fc@redhat.com> From: Lukasz Luba In-Reply-To: <7c1cedb5-6342-1bf9-d1a6-3a87f63801fc@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 04:57:15 -0700 (PDT) X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Hi Daniel, On 9/8/23 13:51, Daniel Bristot de Oliveira wrote: > On 9/7/23 15:45, Lukasz Luba wrote: >>>>> RT literatur mostly methinks. Replacing WCET with a statistical model of >>>>> sorts is not uncommon, the argument goes that not everybody will have >>>>> their worst case at the same time and lows and highs can commonly cancel >>>>> out and this way we can cram a little more on the system. >>>>> >>>>> Typically this is proposed in the context of soft-realtime systems. >>>> >>>> Thanks Peter, I will dive into some books... >>> >>> I would look at academic papers, not sure any of that ever made it to >>> books, Daniel would know I suppose. >> >> Good hint, thanks! > > The key-words that came to my mind are: > > - mk-firm, where you accept m tasks will make their deadline > every k execution - like, because you run too long. > - mixed criticality with pWCET (probabilistic execution time) or > average execution time + an sporadic tail execution time for > the low criticality part. > > mk-firm smells like 2005's.. mixed criticality as 2015's..present. > > You will probably find more papers than books. Read the papers > as a source for inspiration... not necessarily as a definitive > solution. They generally proposed too restrictive task models. > > -- Daniel > Thanks for describing this context! That would save my time and avoid maybe sinking in this unknown water. As you said I might tread that as inspiration, since I don't fight with life-critical system, but a phone which needs 'nice user experience' (hopefully there are no people who disagree) ;) Regards, Lukasz