From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: pause after sending S-records to ROM68K monitor
Date: Fri, 10 Aug 2001 21:02:00 -0000 [thread overview]
Message-ID: <npr8ujutth.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <3B74789B.3080100@cygnus.com>
I see what you're looking for. That would certainly be better than
what I did --- under my system, if you had really high latency, you'd
have to lower the alleged baud rate some amount that varies based on
the size of your program... ugh...
I'll withdraw this patch for revisions.
Andrew Cagney <ac131313@cygnus.com> writes:
> I think you've got it half right The time taken is something like:
>
> size-of-pipe * amount-of-data + round-trip
>
> (I don't have my AST networks book handy to don't trust this).
> round-trip is loosely defined by remote_timeout. As you note the baud
> loosely defines the transfer-rate. This is if we assume 100% efficiency :-)
>
> In your case, it is probably more exactly defined as:
>
> ABOVE - (current-time - start-time)
>
> remember, if you are talking down a real serial port then the buffering
> will be zero and you only want to wait for round-trip time.
>
> Using this, i'd expect something like
>
> if (remote_throughput (??better-name??) >= 0)
> transfer_time = remote_throughput * sizeoftransfer;
> else
> transfer_time = something made up from the baud-rate
>
> timeout = transfer_time - (current_time - start_time) + remote_timeout
next prev parent reply other threads:[~2001-08-10 21:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-08 17:54 Jim Blandy
2001-08-08 23:16 ` Eli Zaretskii
2001-08-09 9:15 ` Jim Blandy
2001-08-09 10:39 ` Andrew Cagney
2001-08-10 14:41 ` Jim Blandy
2001-08-10 17:13 ` Andrew Cagney
2001-08-10 21:02 ` Jim Blandy [this message]
2001-08-10 21:14 ` Andrew Cagney
2001-08-10 10:45 ` Frank Ch. Eigler
2001-08-10 14:44 ` Jim Blandy
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=npr8ujutth.fsf@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.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