From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: linux-rt-users-owner@vger.kernel.org Received: from mail-wr1-f52.google.com ([209.85.221.52]:42898 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbeHWQjk (ORCPT ); Thu, 23 Aug 2018 12:39:40 -0400 Received: by mail-wr1-f52.google.com with SMTP id v17-v6so4597613wrr.9 for ; Thu, 23 Aug 2018 06:10:01 -0700 (PDT) Date: Thu, 23 Aug 2018 15:09:57 +0200 From: Juri Lelli Subject: Re: SCHED_DEADLINE as user Message-ID: <20180823130957.GD31443@localhost.localdomain> References: <20180817095106.GB27071@localhost.localdomain> <20180817102810.GC27071@localhost.localdomain> <513fd544-bc51-7ea6-8b94-983d28922a66@klingt.org> <20180820085420.GB8866@localhost.localdomain> <20180823115618.5584687b@luca64> <20180823102350.GB31443@localhost.localdomain> <20180823124340.765632d8@luca64> <20180823123739.GC31443@localhost.localdomain> <20180823150040.7da1624f@luca64> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180823150040.7da1624f@luca64> Sender: linux-rt-users-owner@vger.kernel.org List-ID: To: luca abeni Cc: Tim Blechmann , Daniel Bristot de Oliveira , linux-rt-users@vger.kernel.org, Tommaso Cucinotta On 23/08/18 15:00, luca abeni wrote: > On Thu, 23 Aug 2018 14:37:39 +0200 > Juri Lelli wrote: > [...] > > > > Maybe the existing system wide sched_rt_{period, > > > > runtime}_us are enough? > > > > > > I do not know... A cgroup-based interface looks more powerful (and > > > not so difficult to implement... :), and would allow the sysadmin > > > to decide which users can use SCHED_DEADLINE, how much > > > SCHED_DEADLINE bandwidth can each user/group use, etc... > > > > How about extending PAM limits instead? It looks like it's what (e.g.) > > audio users rely on already [1]. It is maybe possible to add > > dlruntime, dlperiod, dldeadline parameters in there? > > Ok, I do not know much about these PAM limits... Where can I find more > information? The link I shared already gives some information, man pam_limits and limits.conf also. > What do we need to implement exactly, to add these dlruntime, > dlperiod, dldeadline parameters? Not sure yet "exactly" :-), but I'd say something along these lines https://elixir.bootlin.com/linux/latest/source/kernel/sched/core.c#L4198