Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 1997 06:03:58 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@nagual.ru, bde@zeta.org.au
Cc:        bde@freefall.freebsd.org, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sys@freefall.freebsd.org, michaelh@cet.co.jp
Subject:   Re: cvs commit:  src/sys/kern sys_generic.c
Message-ID:  <199702251903.GAA17199@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >> What prevents you from deciding
>> >> now?
>> 
>> No real-world experience.  I don't run any processes that need even 256
>> descriptors.
>
>I think any test like
>
>	for (;;)
>		select(4096, ...
>
>will reveal the picture. We testing allocation strategy, not select
>functionality.

You also have to open an fd near 4096.  Otherwise the malloced buffer
is not used.

This is not a real world test.  Applications often sleep in select().
If there are N applications that don't sleep in select(), then reusing
the same buffer N times is probably better than using N different buffers.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702251903.GAA17199>