From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 17 22:15:41 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE9BC1065670 for ; Mon, 17 Jan 2011 22:15:41 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 676208FC0A for ; Mon, 17 Jan 2011 22:15:41 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5E5609CB0DF; Mon, 17 Jan 2011 22:56:37 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by lev.vlakno.cz (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCtXtivnPESs; Mon, 17 Jan 2011 22:56:36 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C7CFC9CB173; Mon, 17 Jan 2011 22:56:36 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id p0HLuaZ1086979; Mon, 17 Jan 2011 22:56:36 +0100 (CET) (envelope-from rdivacky) Date: Mon, 17 Jan 2011 22:56:36 +0100 From: Roman Divacky To: Alexander Leidinger Message-ID: <20110117215636.GA86845@freebsd.org> References: <4D3363A5.9000207@cs.duke.edu> <20110117132443.12425wsnnktdbvk0@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110117132443.12425wsnnktdbvk0@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, Andrew Gallatin Subject: Re: epoll workaround for linux java? 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: Mon, 17 Jan 2011 22:15:42 -0000 On Mon, Jan 17, 2011 at 01:24:43PM +0100, Alexander Leidinger wrote: > Quoting Andrew Gallatin (from Sun, 16 Jan 2011 > 16:31:17 -0500): > > >Hi, > > > >I'm trying to run SageTV, which is a commercial, closed source > >linux media server on -current. It is a Java based application > >that uses "native" linux JNI libs for accessing video tuner > >cards, so unfortunately I must run the Linux JVM, and not > >a native JVM. > > > >I've installed the default linux_base-f10, and the > >linux-sun-jdk-1.6.0.22. > > > >When I start the application, it semi-works, but the > >clients cannot connect. Using kdump && linux-ktrace, > >I think I've narrowed the problem to: > > > > > > 9613 java CALL linux_epoll_create > > 9613 java RET linux_epoll_create -1 errno 78 Function not > > implemented > > 9613 java CALL gettimeofday(0x513c9ea0,0) > > 9613 java RET gettimeofday 0 > > 9613 java CALL gettimeofday(0x513c9eb4,0) > > 9613 java RET gettimeofday 0 > > 9613 java CALL write(0x4,0x513c7cb0,0x78) > > 9613 java GIO fd 4 wrote 120 bytes > > "Sun 1/16 12:05:57.648 [MiniUIServer@14b5f4a] MiniUI > >ServerSocket died from:java.io.IOException: Function not impleme\ > > nted" > > > > > >I've done some googling, and it appears that epoll support > >was worked on as a SOC project in 2007 by rdivacky. Eg: > >http://p4db.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/soc2007/rdivacky/linux_epoll/sys/compat/linux/linux_epoll.c > >Were there problems with this code? > > AFAIR it's not complete... Roman (CCed)? the epoll itself basically worked but it didnt work over fork, ie. it was useless I dont have time nor motivation to finish that :( noone else seems to have picked that work up, sorry