9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: abhay puri <avp@one.net.au>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] listen qlen
Date: Mon, 19 Jun 2000 08:48:30 +0000	[thread overview]
Message-ID: <394CDB64.9B9328E6@one.net.au> (raw)
In-Reply-To: <200006161600.MAA28743@cse.psu.edu>

Many thanks to all who answered the 'how to make the kernel' question.
It works and should be useful for lots more than this qlen question!

I took some time measurements where the client code is basically "connect,
send "GET /", close"

03 iterations
    linux2.2.14-15mdk/apache1.3.9   33 pkts  0.058, 0.056, 0.057
    p9/httpd 0.055, 0.055, 0.055
20 iterations
     linux2.2.14-15mdk/apache1.3.9  220 pkts  0.283, 0.284, 0.278
     p9/httpd    5-7 connection refused messages
     p9/httpd qlen=512    201 pkts  0.513, 0.380, 0.384
50 iterations
    linux2.2.14-15mdk/apache1.3.9    3.291, 3.294, 3.283
    linux2.2.14-15mdk/apache1.3.9 qlen=511   550 pkts 0.636, 0.655, 0.635
    p9/httpd qlen=512    0.994, 0.991, 1.007

Notes:
- except where explicitly stated, the listen qlen is 10.
- all times are in seconds and are calculated using tcpdump running on the
client
- the three times are three consecutive measurements
- the linux and p9 measurements are both taken from the same box which is a
p133 pc, 48Mb.

Questions:
I guess i have a couple of questions:
- the fact that p9/httpd started refusing connections at 20 iterations
  while linux didn't surprised me. (that may be more a linux question?)
- the fact that p9/httpd took half again as long (50 iterations) as linux
surprised me
  (this maybe too artificial a test - with no bearing on how a server would
actually perform ).
  Nevertheless, is this sort of difference expected?
  or is it likely I've stuffed something in my configuration up?


  reply	other threads:[~2000-06-19  8:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-16 16:00 rsc
2000-06-19  8:48 ` abhay puri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-06-19 15:27 presotto
2000-06-16 15:47 rob pike
2000-06-14 13:58 presotto
2000-06-16  9:10 ` abhay puri
2000-06-14  8:52 abhay puri

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=394CDB64.9B9328E6@one.net.au \
    --to=avp@one.net.au \
    --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).