From: heiby_u@falkor.chi.il.us (Ron Heiby)
Subject: Re: 3.2G to 4.0D Benchmark Comparison
Date: 1998/06/19 [thread overview]
Message-ID: <358bb05d.14006607@149.174.211.108> (raw)
In-Reply-To: rdemwla1qz.fsf@iron.zuo.dec.com
-----BEGIN PGP SIGNED MESSAGE-----
Phil Hodges <hodges@decnet.enet.dec.com> wrote:
>I wonder if using poll(2) instead of select(2) would make a
>significant difference?
Under 3.2G, poll(2) was slightly slower in my tests, until we got upwards
of 32 socket connections. From there out, it was almost the same level of
performance as select(2). I have not repeated all of the poll(2) version
testing under 4.0D, but a "spot check" of the 1024 socket level shows a
throughput very close to the new (slightly faster) socket(2) throughput.
Even with the much slower thread throughput I'm seeing, the thread
implementation is still about an order of magnitude better than the
socket(2) or poll(2) implementation.
I suspect that in my test, with a large number of consecutively numbered
socket descriptors, one would naturally not see much difference between
select(2) and poll(2). I have not done the test, but I would expect that
checking fds 0, 1, 2, 1022, and 1023 would be faster with poll(2) than
with select(2), as the latter needs to look at each of the bits being
passed, to see if it needs to check that fd.
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3
Comment: My Keys: 0x571B55BD and 0x628ECED, available from keyservers
iQEVAwUBNYqypuukCaFXG1W9AQGNTQf/Z/ubiNEom9/rzAML2RFdpdXAw3psSzXj
rJ+xyme72ppXSzRWXZu3y7IfWBhyXG94x+5pf8c0SnR1cgVUGF23rbTIR5s7+Bxo
w0lU0L+HPnl7lzJApzdTJC6E7mvbXJSK3NPjNFyKhDcxco8y9NbGa8hX1RqWeLrO
QvU3Yv0J264PJhTxrklFhKq6XjwjAuiIB2soMc8jlAiHRE/Dx5HL5SUhReBu0n6l
WcZtAF+ULpia5v03o5iWMMDjmSU2Ki353xDoSDoj42EMvfTWhbLWLqtrr8yJmw5L
TU7sSIfbkH0oBN5EoDFGBMarVKbK5PEnTjbbWB8fhdcwnwbfq5uAPw==
=Cgei
-----END PGP SIGNATURE-----
--
Ron.
next prev parent reply other threads:[~1998-06-19 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-18 4:00 3.2G to 4.0D Benchmark Comparison Ron Heiby
1998-06-19 4:00 ` Phil Hodges
1998-06-19 4:00 ` Ron Heiby [this message]
1998-06-19 4:00 ` Jeff Denham
1998-06-22 4:00 ` Ron Heiby
1998-06-23 4:00 ` Jeff Denham
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox