Re: select timings
- From: Peter Jeremy <peterjeremy@xxxxxxxxxxxxxxxx>
- Date: Mon, 9 Jul 2007 12:14:08 +1000
On 2007-Jul-08 20:46:40 -0400, Diane Bruce <db@xxxxxx> wrote:
It is a rather naive test program, close all fd's except
for 0,1,2 of course, then open /dev/null multiple times, then do
a select() on each descriptor. ~db/selt.c
Thanks for the testing. Can you please feed the output through (eg)
src/tools/tools/ministat.
I will be trying some other select tests.
I suspect with a sparse fd_set, jeffr's results will be better than stock.
We'll see.
Having a very large number of selected FDs return ready is unrealistic
- I can't think of any real-world situation where this would occur. A
more realistic situation would look like a Poisson distribution with a
small lambda (probably 1). Writing a test suite for this is probably
significantly more effort than your selt.c
--
Peter Jeremy
Attachment:
pgpaDeCwwXiSj.pgp
Description: PGP signature
- Follow-Ups:
- Re: select timings
- From: Jeff Roberson
- Re: select timings
- References:
- select timings
- From: Diane Bruce
- select timings
- Prev by Date: select timings
- Next by Date: Re: select timings
- Previous by thread: select timings
- Next by thread: Re: select timings
- Index(es):
Relevant Pages
|
|