From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 18 00:08:22 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63B3916A400 for ; Sun, 18 Mar 2007 00:08:22 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E623513C46E for ; Sun, 18 Mar 2007 00:08:21 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HShlR-0005xB-8L for freebsd-emulation@freebsd.org; Sat, 17 Mar 2007 23:52:41 +0100 Received: from r5h168.net.upc.cz ([86.49.7.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Mar 2007 23:52:41 +0100 Received: from gamato by r5h168.net.upc.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Mar 2007 23:52:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: martinko Date: Sat, 17 Mar 2007 23:52:31 +0100 Lines: 41 Message-ID: References: <45C46416.3020406@melbpc.org.au> <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> <20070309102300.GA31784@stud.fit.vutbr.cz> <200703091218.39593.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: r5h168.net.upc.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.8) Gecko/20061111 SeaMonkey/1.0.6 In-Reply-To: <200703091218.39593.jkim@FreeBSD.org> Sender: news Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2007 00:08:22 -0000 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 ... "