From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756540Ab0KKT6A (ORCPT ); Thu, 11 Nov 2010 14:58:00 -0500 Received: from canuck.infradead.org ([134.117.69.58]:34562 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756156Ab0KKT56 convert rfc822-to-8bit (ORCPT ); Thu, 11 Nov 2010 14:57:58 -0500 Subject: Re: [RFC][PATCH 13/22] sched: add resource limits for -deadline tasks From: Peter Zijlstra To: Raistlin Cc: Ingo Molnar , Thomas Gleixner , Steven Rostedt , Chris Friesen , oleg@redhat.com, Frederic Weisbecker , Darren Hart , Johan Eker , "p.faure" , linux-kernel , Claudio Scordino , michael trimarchi , Fabio Checconi , Tommaso Cucinotta , Juri Lelli , Nicola Manica , Luca Abeni , Dhaval Giani , Harald Gustafsson , paulmck In-Reply-To: <1288334250.8661.154.camel@Palantir> References: <1288333128.8661.137.camel@Palantir> <1288334250.8661.154.camel@Palantir> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 11 Nov 2010 20:57:51 +0100 Message-ID: <1289505471.2084.191.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2010-10-29 at 08:37 +0200, Raistlin wrote: > Add resource limits for non-root tasks in using the SCHED_DEADLINE > policy, very similarly to what already exists for RT policies. > > In fact, this patch: > - adds the resource limit RLIMIT_DLDLINE, which is the minimum value > a user task can use as its own deadline; > - adds the resource limit RLIMIT_DLRTIME, which is the maximum value > a user task can use as it own runtime. > > Notice that to exploit these, a modified version of the ulimit > utility and a modified resource.h header file are needed. They > both will be available on the website of the project. We might also want to add an additional !SYS_CAP_ADMIN global bandwidth cap much like the existing sysctl bandwidth cap.