Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262274AbVAZLCf (ORCPT ); Wed, 26 Jan 2005 06:02:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262275AbVAZLCf (ORCPT ); Wed, 26 Jan 2005 06:02:35 -0500 Received: from mx2.elte.hu ([157.181.151.9]:32651 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S262274AbVAZLCY (ORCPT ); Wed, 26 Jan 2005 06:02:24 -0500 Date: Wed, 26 Jan 2005 12:02:02 +0100 From: Ingo Molnar To: "Jack O'Quin" Cc: Paul Davis , Con Kolivas , linux , rlrevell@joe-job.com, CK Kernel , utz , Andrew Morton , alexn@dsv.su.se, Rui Nuno Capela , Chris Wright , Arjan van de Ven , Nick Piggin Subject: Re: [patch, 2.6.11-rc2] sched: RLIMIT_RT_CPU feature, -D7 Message-ID: <20050126110202.GA17983@elte.hu> References: <20050122165458.GA14426@elte.hu> <87hdl940ph.fsf@sulphur.joq.us> <20050124085902.GA8059@elte.hu> <20050124125814.GA31471@elte.hu> <87k6q2umla.fsf@sulphur.joq.us> <20050125083724.GA4812@elte.hu> <87oefdfaxp.fsf@sulphur.joq.us> <20050125214900.GA9421@elte.hu> <87sm4osrix.fsf@sulphur.joq.us> <20050126072712.GA1821@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050126072712.GA1821@elte.hu> 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: 644 Lines: 23 i've uploaded a simple utility to set the RT_CPU rlimit, called execrtlim: http://redhat.com/~mingo/rt-limit-patches/ execrtlim can be used to test the rlimit, e.g.: ./execrtlim 10 10 /bin/bash will spawn a new shell with RLIMIT_RT_CPU curr/max set to 10%/10%. on older kernels the utility prints: $ ./execrtlim 10 10 /bin/bash execrtlim: kernel does not support RLIMIT_RT_CPU. 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/