Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2007 23:52:31 +0100
From:      martinko <gamato@users.sf.net>
To:        freebsd-emulation@freebsd.org
Subject:   Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem
Message-ID:  <ethrff$man$1@sea.gmane.org>
In-Reply-To: <200703091218.39593.jkim@FreeBSD.org>
References:  <45C46416.3020406@melbpc.org.au>	<20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net>	<20070309102300.GA31784@stud.fit.vutbr.cz> <200703091218.39593.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jung-uk Kim wrote:
> On Friday 09 March 2007 05:23 am, Divacky Roman wrote:
>>>> 3. Running ftpserver (java application) displays a GUI window
>>>> but terminates abruptly when the server is started (syscall
>>>> epoll_create not implemented).
>>> epoll* is not implemented. So this is expected (and gives more
>>> priority to epoll).
>> I dont understand why it should use epoll only with 2.6. Epoll has
>> been around for some 5 years now...
> 
> I guess Sun didn't think so.  Check out:
> 
> http://java.sun.com/javase/6/docs/technotes/guides/io/enhancements.html#6
> 
> 'A new java.nio.channels.SelectorProvider implementation that is based 
> on the Linux epoll event notification facility is included. The epoll 
> facility is available in the Linux 2.6, and newer, kernels. The new 
> epoll-based SelectorProvider  implementation is more scalable than 
> the traditional poll-based SelectorProvider implementation when there 
> are thousands of SelectableChannels registered with a Selector. The 
> new SelectorProvider implementation will be used by default when the 
> 2.6 kernel is detected. The poll-based SelectorProvider will be used 
> when a pre-2.6 kernel is detected.'
> 
> BTW, it was backported to 1.5 and available from Update 10:
> 
> http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_10
> 
> So, you will notice the same problem from 1.5.0_10, which is already 
> in ports tree for almost three months.
> 

just a note:

"The epoll-based implementation of SelectorProvider is not selected by
default. To select it, specify a property value from the command line as
follows:

java
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider
... "




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ethrff$man$1>