Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2258663pxa; Fri, 7 Aug 2020 07:07:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYDSXHMH5kw8ULqFdu18wszpoZvjpLEA9DyXo4vFKTvETEzN8q/xAvtFjhuVqoIMhIp6TM X-Received: by 2002:a17:906:4994:: with SMTP id p20mr8852350eju.299.1596809279029; Fri, 07 Aug 2020 07:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596809279; cv=none; d=google.com; s=arc-20160816; b=cIu6nGXECJkkVi6fzDocfMkMrpptsMRwGtL32f3yjXqLW7w+o1IKUwHLeXP0tw+Mbl 4XzCGYEGrmOoXdROlJBqd5ATbdKseoVvPqV+2nphp6V4hYl4i5yzfp12IcPn0Fp1fIBw PiWgXvVtPEFtk6ocnyTK73ztLqMPfgNQ6AAA9DOuLRaSRVzHKStkchoST45/8sedD7VD +W2HEPjsKFIiPglzEiKzWXF9tyP2qgtK6oEY0086NcUslt018zqBIzFSBRW/cGHK68TD y+RAVGldqv60Lr14jw1LS0HAv4Llm8jxQV3TRasUY2n088oLZdld7n6UDtq5nlFupQrg HZ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GXVhD3g6ivnac0fcrazCB91JC9lqn0ES5uvBW9pR7CI=; b=XcsINTk/r8IVH4fOLTU8/IW8W1oPerD2PT1fXGSJmIhH/R3vwrCODGfuHsB9vIGlY0 5VsWtm1mPi51hImKk3ZNyaPv8b6xg5ji9M81lcKZb2FQPOoRKckn+n277y7JLmiUNvm5 RPtQrBsNclH3Csqov/sBHSkimL/IpKmsJdeKXbmmcXSROiCNKM8tfpJjv6Gl7Fup7WNe VReM3mSFi81fbHAQWPerCihC9LrmYYxzxm3KJAXh1wXirm/Kx61HBj78XyBNKmLe2QKA ApMEytG4x7SWn8rTS1xdREUuLoP/0BibxrsgTOPTVXa8O5G7GWW0ddLK6Sm2+IGcRJ1O ClGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TqWTmWEl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si5266252ejz.217.2020.08.07.07.07.35; Fri, 07 Aug 2020 07:07:59 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TqWTmWEl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbgHGOHF (ORCPT + 99 others); Fri, 7 Aug 2020 10:07:05 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34405 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726536AbgHGOEU (ORCPT ); Fri, 7 Aug 2020 10:04:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596809058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GXVhD3g6ivnac0fcrazCB91JC9lqn0ES5uvBW9pR7CI=; b=TqWTmWElxtZDngVPQZj33LPFcz1PT3ujODGKKvP6gyGcgMRBrqrJ5+cgknG9yvHEzowx6D dOShxb7oIm5lmiRU+6UrqKdlQ4o9tWcp/arbM4fsc78L+J9328Zi/gwC8Z7eZIMB87EOTd XFq3R9+1Hfm/RSWDuaI8vlqodvKbmkI= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-Q57o9ZuhNHyJ_lBrA4k_BQ-1; Fri, 07 Aug 2020 10:04:16 -0400 X-MC-Unique: Q57o9ZuhNHyJ_lBrA4k_BQ-1 Received: by mail-wr1-f72.google.com with SMTP id z7so787410wrw.21 for ; Fri, 07 Aug 2020 07:04:16 -0700 (PDT) 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; bh=GXVhD3g6ivnac0fcrazCB91JC9lqn0ES5uvBW9pR7CI=; b=QGuVT8O8+F+YezZ78VsOMNugeB2L1omK4Mcm28rwVAYzflzaLLFIdhQxrjT9dNxoc7 6LWye+xCJnsveu6dF8sl2dvB762ZvIkijyHL503uLRTySHYAYxJxIFOkiFAkylQoypFs kTejRYVZyXe0PUuP9xnTf8/k/BsdPcxmUwybdcGDYhkvILgmegelGmRDfEO/Er5Y03td zFEReYNUf6Z25nwNAZ7u2t1aE/PGoKB6YTsCqkC8EYlOfFkzUVWenSmoa5MHcuX0NNHv Tk5ol02r6xgxI6rut5TBnFadk85cQcUz2jVxCwu9VOWOthAnhlTatNW5pn3DLJBAI00W e1Wg== X-Gm-Message-State: AOAM532CAVBqrP99vLR2Kb9v2BNFlImU0D19J7wwH1jUgnTSrr4oLyy8 h/o55fCAHntV/GYNKlztcacHcSN+K74j6f9buQvWTekn3ihGrWxdnr8E6uEMW3bjlHgo44VQXWO VtzF7XmeKKnW9FBXWLrwfu6J9 X-Received: by 2002:adf:ee8e:: with SMTP id b14mr13349618wro.213.1596809055472; Fri, 07 Aug 2020 07:04:15 -0700 (PDT) X-Received: by 2002:adf:ee8e:: with SMTP id b14mr13349593wro.213.1596809055215; Fri, 07 Aug 2020 07:04:15 -0700 (PDT) Received: from localhost.localdomain ([151.29.36.84]) by smtp.gmail.com with ESMTPSA id h14sm10114783wml.30.2020.08.07.07.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 07:04:14 -0700 (PDT) Date: Fri, 7 Aug 2020 16:04:11 +0200 From: Juri Lelli To: luca abeni 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: <20200807140411.GS42956@localhost.localdomain> References: <20200807095051.385985-1-juri.lelli@redhat.com> <20200807151632.36dc6200@nowhere> <20200807133041.GQ42956@localhost.localdomain> <20200807154120.5dc9599c@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807154120.5dc9599c@nowhere> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/08/20 15:41, luca abeni wrote: > 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 ;-) Not saying that the wider scope approach is not worth pursuing, you know I would be very much interested into that as well :-), but I'd leave it for a later time. This proposal looks reasonably achieaveble in somewhat short times and it should provide provable benefits to production today. Plus, you are again right, foundations would be there already when we'll be ready for the wider solution.