From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6872 invoked by alias); 21 Mar 2005 19:21:03 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6825 invoked from network); 21 Mar 2005 19:20:58 -0000 Received: from unknown (HELO ihemail1.lucent.com) (192.11.222.161) by sourceware.org with SMTP; 21 Mar 2005 19:20:58 -0000 Received: from nwsgpa.ih.lucent.com (h135-1-121-22.lucent.com [135.1.121.22]) by ihemail1.lucent.com (8.12.11/8.12.11) with ESMTP id j2LJKOkm023454; Mon, 21 Mar 2005 13:20:25 -0600 (CST) Received: from lucent.com by nwsgpa.ih.lucent.com (8.11.7p1+Sun/EMS-1.5 sol2) id j2LJKOs16452; Mon, 21 Mar 2005 13:20:24 -0600 (CST) Message-ID: <423F1E62.6020008@lucent.com> Date: Mon, 21 Mar 2005 19:21:00 -0000 From: David Steven Trollope User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sources.redhat.com Subject: Re: Linux Realtime Scheduling Option References: <412F87A4.nail3LU117EOV@mindspring.com> <20050105232657.GB27494@white> <01c4f3aa$Blat.v2.2.2$b4217d20@zahav.net.il> <20050106233136.GA29435@white> <4CE93165-C27F-4CF6-90B8-7632A7BD2672@apple.com> <20050107011211.GB29435@white> <41DDFF0D.5040205@netspace.net.au> <20050111193526.GA5699@white> <41E5E102.2010703@lucent.com> <423B01EC.9060509@lucent.com> <20050318181204.GA31713@nevyn.them.org> In-Reply-To: <20050318181204.GA31713@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00195.txt.bz2 Hi Daniel, Our application does change its own priority, but I was concerned with the priority of gdbserver/gdb. Which Linux tools are you referring to? I'll go take a look at them. In our environment gdb/gdbserver should always run realtime at a set priority. Help me understand why is it not a good idea to have gdb/gdbserver set its own priority based on an option in .gdbinit? Thanks much! Dave Daniel Jacobowitz wrote: >On Fri, Mar 18, 2005 at 10:29:32AM -0600, David Steven Trollope wrote: > > >>Hello! >> >>I'm working on a project that uses Linux 2.4 on a PowerPC processor with >>real time scheduling. >> >>One of the issues we've encountered is that when the application being >>debugged is running real time and gdb/gdbserver is not, scheduling >>problems occur. >> >>I'm wondering if its possible to have an option added to gdb and the >>.gdbinit file which specifies the realtime priority which gdb/gdbserver >>should run at. >> >>I searched the mailing list and do not find anything related to this in >>the past. >> >>Has anyone got experience in this area? Do patches already exist? >> >> > >This is not a good idea. There are existing Linux tools to change the >realtime priority of a process; why can't you use them to change the >priority of the debugger? You can even do this after starting the >inferior process if it isn't smart enough to reset its own priority. > > > -- Dave Trollope Tel/Fax: +1 630 713 9110 mailto:trollope@lucent.com http://nwswww.ih.lucent.com/~dtrollop/ http://www.geocities.com/SiliconValley/7499/