From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f6fab0461e859669 X-Google-Attributes: gidfee84,public From: heiby_u@falkor.chi.il.us (Ron Heiby) Subject: Re: 3.2G to 4.0D Benchmark Comparison Date: 1998/06/19 Message-ID: <358bb05d.14006607@149.174.211.108>#1/1 X-Deja-AN: 364283057 Content-Transfer-Encoding: 7bit References: <3589219f.4921490@149.174.211.108> Content-Type: text/plain; charset=us-ascii Organization: Strategis Consulting Inc. MIME-Version: 1.0 Newsgroups: comp.unix.osf.osf1 -----BEGIN PGP SIGNED MESSAGE----- Phil Hodges 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.