From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 17 12:25:07 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 B957E106566B for ; Mon, 17 Jan 2011 12:25:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 53A398FC0C for ; Mon, 17 Jan 2011 12:25:07 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B3D3.dip.t-dialin.net [87.179.179.211]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 79C44844012; Mon, 17 Jan 2011 13:25:02 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5C4732DB7; Mon, 17 Jan 2011 13:24:59 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p0HCOhor036864; Mon, 17 Jan 2011 13:24:43 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 17 Jan 2011 13:24:43 +0100 Message-ID: <20110117132443.12425wsnnktdbvk0@webmail.leidinger.net> Date: Mon, 17 Jan 2011 13:24:43 +0100 From: Alexander Leidinger To: Andrew Gallatin References: <4D3363A5.9000207@cs.duke.edu> In-Reply-To: <4D3363A5.9000207@cs.duke.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 79C44844012.A522B X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.274, required 6, autolearn=disabled, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1295871903.4948@loQlgM3k+sW58nRLUpsKnA X-EBL-Spam-Status: No Cc: freebsd-emulation@freebsd.org, rdivacky@freebsd.org 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 12:25:07 -0000 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)? > Last, is there any workaround to be able to use a linux > jvm? Perhaps by using a different linux base? What > would I be giving up? Normally it is a combination of linux_base and the sysctl compat.linux.osrelease. In our kernel there is a difference between setting osrelease to 2.4 or to 2.6. For the glibc in the linux_base there _may_ be a difference even in the 3rd number (depends upon how the glibc is compiled). This can enable/disable some features glibc tries to use. AFAIR linux_base-f10 needs 2.6.x, IIRC fc6 is the latest version you can use with 2.4.x. Bye, Alexander. -- Just because your doctor has a name for your condition doesn't mean he knows what it is. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137