From: Shaun Jackman <sjackman@gmail.com>
To: gdb@sources.redhat.com, Abatron Support <support@abatron.ch>,
Ultimate Solutions Support <support@ultsol.com>
Subject: Re: Loading code with an Abatron BDI2000
Date: Fri, 08 Jul 2005 18:52:00 -0000 [thread overview]
Message-ID: <7f45d93905070811522531eb0d@mail.gmail.com> (raw)
In-Reply-To: <7f45d939050708094342de60b@mail.gmail.com>
A little searching through GDB's manual turned up "set remote
memory-write-packet-size" and "set download-write-size". On my target
these values defaulted to 336 and 512 respectively. I found that
increasing them to 1025 and 8192 did improve performance somewhat. I
used 1025 because I found the TCP packet size sent by GDB was limited
to 1024 for some reason unknown to me (anyone else know?) and the "+"
acknowledgement was sent in a TCP packet all to its own, but still
counted against the memory-write-packet-size. How can I increase the
TCP packet size to 1460, the TCP MSS, to get more date bytes out of
each packet? Any other thoughts on how else I can improve the transfer
rate?
Cheers,
Shaun
set remote memory-write-packet-size 1025
set remote memory-write-packet-size fixed
set download-write-size 8192
For the curious, a typical transfer between gdb and the BDI2000 is as
follows. The left column is elapsed milliseconds since t0.
0 +
0 $X and 1024 bytes of data
1 ACK the +
3 ACK the $X
14 ACK window update
27 ACK window update
29 +
39 $OK
69 +
70 $X and 1024 bytes of data
... and so forth.
There's quite a gap (30 ms) between the BDI's $OK the gdb's +. Could
this be improved?
On 7/8/05, Shaun Jackman <sjackman@gmail.com> wrote:
> I'm using gdb 6.2.1 to debug an ARM7TDMI with an Abatron BDI2000, a
> device which speaks the gdb remote protocol natively over Ethernet.
> Loading code with gdb is a slower process than I had hoped.
...
prev parent reply other threads:[~2005-07-08 18:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 16:43 Shaun Jackman
2005-07-08 18:52 ` Shaun Jackman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f45d93905070811522531eb0d@mail.gmail.com \
--to=sjackman@gmail.com \
--cc=gdb@sources.redhat.com \
--cc=support@abatron.ch \
--cc=support@ultsol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox