* Re: more on gdb server
[not found] <5mitgq6ug4.fsf@orac.redback.com>
@ 2001-07-18 12:41 ` Quality Quorum
2001-07-18 12:49 ` Daniel Jacobowitz
0 siblings, 1 reply; 9+ messages in thread
From: Quality Quorum @ 2001-07-18 12:41 UTC (permalink / raw)
To: J.T. Conklin; +Cc: Andrew Cagney, Stan Shebs, gdb
On 18 Jul 2001, J.T. Conklin wrote:
> > > I know HP were once playing with ideas that would have eliminated any
> > > copying because they were finding memory read/write performance using
> > > ptrace (or what ever) lacking.
> >
> > I would suppose they had something truly unusual - debuggin is going with
> > the pace of human reaction to debugging events and I can hardly imagine
> > that network performance over local loop interface would be a factor here.
>
> Remember that GDB may be issuing many low level commands for each high
> level (CLI) command. For example, a single step or next command may
> issue several step instruction, fetch registers, and store registers
> commands. On some large programs, some interactive commands are
> beyond the interactive threshold (something like .3 seconds? I can't
> remember the commonly quoted figure), this additional overhead would
> only make it worse.
>
> Also note that oftentimes it's not a human driving the debugging
> session, but user defined functions that grovel through data
> structures, call inferior functions, etc.
I still have hard time to beleive that there is an issue here.
> --jtc
Thanks,
Aleksey
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: more on gdb server
2001-07-18 12:41 ` more on gdb server Quality Quorum
@ 2001-07-18 12:49 ` Daniel Jacobowitz
2001-07-18 13:53 ` Quality Quorum
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Jacobowitz @ 2001-07-18 12:49 UTC (permalink / raw)
To: Quality Quorum; +Cc: gdb
On Wed, Jul 18, 2001 at 03:40:57PM -0400, Quality Quorum wrote:
> On 18 Jul 2001, J.T. Conklin wrote:
>
> > > > I know HP were once playing with ideas that would have eliminated any
> > > > copying because they were finding memory read/write performance using
> > > > ptrace (or what ever) lacking.
> > >
> > > I would suppose they had something truly unusual - debuggin is going with
> > > the pace of human reaction to debugging events and I can hardly imagine
> > > that network performance over local loop interface would be a factor here.
> >
> > Remember that GDB may be issuing many low level commands for each high
> > level (CLI) command. For example, a single step or next command may
> > issue several step instruction, fetch registers, and store registers
> > commands. On some large programs, some interactive commands are
> > beyond the interactive threshold (something like .3 seconds? I can't
> > remember the commonly quoted figure), this additional overhead would
> > only make it worse.
> >
> > Also note that oftentimes it's not a human driving the debugging
> > session, but user defined functions that grovel through data
> > structures, call inferior functions, etc.
>
> I still have hard time to beleive that there is an issue here.
Consider software watchpoints, already almost uselessly slow. Consider
single-stepping over a single line of code consisting of forty or four
hundred machine instructions. There can be a significant overhead.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: more on gdb server
2001-07-18 12:49 ` Daniel Jacobowitz
@ 2001-07-18 13:53 ` Quality Quorum
2001-07-18 14:05 ` Andrew Cagney
0 siblings, 1 reply; 9+ messages in thread
From: Quality Quorum @ 2001-07-18 13:53 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
On Wed, 18 Jul 2001, Daniel Jacobowitz wrote:
> On Wed, Jul 18, 2001 at 03:40:57PM -0400, Quality Quorum wrote:
> > On 18 Jul 2001, J.T. Conklin wrote:
> >
> > > > > I know HP were once playing with ideas that would have eliminated any
> > > > > copying because they were finding memory read/write performance using
> > > > > ptrace (or what ever) lacking.
> > > >
> > > > I would suppose they had something truly unusual - debuggin is going with
> > > > the pace of human reaction to debugging events and I can hardly imagine
> > > > that network performance over local loop interface would be a factor here.
> > >
> > > Remember that GDB may be issuing many low level commands for each high
> > > level (CLI) command. For example, a single step or next command may
> > > issue several step instruction, fetch registers, and store registers
> > > commands. On some large programs, some interactive commands are
> > > beyond the interactive threshold (something like .3 seconds? I can't
> > > remember the commonly quoted figure), this additional overhead would
> > > only make it worse.
> > >
> > > Also note that oftentimes it's not a human driving the debugging
> > > session, but user defined functions that grovel through data
> > > structures, call inferior functions, etc.
> >
> > I still have hard time to beleive that there is an issue here.
>
> Consider software watchpoints, already almost uselessly slow. Consider
> single-stepping over a single line of code consisting of forty or four
> hundred machine instructions. There can be a significant overhead.
I would say that it is a stong case to make protocol a tiny little bit
more rich :).
> Daniel Jacobowitz Carnegie Mellon University
Thanks,
Aleksey
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: more on gdb server
2001-07-18 13:53 ` Quality Quorum
@ 2001-07-18 14:05 ` Andrew Cagney
0 siblings, 0 replies; 9+ messages in thread
From: Andrew Cagney @ 2001-07-18 14:05 UTC (permalink / raw)
To: Quality Quorum; +Cc: Daniel Jacobowitz, gdb
> Consider software watchpoints, already almost uselessly slow. Consider
>> single-stepping over a single line of code consisting of forty or four
>> hundred machine instructions. There can be a significant overhead.
>
>
> I would say that it is a stong case to make protocol a tiny little bit
> more rich :).
Step out of range already does this for this case.
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <3B55A2E7.9040304@cygnus.com>]
* Re: more on gdb server
[not found] <3B55A2E7.9040304@cygnus.com>
@ 2001-07-18 9:34 ` Quality Quorum
0 siblings, 0 replies; 9+ messages in thread
From: Quality Quorum @ 2001-07-18 9:34 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Stan Shebs, gdb
> I know HP were once playing with ideas that would have eliminated any
> copying because they were finding memory read/write performance using
> ptrace (or what ever) lacking.
I would suppose they had something truly unusual - debuggin is going with
the pace of human reaction to debugging events and I can hardly imagine
that network performance over local loop interface would be a factor here.
>
> enjoy,
> Andrew
Thanks,
Aleksey
^ permalink raw reply [flat|nested] 9+ messages in thread
* more on gdb server
@ 2001-07-17 11:57 Quality Quorum
2001-07-18 6:24 ` Stan Shebs
0 siblings, 1 reply; 9+ messages in thread
From: Quality Quorum @ 2001-07-17 11:57 UTC (permalink / raw)
To: gdb
Hi,
I am not sure I am right about it, but it seems quite a neat idea to use
gdbserver as a primary interface even for a local debugging. It is cheap
resource wise and will provide for a neat separation of debugger per se
and (target dependable) target control code.
Thanks,
Aleksey
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: more on gdb server
2001-07-17 11:57 Quality Quorum
@ 2001-07-18 6:24 ` Stan Shebs
2001-07-18 6:52 ` Quality Quorum
2001-07-18 9:41 ` Daniel Jacobowitz
0 siblings, 2 replies; 9+ messages in thread
From: Stan Shebs @ 2001-07-18 6:24 UTC (permalink / raw)
To: Quality Quorum; +Cc: gdb
On Tuesday, July 17, 2001, at 11:57 AM, Quality Quorum wrote:
> Hi,
>
> I am not sure I am right about it, but it seems quite a neat idea to use
> gdbserver as a primary interface even for a local debugging. It is cheap
> resource wise and will provide for a neat separation of debugger per se
> and (target dependable) target control code.
I'm not convinced that the overhead is negligible. You're
inserting an additional program and network stack trip in one
of the two known time-critical parts of GDB. I think it should
be *possible* to use gdbserver all the time, but I'd want to see
encouraging performance numbers before advocating that we commit
to using it. (Having gdbserver functional on all native configs
is kind of a prerequisite too. :-) )
Stan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: more on gdb server
2001-07-18 6:24 ` Stan Shebs
@ 2001-07-18 6:52 ` Quality Quorum
2001-07-18 9:41 ` Daniel Jacobowitz
1 sibling, 0 replies; 9+ messages in thread
From: Quality Quorum @ 2001-07-18 6:52 UTC (permalink / raw)
To: Stan Shebs; +Cc: gdb
On Tue, 17 Jul 2001, Stan Shebs wrote:
> On Tuesday, July 17, 2001, at 11:57 AM, Quality Quorum wrote:
>
> > Hi,
> >
> > I am not sure I am right about it, but it seems quite a neat idea to use
> > gdbserver as a primary interface even for a local debugging. It is cheap
> > resource wise and will provide for a neat separation of debugger per se
> > and (target dependable) target control code.
>
> I'm not convinced that the overhead is negligible. You're
> inserting an additional program and network stack trip in one
> of the two known time-critical parts of GDB.
We can run it over UNIX sockets if performance is going to be an issue,
however, I strongly doubt it - we are running our GUI this way and
performance is not so bad.
> I think it should
> be *possible* to use gdbserver all the time, but I'd want to see
> encouraging performance numbers before advocating that we commit
> to using it. (Having gdbserver functional on all native configs
> is kind of a prerequisite too. :-) )
As I told I am not sure about it and there is work involved, however,
it would make for a much cleaner design.
>
> Stan
>
Thanks,
Aleksey
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: more on gdb server
2001-07-18 6:24 ` Stan Shebs
2001-07-18 6:52 ` Quality Quorum
@ 2001-07-18 9:41 ` Daniel Jacobowitz
1 sibling, 0 replies; 9+ messages in thread
From: Daniel Jacobowitz @ 2001-07-18 9:41 UTC (permalink / raw)
To: gdb
On Tue, Jul 17, 2001 at 05:25:08PM -0700, Stan Shebs wrote:
> On Tuesday, July 17, 2001, at 11:57 AM, Quality Quorum wrote:
>
> > Hi,
> >
> > I am not sure I am right about it, but it seems quite a neat idea to use
> > gdbserver as a primary interface even for a local debugging. It is cheap
> > resource wise and will provide for a neat separation of debugger per se
> > and (target dependable) target control code.
>
> I'm not convinced that the overhead is negligible. You're
> inserting an additional program and network stack trip in one
> of the two known time-critical parts of GDB. I think it should
> be *possible* to use gdbserver all the time, but I'd want to see
> encouraging performance numbers before advocating that we commit
> to using it. (Having gdbserver functional on all native configs
> is kind of a prerequisite too. :-) )
I'd be more interested in making it possible to run the testsuite using
a native gdbserver; unless someone else does (or is it already possible
and just not well-documented?) I'll look in to this.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-07-18 14:05 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <5mitgq6ug4.fsf@orac.redback.com>
2001-07-18 12:41 ` more on gdb server Quality Quorum
2001-07-18 12:49 ` Daniel Jacobowitz
2001-07-18 13:53 ` Quality Quorum
2001-07-18 14:05 ` Andrew Cagney
[not found] <3B55A2E7.9040304@cygnus.com>
2001-07-18 9:34 ` Quality Quorum
2001-07-17 11:57 Quality Quorum
2001-07-18 6:24 ` Stan Shebs
2001-07-18 6:52 ` Quality Quorum
2001-07-18 9:41 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox