Kevin B. Hendricks wrote:
> 
> A few words to clear this up.
> 
> > The kernel does support it.  The only problem is that the JVM is using
> >      select(2) when it should use poll(2).
> 
> No, this is not correct.  The 1.1.7 JDK for glibc uses poll and not select (I
> know because I rewrote it to use poll).  The problem is that glibc 2.0.7
> replaces calls to poll with calls to select since sub 2.0 kernels did not
> support poll.

There's also a potential performance implication here... I say potential
because I don't know the story for Linux. 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:

> If you are using a 2.2 or 2.1.xxx kernel, you might try rewriting that code in
> glibc to make it use poll (i.e. stop the conversion to select)

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

Nathan

Reply via email to