9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: presotto@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] network throughput measurements
Date: Fri,  8 Mar 2002 16:46:34 -0500	[thread overview]
Message-ID: <36317a1c639a29012001659155659336@plan9.bell-labs.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1316 bytes --]

>actually we were more interested in measuring the latency p9 imposes
>on transmission, i.e.  the time it takes for the first byte to start
>appearing on the network...

+

>	buf = mallocz(i, 1);
>	tbegin = nsec();
>	for(j = 0; j < 10000; j++)
>		write(fd, buf, i);
>	tend = nsec();

I'm not complaining, I like seeing numbers.  However, these two statements
don't jibe.

> at one point the receiver side was printing the total number of bytes
> received, which was in line with calculations, so no huge discrepancy
> there..

I'm actually interested in the number of bytes/packet seen on the receiver.
All you measured what the amount of time to queue the messages on the
sender, not the time to send them, the average time for each byte to make
the journey, or the time to get the first byte to the wire.  If all you
want to do to improve the numbers for plan 9, we can do it trivially by
just making sure we buffer all the 1 byte writes before sending anything
 out.  Then you're just measuring the time for 10000 1 byte writes which is
moderately quick.  However, I suspect that's not what you want to speed
up.  I suspect that the BSD stack is doing significantly better than we are
at ganging bytes/packet and hence causes fewer interrupts, runs up the IP
stack, system calls, etc.

[-- Attachment #2: Type: message/rfc822, Size: 1779 bytes --]

From: andrey mirtchovski <andrey@lanl.gov>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] network throughput measurements
Date: Fri, 8 Mar 2002 14:29:03 -0700
Message-ID: <20020308212840.DEFC61999B@mail.cse.psu.edu>

actually we were more interested in measuring the latency p9 imposes
on transmission, i.e.  the time it takes for the first byte to start
appearing on the network...

yes, this is not the best way to measure performance, but it was a
good exercise before porting netpipe natively to p9.  the results
seemed interesting enough to "publish" :)

at one point the receiver side was printing the total number of bytes
received, which was in line with calculations, so no huge discrepancy
there..

andrey

             reply	other threads:[~2002-03-08 21:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-08 21:46 presotto [this message]
2002-03-08 22:14 ` Ronald G Minnich
  -- strict thread matches above, loose matches on Subject: below --
2002-03-08 22:27 presotto
2002-03-08 22:19 andrey mirtchovski
2002-03-08 21:29 andrey mirtchovski
2002-03-08 21:14 presotto
2002-03-08 21:07 andrey mirtchovski

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=36317a1c639a29012001659155659336@plan9.bell-labs.com \
    --to=presotto@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).