Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262050AbVBKJMA (ORCPT ); Fri, 11 Feb 2005 04:12:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262082AbVBKJL7 (ORCPT ); Fri, 11 Feb 2005 04:11:59 -0500 Received: from mx2.elte.hu ([157.181.151.9]:37255 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S262050AbVBKJFt (ORCPT ); Fri, 11 Feb 2005 04:05:49 -0500 Date: Fri, 11 Feb 2005 10:04:19 +0100 From: Ingo Molnar To: Matt Mackall Cc: Paul Davis , Peter Williams , Nick Piggin , Chris Wright , "Jack O'Quin" , Andrew Morton , Christoph Hellwig , linux-kernel@vger.kernel.org, Con Kolivas , rlrevell@joe-job.com Subject: Re: 2.6.11-rc3-mm2 Message-ID: <20050211090419.GD3980@elte.hu> References: <420C25D6.6090807@bigpond.net.au> <200502110341.j1B3fS8o017685@localhost.localdomain> <20050211065753.GE15058@waste.org> <20050211075417.GA2287@elte.hu> <20050211082536.GF15058@waste.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211082536.GF15058@waste.org> User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 25 * Matt Mackall wrote: > So the comparison boils down to putting a magic gid in a sysfs > file/module parameter or setting an rlimit with standard tools (PAM, > etc). I'm really boggled that anyone could prefer the former, > especially since we had almost this exact debate over what became the > mlock rlimit! the big difference to mlock is that for mlock there _is_ a _limit_. For RT scheduling the priority is _NOT_ a _limit_. Okay? So you give the false pretense of this being some kind of resource 'limit', while in fact allowing SCHED_FIFO prio 1 alone enables unprivileged users to lock up the system. so i could agree with RLIMIT_NICE (which _is_ a limit), but RLIMIT_RTPRIO sends the wrong message. The proper rlimit would be RLIMIT_RT_CPU (the patch i did). Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/