Hi,

> On some OSes, poll() has
>turned out to be a performance dog compared to select(). If anyone
>listening has the configuration and time to try Kevin's suggested test:

>it would be worthwhile to hack together a little benchmark to ascertain
>whether poll() will give us another reason to complain about Java
>performance.

Given that select must look through all of the fds+1 that you are selecting
over and poll does not, a true "poll" should work much much faster for
larger sets of fds.  This is the reason the kernel 2.X series is moving to
"poll" and away from select.  In fact, inside the 2.1.XXX kernel code (and
I assume 2.2*) select is actually implemented in a poll-like manner.

I do believe, poll is correct for the present and future of the JVN, select
is okay for small sets of fds, but a true poll should be faster and allow
for future expansion better.

I hope this helps.

Kevin


--------------------------------------------------------------------------
Kevin B. Hendricks
Associate Professor of Operations and Information Technology
School of Business, College of William & Mary, 307 Tyler Hall,
P.O.Box 8795, Williamsburg, VA  23187-8795
(757) 221-1702, [EMAIL PROTECTED]; http://business.tyler.wm.edu

Reply via email to