This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linux Realtime Scheduling Option


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]