Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4008475imm; Mon, 14 May 2018 00:54:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8XZqwfBu4SRH+SNgiBO7As9eozCyU1qwO08YRa9ceOEoT7J4wKNlgdkPA0f56fyD74rqm X-Received: by 2002:a63:9741:: with SMTP id d1-v6mr7712568pgo.447.1526284444759; Mon, 14 May 2018 00:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526284444; cv=none; d=google.com; s=arc-20160816; b=CI0/iKfWxTXerkVLFQMo92AqUuAnOJiXqbdbxxsPvsAnTCoB7T5ZCPxo7ER0riIPqb 4sa1CdM30gW7FI4tI+hXBXbwy1BPVhzmmY/q60TmMlxjcZtFJDHVkKWSywtQOu42VNq8 atb6iZpWZYw6v/idbQjhVq9kgHNX7tqHGje4Dl9TPXI/rzxzvlc3L0OL+jiwGBqzHWaB eZnq6Bf2L9BgWt7Vr1Vg0wOIo6nAbjaucK1L77L5EQTAJ7Wu4D2OB9IlTETW5U3XJntB qrqkMlsMC53HXbX5h5pPa6LzhF6ZbPkcXJk36JTbrgotp8Bs+WAczGpveATiqKNuDImw 4S6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=Vp77g8OeV/0GNM/uvnu8ULaS9k+JpGKvNhQaHPeY6sg=; b=IZzX2iHi9LPCjG0P2rCmFZBKrH/46uXnOx/u0/CdF0QnfFqWWM1S1bQynvj7Bhx31C CcubWtKwZMMLOKYJBmvcXXydYjc/2nvSewF+dVY6draNvfBa9LEQhUx4S1ej/Eib3KMN GEmRVbZfy/EWHKPDTVw8I9E0K9mdtlLbrSUqc5lnPWgDKDt5d4vb824i9eZHvw1LVIH+ bknkHXM6V/EqPSnZaiz/Damg94Tc/uazQzSf8R6g04uspDiI0jgqRlPO2oi/2yT9akwu Ae7iXxaWJ84AW9JU5rQe7IcDPl2HLaBWr3zhWEVUN4qsfjocF8AVFP/uJU6adZgPp3SM U/nQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si9019715pld.513.2018.05.14.00.53.50; Mon, 14 May 2018 00:54:04 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752462AbeENHxm (ORCPT + 99 others); Mon, 14 May 2018 03:53:42 -0400 Received: from terminus.zytor.com ([198.137.202.136]:45035 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752081AbeENHxi (ORCPT ); Mon, 14 May 2018 03:53:38 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w4E7r3Us649093 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 14 May 2018 00:53:04 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w4E7r2qi649090; Mon, 14 May 2018 00:53:02 -0700 Date: Mon, 14 May 2018 00:53:02 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Claudio Scordino Message-ID: Cc: hpa@zytor.com, juri.lelli@redhat.com, corbet@lwn.net, mingo@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, peterz@infradead.org, efault@gmx.de, claudio@evidence.eu.com, luca.abeni@santannapisa.it, tglx@linutronix.de Reply-To: efault@gmx.de, peterz@infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, luca.abeni@santannapisa.it, claudio@evidence.eu.com, mingo@kernel.org, corbet@lwn.net, juri.lelli@redhat.com, hpa@zytor.com, torvalds@linux-foundation.org In-Reply-To: <1522741362-4542-1-git-send-email-claudio@evidence.eu.com> References: <1522741362-4542-1-git-send-email-claudio@evidence.eu.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/deadline/Documentation: Add overrun signal and GRUB-PA documentation Git-Commit-ID: bb4e30a48045c9cc16c4efe447489542750397cc X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: bb4e30a48045c9cc16c4efe447489542750397cc Gitweb: https://git.kernel.org/tip/bb4e30a48045c9cc16c4efe447489542750397cc Author: Claudio Scordino AuthorDate: Tue, 3 Apr 2018 09:42:42 +0200 Committer: Ingo Molnar CommitDate: Mon, 14 May 2018 09:12:27 +0200 sched/deadline/Documentation: Add overrun signal and GRUB-PA documentation Signed-off-by: Claudio Scordino Signed-off-by: Peter Zijlstra (Intel) Cc: Jonathan Corbet Cc: Juri Lelli Cc: Linus Torvalds Cc: Luca Abeni Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/1522741362-4542-1-git-send-email-claudio@evidence.eu.com Signed-off-by: Ingo Molnar --- Documentation/scheduler/sched-deadline.txt | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/scheduler/sched-deadline.txt b/Documentation/scheduler/sched-deadline.txt index 8ce78f82ae23..b14e03ff3528 100644 --- a/Documentation/scheduler/sched-deadline.txt +++ b/Documentation/scheduler/sched-deadline.txt @@ -49,7 +49,7 @@ CONTENTS 2.1 Main algorithm ------------------ - SCHED_DEADLINE uses three parameters, named "runtime", "period", and + SCHED_DEADLINE [18] uses three parameters, named "runtime", "period", and "deadline", to schedule tasks. A SCHED_DEADLINE task should receive "runtime" microseconds of execution time every "period" microseconds, and these "runtime" microseconds are available within "deadline" microseconds @@ -117,6 +117,10 @@ CONTENTS scheduling deadline = scheduling deadline + period remaining runtime = remaining runtime + runtime + The SCHED_FLAG_DL_OVERRUN flag in sched_attr's sched_flags field allows a task + to get informed about runtime overruns through the delivery of SIGXCPU + signals. + 2.2 Bandwidth reclaiming ------------------------ @@ -279,6 +283,19 @@ CONTENTS running_bw is incremented. +2.3 Energy-aware scheduling +------------------------ + + When cpufreq's schedutil governor is selected, SCHED_DEADLINE implements the + GRUB-PA [19] algorithm, reducing the CPU operating frequency to the minimum + value that still allows to meet the deadlines. This behavior is currently + implemented only for ARM architectures. + + A particular care must be taken in case the time needed for changing frequency + is of the same order of magnitude of the reservation period. In such cases, + setting a fixed CPU frequency results in a lower amount of deadline misses. + + 3. Scheduling Real-Time Tasks ============================= @@ -505,6 +522,12 @@ CONTENTS 17 - L. Abeni, G. Lipari, A. Parri, Y. Sun, Multicore CPU reclaiming: parallel or sequential?. In Proceedings of the 31st Annual ACM Symposium on Applied Computing, 2016. + 18 - J. Lelli, C. Scordino, L. Abeni, D. Faggioli, Deadline scheduling in the + Linux kernel, Software: Practice and Experience, 46(6): 821-839, June + 2016. + 19 - C. Scordino, L. Abeni, J. Lelli, Energy-Aware Real-Time Scheduling in + the Linux Kernel, 33rd ACM/SIGAPP Symposium On Applied Computing (SAC + 2018), Pau, France, April 2018. 4. Bandwidth management