public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Re: Ctrl-C interrupt problem.
@ 2000-11-20 16:42 Fabrice Gautier
  0 siblings, 0 replies; 10+ messages in thread
From: Fabrice Gautier @ 2000-11-20 16:42 UTC (permalink / raw)
  To: 'Mark Salter'; +Cc: ecos-discuss

Hi,

Well in fact download speed seems to be fine, i just forgot to set
download-write-size to a good value (i.e.: 0)

But there is still one thing which is slower, that's the O packets. In a
loop with diag_printf's it's very slow, like 1s between each line is
printed.

Thanks
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

> -----Original Message-----
> From: Fabrice Gautier [ mailto:Fabrice_Gautier@sdesigns.com ]
> Sent: Friday, November 17, 2000 12:21 PM
> To: 'Mark Salter'
> Cc: ecos-discuss@sourceware.cygnus.com
> Subject: RE: [ECOS] Re: Ctrl-C interrupt problem.
> 
> 
> > -----Original Message-----
> > From: Mark Salter [ mailto:msalter@redhat.com ]
> > Sent: Friday, November 17, 2000 6:22 AM
> > To: Fabrice_Gautier@sdesigns.com
> > Cc: ecos-discuss@sourceware.cygnus.com
> > Subject: Re: [ECOS] Re: Ctrl-C interrupt problem.
> > 
> > 
> > I'm not aware of such a gdb change, but I haven't been 
> > watching gdb development
> > that closely. I cannot believe that my patch alone would slow 
> > you down as the
> > flush is only done when stepping, continuing, or killing.
> 
> Yes i don't believe it either, it's why I think of some 
> modification in gdb.
> 
> Or may be I badly applied your patch. 
> I'll check this and keep you informed.
> 
> Regards,
> 
> -- 
> Fabrice Gautier
> fabrice_gautier@sdesigns.com 	
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [ECOS] Re: Ctrl-C interrupt problem.
@ 2000-11-17 12:21 Fabrice Gautier
  0 siblings, 0 replies; 10+ messages in thread
From: Fabrice Gautier @ 2000-11-17 12:21 UTC (permalink / raw)
  To: 'Mark Salter'; +Cc: ecos-discuss

> -----Original Message-----
> From: Mark Salter [ mailto:msalter@redhat.com ]
> Sent: Friday, November 17, 2000 6:22 AM
> To: Fabrice_Gautier@sdesigns.com
> Cc: ecos-discuss@sourceware.cygnus.com
> Subject: Re: [ECOS] Re: Ctrl-C interrupt problem.
> 
> 
> I'm not aware of such a gdb change, but I haven't been 
> watching gdb development
> that closely. I cannot believe that my patch alone would slow 
> you down as the
> flush is only done when stepping, continuing, or killing.

Yes i don't believe it either, it's why I think of some modification in gdb.

Or may be I badly applied your patch. 
I'll check this and keep you informed.

Regards,

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 	

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [ECOS] Re: Ctrl-C interrupt problem.
@ 2000-11-16 19:07 Fabrice Gautier
  2000-11-17  6:58 ` Mark Salter
  0 siblings, 1 reply; 10+ messages in thread
From: Fabrice Gautier @ 2000-11-16 19:07 UTC (permalink / raw)
  To: 'Mark Salter'; +Cc: ecos-discuss

It's much better but it's still 5 times slower than before...
	
One strange thing is that i cna't exceed 511 bytes/write where before i
could go up to about 1500. 

I can't see why download speed would suffer from your patch, the only reason
I see is some change in GDB beteween 5.0 and cvs. Do you know if there was
some change ? Some limitation for the 511 bytes/write?

Thanks
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 



^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [ECOS] Re: Ctrl-C interrupt problem.
@ 2000-11-16 12:17 Fabrice Gautier
  2000-11-16 17:40 ` Mark Salter
  0 siblings, 1 reply; 10+ messages in thread
From: Fabrice Gautier @ 2000-11-16 12:17 UTC (permalink / raw)
  To: 'Mark Salter'; +Cc: gdb, ecos-discuss

> -----Original Message-----
> From: Mark Salter [ mailto:msalter@redhat.com ]
> Subject: [ECOS] Re: Ctrl-C interrupt problem.
> 

> Yes, it appears that redboot only flushes the output stream when
> it sees the end of a packet. This causes the problem you see.
> 
> Look at .../redboot/current/src/net/net_io.c:net_io_putc().
> 
> A quick workaround would be to also flush if a '+' is seen. This
> has a downside as it may severely impact download speeds, but at
> least it is functionally correct. YMMV.

You're right, this is slow as hell....

> This needs to be fixed with a flush of the output stream prior
> to continuing or stepping the target. Its not clear to me right
> now how this can be done.

I think the logical way should be to remove the ACK thing from the GDB
protocol when the transport protocol is reliable and already have an ACK
thing as TCP.

However that would not be a minor change.

Another way would be to add a flush function in the interface functions. As
a new function entry like read or write, or as an command entry for the ctrl
function.

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [ECOS] RE: Ctrl-C interrupt problem.
@ 2000-11-15 20:46 Fabrice Gautier
  2000-11-15 23:10 ` [ECOS] " Fernando Nasser
  2000-11-16  5:24 ` Mark Salter
  0 siblings, 2 replies; 10+ messages in thread
From: Fabrice Gautier @ 2000-11-15 20:46 UTC (permalink / raw)
  To: gdb; +Cc: Ecos-List (E-mail)

[eCos and RedBoot guys, I think this may concern you 
 its about a ctrl-C problem which only happen when debugging via ethernet.
 full story in the gdb list archives ]

I Got it! 
Well, i hope....

And it make sens why it only happens with TCP...

The problem is that when gdb send the continue packet to the target, it wait
for the target to send the '+' Ack. During this time the SIGINT handler is
not set.

My guess is that RedBoot intedn to send it BUT (tata) the ethernet driver
just wait to have a full packet before really sending! So this happen when a
O packet is sent.

So i guess the only thing needed in RedBoot is to add a "flush" somewhere.
I'm not sure at what level, but i'll look at it tomorrow if nobody does it
before.

Thanks

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-11-20 16:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-20 16:42 [ECOS] Re: Ctrl-C interrupt problem Fabrice Gautier
  -- strict thread matches above, loose matches on Subject: below --
2000-11-17 12:21 Fabrice Gautier
2000-11-16 19:07 Fabrice Gautier
2000-11-17  6:58 ` Mark Salter
2000-11-16 12:17 Fabrice Gautier
2000-11-16 17:40 ` Mark Salter
2000-11-15 20:46 [ECOS] " Fabrice Gautier
2000-11-15 23:10 ` [ECOS] " Fernando Nasser
2000-11-16  5:24 ` Mark Salter
2000-11-16  5:48   ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).