Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2241791pxa; Fri, 7 Aug 2020 06:45:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8Dg5spgM3BDbaimhtCgr1Fy8C0cbQLImiDqA8WakcBcvFO2u06LES7m84fG2UNe57m4f/ X-Received: by 2002:a17:906:c310:: with SMTP id s16mr9459474ejz.466.1596807945019; Fri, 07 Aug 2020 06:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596807945; cv=none; d=google.com; s=arc-20160816; b=oBY5U/ju8zgNV0GvOthbh/e6YWmzz/KY609WsO2QFTqAIYCATn4mmesuirfgG7IIZv uYrK3HSeFnCeKW54FJBEBrr1+PBpy0pTyXZJx2ecr+avY5/DDEyGhRQjhUDKlONHAgSe g7652T+3MN1HcOHtU8TRo9byPOMBI4nHJd7Oqeq/aSzjJHI1tjw/29ckyxaH5E+T5zeS sntBnIxA0swQNzOu0LcSwHMmUzy7XuYbnAVui2nGkIHcTdKDNTDxSQmaqxYzWC1PYF3X sUxIEqvtFSkolXu7U3g257zln1VXOruYScXrXpdzs19bIWMzxHIBnNf8rYcOlZk9jPHR eWLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=2taGseCJer1H38FcaHPxqAsr7E9k+5yj9NeGekI7AGU=; b=vyv1xvEAPgYgAbnNshZefacmzqqWAYBgwZpb9nPgIGijoMHhK5U964fce7uEZ+yTun ddS1SAlvvHD6I2KWYqFuysCiNtKnCvOjf9TQNaQYFOMF0plw09B6CkYIfIoAhuC/t6eQ E0bi+ZZbyPBWmkErWNXC1+8LVEssm9KzeodHSGIRuDNlGw4NV6/9LS4bwaEkxpG2+Zmb nd23mS5H/R7aEhEPwDLhgcZh0m+LPj7L0d+KWwPT0h59Of/ykZa+LeMvF090ejjGgdDS g2gBwUFe/U96+posuZ9hMKoyVfc6CQvuVc2xP/57MuwtS/YNOTiqQTHerg4NX2bWkE2Y bCNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si5346847edn.409.2020.08.07.06.45.21; Fri, 07 Aug 2020 06:45:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726155AbgHGNls (ORCPT + 99 others); Fri, 7 Aug 2020 09:41:48 -0400 Received: from ms01.santannapisa.it ([193.205.80.98]:52330 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726058AbgHGNll (ORCPT ); Fri, 7 Aug 2020 09:41:41 -0400 Received: from [94.37.192.58] (account l.abeni@santannapisa.it HELO nowhere) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 150297055; Fri, 07 Aug 2020 15:41:30 +0200 Date: Fri, 7 Aug 2020 15:41:20 +0200 From: luca abeni To: Juri Lelli Cc: peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, tommaso.cucinotta@santannapisa.it, alessio.balsini@gmail.com, bristot@redhat.com, dietmar.eggemann@arm.com, linux-rt-users@vger.kernel.org, mtosatti@redhat.com, williams@redhat.com, valentin.schneider@arm.com Subject: Re: [RFC PATCH v2 0/6] SCHED_DEADLINE server infrastructure Message-ID: <20200807154120.5dc9599c@nowhere> In-Reply-To: <20200807133041.GQ42956@localhost.localdomain> References: <20200807095051.385985-1-juri.lelli@redhat.com> <20200807151632.36dc6200@nowhere> <20200807133041.GQ42956@localhost.localdomain> Organization: Scuola Superiore S.Anna X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Juri, On Fri, 7 Aug 2020 15:30:41 +0200 Juri Lelli wrote: [...] > > In the meanwhile, I have some questions/comments after a first quick > > look. > > > > If I understand well, the patchset does not apply deadline servers > > to FIFO and RR tasks, right? How does this patchset interact with RT > > throttling? > > Well, it's something like the dual of it, in that RT Throttling > directly throttles RT tasks to make spare CPU cycles available to > fair tasks while this patchset introduces deadline servers to > schedule fair tasks, thus still reserving CPU time for those (when > needed). Ah, OK... I was thinking about using deadline servers for both RT and non-RT tasks. And to use them not only to throttle, but also to provide some kind of performance guarantees (to all the scheduling classes). Think about what can be done when combining this mechanism with cgroups/containers :) [...] > > I understand this is because you do not > > want to delay RT tasks if they are not starving other tasks. But > > then, maybe what you want is not deadline-based scheduling. Maybe a > > reservation-based scheduler based on fixed priorities is what you > > want? (with SCHED_DEADLINE, you could provide exact performance > > guarantees to SCHED_OTHER tasks, but I suspect patch 6/6 breaks > > these guarantees?) > > I agree that we are not interested in exact guarantees in this case, > but why not using something that it's already there and would give us > the functionality we need (fix starvation for fair)? Ok, if performance guarantees to non-RT tasks are not the goal, then I agree. I was thinking that since the patchset provides a mechanism to schedule various classes of tasks through deadline servers, then using these servers to provide some kinds of guarantees could be interesting ;-) Thanks, Luca > It would also > work well in presence of "real" deadline tasks I think, in that you > could account for these fair servers while performing admission > control. > > Best, > > Juri >