Re: select timings



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



Relevant Pages

  • Re: [kjd-imc] New Spell Focus, Spell Specialization
    ... Cast spells of this type at +1 caster level. ... > may be taken multiple times, selecting a different school of magic, ... or energy or alignment descriptor each time. ... Would this stack with the various Domain Granted Abilities? ...
    (rec.games.frp.dnd)
  • Re: Select system call
    ... descriptor. ... There are two threads waiting for an event on a file ... Is it legitimate to use select multiple times on the same file ...
    (comp.unix.programmer)
  • Select system call
    ... descriptor. ... There are two threads waiting for an event on a file ... Is it legitimate to use select multiple times on the same file ...
    (comp.unix.programmer)
  • Re: Select system call
    ... I have a problem using select multiple times on the same file ... descriptor. ... There are two threads waiting for an event on a file ... Do you re-initialize your FDSETs before *every* call to select? ...
    (comp.unix.programmer)