Change select(2) to kevent(2) on script(1)...

Maxim Sobolev sobomax at
Mon Dec 22 20:58:14 UTC 2008

Norikatsu Shigemura wrote:
> Hi sobomax!
> On Mon, 22 Dec 2008 03:03:42 -0800
> Maxim Sobolev <sobomax at> wrote:
>> Roman Divacky wrote:
>>> I believe other OSes should be able to do the porting effort when they
>>> want to use FreeBSD software.
>>> if kqueue-in-script makes any improvement go for it.
>> I really doubt there would be any. It's just 2 descriptors, and if 
>> select(2) can't handle 2 descriptors efficiently them perhaps it is 
>> broken and has to be fixed instead.
> 	I think that performance improvement is significant(I don't
> 	think performance improved by my patch).  But my patch is the

And can you explain where that "significant improvement" comes from? Are 
you saying that tty layer / pseudo-terminal driver is somehow much more 
efficient with kqeue(2) compared to select(2)/poll(2)? There is 
something broken about it if so.

In any case without any numbers this discussion is pretty much pointless.


More information about the freebsd-current mailing list