From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 16 21:31:25 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 B4A541065674 for ; Sun, 16 Jan 2011 21:31:25 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7436A8FC0A for ; Sun, 16 Jan 2011 21:31:25 +0000 (UTC) Received: from [172.31.193.10] (rrcs-98-101-145-84.midsouth.biz.rr.com [98.101.145.84]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id p0GLVOjr013247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 16 Jan 2011 16:31:24 -0500 (EST) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p0GLVOjr013247 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1295213484; bh=AA+16ZkR0WkV6VFD0GJVkLQNkV0VOK/uogFXa9UqJjw=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=gdHGe/GmphyIZiF+5bzoiWSAWwzLWbXXAz6XxsoTOe8kb03vVBX+kEDtxTam1T6Iu PQhb1cmLXP5NhP9zEJr2HKweiKcfXd6I6iZ3XkYlypebwdHRuXIcUHoRlW6KufY1x2 KtM+US82a6xCtft3+A656FEohfOXPJsHncjsxDpdCTu5QvBxYURgZiPSYJwR8J5J93 LH7eosWE0pZH4BgNlBH6AgnWb1kdM/4UD20Fp6AwMdK+behha54OMk+nMwqXaJtCEm bXV5hEf7it8hn5B3xyac2gH4Qlp9xXtXUuQSedWe7nc9Puk3Ios0x1tFfFD4TeNfMH FG5DINi1WexNA== Message-ID: <4D3363A5.9000207@cs.duke.edu> Date: Sun, 16 Jan 2011 16:31:17 -0500 From: Andrew Gallatin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Sun, 16 Jan 2011 21:31:25 -0000 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? 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? Thanks! Drew From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 17 11:06:58 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 01C0D106566B for ; Mon, 17 Jan 2011 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C9C8E8FC1B for ; Mon, 17 Jan 2011 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0HB6vGR048859 for ; Mon, 17 Jan 2011 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0HB6vIo048857 for freebsd-emulation@FreeBSD.org; Mon, 17 Jan 2011 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Jan 2011 11:06:57 GMT Message-Id: <201101171106.p0HB6vIo048857@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org 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 11:06:58 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o ports/151714 emulation print/acroread9 not usable due to lack of support in t a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o kern/149168 emulation [linux] [patch] Linux sendmsg / recvmsg / etc fixes fo o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted o kern/145024 emulation [linux] [panic] kernel crash by linux.ko module with n f kern/144763 emulation [linux] [panic] Kernel panic when start linux binaries o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest f ports/137332 emulation add caution messages to some adobe products s ports/136321 emulation x11-toolkits/linux-pango: please update linux based po o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails f kern/99068 emulation [linux] [patch] Linux emulator crashed by java, when c o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 28 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 17 11:49:10 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 91C2B106564A for ; Mon, 17 Jan 2011 11:49:10 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 2B0F18FC17 for ; Mon, 17 Jan 2011 11:49:09 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 26DA72; Mon, 17 Jan 2011 12:50:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 17 Jan 2011 12:49:09 +0100 From: Bernhard Froehlich To: Alex Anagnos In-Reply-To: <4FB8F3A5-D455-4F55-AC14-24ADC7A38DA2@gmail.com> References: <4FB8F3A5-D455-4F55-AC14-24ADC7A38DA2@gmail.com> Message-ID: <4f023e3075f9cf691bcce74ba41b453e@bluelife.at> X-Sender: decke@bluelife.at User-Agent: Roundcube Webmail/0.5-rc X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0202.4D342CB4.028B,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org Subject: Re: Debugging virtualbox "bus error: 10" ? 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 11:49:10 -0000 On Thu, 13 Jan 2011 19:17:22 -0600, Alex Anagnos wrote: > I have VirtualBox OSE 3.2.12 and FreeBSD 8.0-RELEASE. > > This situation is rather unique. > The system setup uses "likewise" to provide Windows Domain > auth/login, that is working fine. > > My problem is then when i log in using a domain account and try to > start VirtualBox (via command line: $VirtualBox). > All the output i get is > "Bus error: 10" > and for a small small fraction of a second the beginning of a GUI > window.. > > [snip] > > Trying other things i found that everything that does not use a GUI > looks to be working.. > I can start a VM using Headless, and vboxmanage works so long as i > don't try to "startvm". Why don't you try to start VBoxHeadless with gdb? And please recompile the virtualbox port with the DEBUG option enabled. With that vbox also generates a logfile which can be very helpful. -- Bernhard Fröhlich http://www.bluelife.at/ 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 From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 17 21:54:57 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 827511065674; Mon, 17 Jan 2011 21:54:57 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id 373B78FC13; Mon, 17 Jan 2011 21:54:57 +0000 (UTC) Received: from [172.31.193.10] (rrcs-98-101-145-84.midsouth.biz.rr.com [98.101.145.84]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id p0HLst9C017661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Jan 2011 16:54:56 -0500 (EST) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p0HLst9C017661 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1295301296; bh=/igup2YmuxbMSdvhWbc0yf0hCwtDrKBhO114olhpy9g=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=PNN+XlnREA0wfTid5pdMwjTXIGkWrJdvm0F01E6rE6+whG1eGriaxvQK4+BrZMnUR UpGyi3Gq8tYx3H2Ak2fyFjiX2RszbRhz/qkLVKINRR1v1GC0+J35pMYzTtVcIB1COo 22D8Rm6+99+dPaTHetbF9P4mhLyVhN5YwrR7P8mZxISy1UlvphbU0TyYlLjpklCcNi xpYcA+dPZ7eYDNMxR58df32ekvk0NkT/6b/e0jzwDYl+YyupbO6xO2JaGg3v+en6+s Yn+x42Wrz0zmIJTFGRNAIw1JQAX+mbS02tOE/g/fxFWiQn5fJNKZ1UznMj/BBspJUv SsmgFHYyuRQUw== Message-ID: <4D34BAA9.4020709@cs.duke.edu> Date: Mon, 17 Jan 2011 16:54:49 -0500 From: Andrew Gallatin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Alexander Leidinger References: <4D3363A5.9000207@cs.duke.edu> <20110117132443.12425wsnnktdbvk0@webmail.leidinger.net> In-Reply-To: <20110117132443.12425wsnnktdbvk0@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 21:54:57 -0000 On 01/17/11 07:24, Alexander Leidinger wrote: > Quoting Andrew Gallatin (from Sun, 16 Jan 2011 >> 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 I think I *may* have found a workaround. If I start java with the argument -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider I get much, much, much farther along. It would still be nice to have epoll support. :) Drew 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 From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 18 16:06:23 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 48AD8106566B; Tue, 18 Jan 2011 16:06:23 +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 EF2AF8FC19; Tue, 18 Jan 2011 16:06:22 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B6BF.dip.t-dialin.net [87.179.182.191]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id E2937844167; Tue, 18 Jan 2011 17:06:05 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 848562EA1; Tue, 18 Jan 2011 17:06:02 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p0IG5lmW017973; Tue, 18 Jan 2011 17:05:47 +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; Tue, 18 Jan 2011 17:05:46 +0100 Message-ID: <20110118170546.90956ot2dywm9og0@webmail.leidinger.net> Date: Tue, 18 Jan 2011 17:05:46 +0100 From: Alexander Leidinger To: Andrew Gallatin References: <4D3363A5.9000207@cs.duke.edu> <20110117132443.12425wsnnktdbvk0@webmail.leidinger.net> <4D34BAA9.4020709@cs.duke.edu> In-Reply-To: <4D34BAA9.4020709@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: E2937844167.A7708 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: 1295971566.76748@50QfannYKKTF+8Bgd005ag 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: Tue, 18 Jan 2011 16:06:23 -0000 Quoting Andrew Gallatin (from Mon, 17 Jan 2011 16:54:49 -0500): > On 01/17/11 07:24, Alexander Leidinger wrote: >> Quoting Andrew Gallatin (from Sun, 16 Jan 2011 > >>> 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 > > I think I *may* have found a workaround. If I start java with the > argument > -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider > I get much, much, much farther along. I added this as a workaround for such cases to the wiki page (http://wiki.freebsd.org/linux-kernel). > It would still be nice to have epoll support. :) I agree. Feel free to improve it so that it works after fork()ing. Bye, Alexander. -- Argue for your limitations, and sure enough, they're yours. -- Messiah's Handbook: Reminders for the Advanced Soul http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 20 13:23:50 2011 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF55C1065672 for ; Thu, 20 Jan 2011 13:23:50 +0000 (UTC) (envelope-from infofarmer@FreeBSD.org) Received: from heka.cenkes.org (heka.cenkes.org [IPv6:2002:d056:e3f1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9A85E8FC08 for ; Thu, 20 Jan 2011 13:23:50 +0000 (UTC) Received: from [192.168.1.27] (unknown [82.179.192.158]) (Authenticated sender: sat) by heka.cenkes.org (Postfix) with ESMTPSA id 0E4442EF28; Thu, 20 Jan 2011 16:23:48 +0300 (MSK) From: Andrew Pantyukhin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 20 Jan 2011 16:23:46 +0300 Message-Id: <269E4CF4-7C22-49CC-A263-D3F3E48F5E18@FreeBSD.org> To: emulation@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Cc: zvqops Subject: linux futex deadlock 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: Thu, 20 Jan 2011 13:23:50 -0000 Hello! I've stumbled upon an easily reproducible problem, seemingly somewhere = around the linux_futex.c code. When genpuid (from port audio/linux-genpuid) is run in several copies = simultaneously, all the processes but the very first one end up in = states futex or nanslp. If a make linux futex calls a noop (commenting = out a few body functions), the processes work fine in parallel. You can reproduce this way: - install linux-genpuid - get a few mp3's, say 1.mp3, 2.mp3, 3.mp3 - run: for i in 1 2 3;do genpuid e4230822bede81ef71cde723db743e27 -xml -data -print rmd=3D2 = $i.mp3 & done Works fine under a recent ubuntu. Anyone interested to look at this?= From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 09:01:12 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 04C6C1065674; Fri, 21 Jan 2011 09:01:12 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id B89668FC1D; Fri, 21 Jan 2011 09:01:11 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PgC7T-0005UP-Mo; Fri, 21 Jan 2011 09:13:19 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id p0L8Db9V001990; Fri, 21 Jan 2011 09:13:37 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id p0L8DbLO001989; Fri, 21 Jan 2011 09:13:37 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 21 Jan 2011 09:13:36 +0100 From: Matthias Apitz To: Beech Rintoul , freebsd-emulation@freebsd.org Message-ID: <20110121081336.GA1878@current.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: Subject: skype-2.0.0.72,1 && font size X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 09:01:12 -0000 Hello, I've changed my FreeBSD desktop to a laptop with a high resolution display (1920x1080) ... now the fonts used by Skype for the window of the contacts, of the config windows ... are too big, IMHO; the fonts in the search window, for example, are fine; see the screen here: http://www.unixarea.de/skype.jpg I don't see how I could change this, any hints? Thanks in advance matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 11:54:22 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 5A7AD106566B for ; Fri, 21 Jan 2011 11:54:22 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id C691F8FC24 for ; Fri, 21 Jan 2011 11:54:21 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p0LBs4h1012293; Fri, 21 Jan 2011 12:54:19 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p0LBs4NG012292; Fri, 21 Jan 2011 12:54:04 +0100 (CET) (envelope-from olli) Date: Fri, 21 Jan 2011 12:54:04 +0100 (CET) Message-Id: <201101211154.p0LBs4NG012292@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, Matthias Apitz In-Reply-To: <20110121081336.GA1878@current.Sisis.de> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Fri, 21 Jan 2011 12:54:19 +0100 (CET) Cc: Subject: Re: skype-2.0.0.72,1 && font size X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG, Matthias Apitz List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 11:54:22 -0000 Hello Matthias, Matthias Apitz wrote: > I've changed my FreeBSD desktop to a laptop with a high resolution > display (1920x1080) ... now the fonts used by Skype for the window of > the contacts, of the config windows ... are too big, IMHO; > the fonts in the search window, for example, are fine; > see the screen here: http://www.unixarea.de/skype.jpg > > I don't see how I could change this, any hints? Thanks in advance It might be related to the X server's DPI value. Is it configured correctly? When it is wrong, the fonts can be too big or too small. Some applications respect the DPI value, and some don't, so the problem is not obvious in all applications. You can view the current value with xdpyinfo: $ xdpyinfo | grep dots resolution: 100x100 dots per inch There are several ways to configure it. In your xorg.conf file, you can add a DisplaySize line to the Monitor section: Section "Monitor" ... DisplaySize 477 268 # values are in mm EndSection The X server will then calculate the DPI value for that display device. Another way is to run the X server with the -dpi option (e.g. -dpi 100). I'm using xdm(1) to start my X server, so I've added the -dpi option to the local display line in /usr/local/lib/X11/xdm/Xservers: :0 local /usr/local/bin/X :0 -config xorg.conf -a 1 -dpi 100 dpms If you use a different way to start the X server, then you need to add it to the appropriate configuration file. Hope that helps. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I invented Ctrl-Alt-Delete, but Bill Gates made it famous." -- David Bradley, original IBM PC design team From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 12:15:01 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 EE22E1065698 for ; Fri, 21 Jan 2011 12:15:01 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id AA8F08FC08 for ; Fri, 21 Jan 2011 12:15:01 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PgFtJ-0004qm-OX for freebsd-emulation@FreeBSD.ORG; Fri, 21 Jan 2011 13:14:58 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id p0LCEuCh002426 for ; Fri, 21 Jan 2011 13:14:57 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id p0LCEuto002425 for freebsd-emulation@FreeBSD.ORG; Fri, 21 Jan 2011 13:14:56 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 21 Jan 2011 13:14:56 +0100 From: Matthias Apitz To: freebsd-emulation@FreeBSD.ORG Message-ID: <20110121121455.GA2413@current.Sisis.de> References: <20110121081336.GA1878@current.Sisis.de> <201101211154.p0LBs4NG012292@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201101211154.p0LBs4NG012292@lurza.secnetix.de> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: Subject: Re: skype-2.0.0.72,1 && font size X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 12:15:02 -0000 El día Friday, January 21, 2011 a las 12:54:04PM +0100, Oliver Fromme escribió: > Hello Matthias, > > Matthias Apitz wrote: > > I've changed my FreeBSD desktop to a laptop with a high resolution > > display (1920x1080) ... now the fonts used by Skype for the window of > > the contacts, of the config windows ... are too big, IMHO; > > the fonts in the search window, for example, are fine; > > see the screen here: http://www.unixarea.de/skype.jpg > > > > I don't see how I could change this, any hints? Thanks in advance > > It might be related to the X server's DPI value. Is it > configured correctly? When it is wrong, the fonts can > be too big or too small. Some applications respect the > DPI value, and some don't, so the problem is not obvious > in all applications. > > You can view the current value with xdpyinfo: > > $ xdpyinfo | grep dots > resolution: 100x100 dots per inch It is a xorg.conf in a VMWare virtual machine and it shows: $ xdpyinfo | grep dots resolution: 230x173 dots per inch Sould it be adjusted to 100x100? Thanks for your hint matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 13:51:01 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 B8DFD106566C for ; Fri, 21 Jan 2011 13:51:01 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7238FC16 for ; Fri, 21 Jan 2011 13:51:00 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p0LDoijR017221; Fri, 21 Jan 2011 14:50:59 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p0LDoii3017220; Fri, 21 Jan 2011 14:50:44 +0100 (CET) (envelope-from olli) Date: Fri, 21 Jan 2011 14:50:44 +0100 (CET) Message-Id: <201101211350.p0LDoii3017220@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, Matthias Apitz In-Reply-To: <20110121121455.GA2413@current.Sisis.de> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Fri, 21 Jan 2011 14:50:59 +0100 (CET) Cc: Subject: Re: skype-2.0.0.72,1 && font size X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG, Matthias Apitz List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 13:51:01 -0000 Matthias Apitz wrote: > It is a xorg.conf in a VMWare virtual machine and it shows: > > $ xdpyinfo | grep dots > resolution: 230x173 dots per inch > > Sould it be adjusted to 100x100? Thanks for your hint Yes, unless your display is 21.2 x 15.9 cm (at 1920 x 1080 pixels), which seems unlikely. :-) When the dpi value is incorrect, i.e. too high, then some applications will think that your screen is much smaller than it really is, so they adjust the sizes of fonts and icons to be bigger. This is exactly the symptom that you are seeing. For a quick check, restart your X server with the option -dpi 100 (or modify your xorg.conf appropriately) and verify the font sizes in your applications. If it's better, then just keep it that way. 100 dpi should be correct for a screen that is ~ 22 inch. One or two inches more or less won't hurt either. If it's less than 20 inch, you can also try 110 or 120 dpi. If you're a perfectionist, you can calculate the exact dpi value for your screen: Divide the number of pixels per row (horizontally) by the width of the screen in inch (remember: inch = cm / 2.54). For example, my screen here (also 1920 x 1080) is 47.7 cm wide, which is 18.78 inch. Thus: 1920 / 18.78 = 102 dpi. I have rounded it to 100 dpi. You can also enter the width (in mm) directly in xorg.conf (see my previous reply in this thread), so the X server will calculate the dpi value itself. Personally I prefer the dpi value to be a round number, so I specify it on the X command line directly. In many (most?) cases, when using digital connections such as HDMI, the X server detects the correct display size automatically, so there is no need to modify the dpi value manually. However, since you're running inside a VMWare virtual machine, I guess that this autodetection doesn't work through the virtualization layer. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 14:08:10 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 5A760106567A for ; Fri, 21 Jan 2011 14:08:10 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 161098FC1C for ; Fri, 21 Jan 2011 14:08:09 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PgHep-0008KI-Va for freebsd-emulation@FreeBSD.ORG; Fri, 21 Jan 2011 15:08:08 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id p0LE85LA002985 for ; Fri, 21 Jan 2011 15:08:06 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id p0LE84aH002984 for freebsd-emulation@FreeBSD.ORG; Fri, 21 Jan 2011 15:08:04 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 21 Jan 2011 15:08:03 +0100 From: Matthias Apitz To: freebsd-emulation@FreeBSD.ORG Message-ID: <20110121140801.GA2941@current.Sisis.de> References: <20110121121455.GA2413@current.Sisis.de> <201101211350.p0LDoii3017220@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201101211350.p0LDoii3017220@lurza.secnetix.de> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: Subject: Re: skype-2.0.0.72,1 && font size X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 14:08:10 -0000 El día Friday, January 21, 2011 a las 02:50:44PM +0100, Oliver Fromme escribió: > > Sould it be adjusted to 100x100? Thanks for your hint > > Yes, unless your display is 21.2 x 15.9 cm (at 1920 x 1080 > pixels), which seems unlikely. :-) My laptop display is 33cm wide, i.e. 33/2.54 = 12.99 inch; 1920 / 13 gives 147.69 dpi; will try this later with -dpi 150; thanks again for your help matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 15:38:43 2011 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EC4E1065696; Fri, 21 Jan 2011 15:38:43 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D9D668FC1A; Fri, 21 Jan 2011 15:38:42 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0LFcgeG024145; Fri, 21 Jan 2011 15:38:42 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0LFcgMe024141; Fri, 21 Jan 2011 15:38:42 GMT (envelope-from remko) Date: Fri, 21 Jan 2011 15:38:42 GMT Message-Id: <201101211538.p0LFcgMe024141@freefall.freebsd.org> To: remko@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-emulation@FreeBSD.org From: remko@FreeBSD.org Cc: Subject: Re: kern/153990: [hyper-v]: Will not install into Hyper-V on Server 2008 R2 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: Fri, 21 Jan 2011 15:38:43 -0000 Old Synopsis: Will not install into Hyper-V on Server 2008 R2 New Synopsis: [hyper-v]: Will not install into Hyper-V on Server 2008 R2 Responsible-Changed-From-To: freebsd-i386->freebsd-emulation Responsible-Changed-By: remko Responsible-Changed-When: Fri Jan 21 15:38:09 UTC 2011 Responsible-Changed-Why: Reassign to emulation team, this is something virtual-ish http://www.freebsd.org/cgi/query-pr.cgi?pr=153990 From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 21 16:05:45 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 3C16B106566C for ; Fri, 21 Jan 2011 16:05:45 +0000 (UTC) (envelope-from tedm@mittelstaedt.us) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id DA0608FC1F for ; Fri, 21 Jan 2011 16:05:44 +0000 (UTC) Received: from [192.168.1.64] (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.14.3/8.14.3) with ESMTP id p0LG5hov079949 for ; Fri, 21 Jan 2011 08:05:44 -0800 (PST) (envelope-from tedm@mittelstaedt.us) Message-ID: <4D39AEDB.1070008@mittelstaedt.us> Date: Fri, 21 Jan 2011 08:05:47 -0800 From: Ted Mittelstaedt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <201101211350.p0LDoii3017220@lurza.secnetix.de> In-Reply-To: <201101211350.p0LDoii3017220@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: skype-2.0.0.72,1 && font size 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: Fri, 21 Jan 2011 16:05:45 -0000 On 1/21/2011 5:50 AM, Oliver Fromme wrote: > Matthias Apitz wrote: > > It is a xorg.conf in a VMWare virtual machine and it shows: > > > > $ xdpyinfo | grep dots > > resolution: 230x173 dots per inch > > > > Sould it be adjusted to 100x100? Thanks for your hint > > Yes, unless your display is 21.2 x 15.9 cm (at 1920 x 1080 > pixels), which seems unlikely. :-) > > When the dpi value is incorrect, i.e. too high, then some > applications will think that your screen is much smaller > than it really is, so they adjust the sizes of fonts and > icons to be bigger. This is exactly the symptom that you > are seeing. > > For a quick check, restart your X server with the option > -dpi 100 (or modify your xorg.conf appropriately) and > verify the font sizes in your applications. If it's > better, then just keep it that way. > > 100 dpi should be correct for a screen that is ~ 22 inch. > One or two inches more or less won't hurt either. If it's > less than 20 inch, you can also try 110 or 120 dpi. > > If you're a perfectionist, you can calculate the exact > dpi value for your screen: Divide the number of pixels > per row (horizontally) by the width of the screen in > inch (remember: inch = cm / 2.54). For example, my > screen here (also 1920 x 1080) is 47.7 cm wide, which > is 18.78 inch. Thus: 1920 / 18.78 = 102 dpi. I have > rounded it to 100 dpi. > > You can also enter the width (in mm) directly in xorg.conf > (see my previous reply in this thread), so the X server > will calculate the dpi value itself. Personally I prefer > the dpi value to be a round number, so I specify it on > the X command line directly. > > In many (most?) cases, when using digital connections such > as HDMI, the X server detects the correct display size > automatically, so there is no need to modify the dpi value > manually. However, since you're running inside a VMWare > virtual machine, I guess that this autodetection doesn't > work through the virtualization layer. > This problem is also common with many KVM switches as they are not 2-way on the video port and will not pass the DPMS info back to the video card from the monitor. The screen works fine if the monitor is plugged directly into the video port but not when it's on the KVM - unless you manually configure everything in the x config file. Ted > Best regards > Oliver > From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 22 08:48:25 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 8FC09106566B for ; Sat, 22 Jan 2011 08:48:25 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 4C03E8FC0C for ; Sat, 22 Jan 2011 08:48:25 +0000 (UTC) Received: from [93.104.71.123] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PgZ8x-0002eD-1k for freebsd-emulation@freebsd.org; Sat, 22 Jan 2011 09:48:23 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id p0M8mLXR003880 for ; Sat, 22 Jan 2011 09:48:21 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id p0M8mKgP003879 for freebsd-emulation@freebsd.org; Sat, 22 Jan 2011 09:48:20 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 22 Jan 2011 09:48:20 +0100 From: Matthias Apitz To: freebsd-emulation@freebsd.org Message-ID: <20110122084820.GA3845@tinyCurrent> References: <20110121121455.GA2413@current.Sisis.de> <201101211350.p0LDoii3017220@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201101211350.p0LDoii3017220@lurza.secnetix.de> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Originating-IP: 93.104.71.123 Subject: Re: skype-2.0.0.72,1 && font size X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2011 08:48:25 -0000 El día Friday, January 21, 2011 a las 02:50:44PM +0100, Oliver Fromme escribió: > When the dpi value is incorrect, i.e. too high, then some > applications will think that your screen is much smaller > than it really is, so they adjust the sizes of fonts and > icons to be bigger. This is exactly the symptom that you > are seeing. > > For a quick check, restart your X server with the option > -dpi 100 (or modify your xorg.conf appropriately) and > verify the font sizes in your applications. If it's > better, then just keep it that way. The -dpi flag did not work for me, but inserting the size into xorg.conf as 330 185 (mm) works fine and the fonts are now nice in Skype as they have been before lifting up this FreeBSD installation into a VM on the same laptop where it run before as host system. thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 22 09:14:48 2011 Return-Path: Delivered-To: emulation@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id F03961065670; Sat, 22 Jan 2011 09:14:48 +0000 (UTC) Date: Sat, 22 Jan 2011 09:14:48 +0000 From: Alexander Best To: Andrew Pantyukhin Message-ID: <20110122091448.GA60450@freebsd.org> References: <269E4CF4-7C22-49CC-A263-D3F3E48F5E18@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <269E4CF4-7C22-49CC-A263-D3F3E48F5E18@FreeBSD.org> Cc: emulation@freebsd.org, zvqops Subject: Re: linux futex deadlock 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: Sat, 22 Jan 2011 09:14:49 -0000 On Thu Jan 20 11, Andrew Pantyukhin wrote: > Hello! > > I've stumbled upon an easily reproducible problem, seemingly somewhere around the linux_futex.c code. > > When genpuid (from port audio/linux-genpuid) is run in several copies simultaneously, all the processes but the very first one end up in states futex or nanslp. If a make linux futex calls a noop (commenting out a few body functions), the processes work fine in parallel. > > You can reproduce this way: > - install linux-genpuid > - get a few mp3's, say 1.mp3, 2.mp3, 3.mp3 > - run: > for i in 1 2 3;do > genpuid e4230822bede81ef71cde723db743e27 -xml -data -print rmd=2 $i.mp3 & > done > > Works fine under a recent ubuntu. > > Anyone interested to look at this? i haven't tried reproducing your example case, but i've also experienced the same problem with other applications, such as adobe's flash. right now i have about 10 instances of npviewer.bin stuck in the futex state. apparently this issue has been known for several years now. unfortunetaly nobody is able to do something about it. rdivacky@ is pretty much the only person working on the linux code, but he doesn't have time atm. i think the netbsd folks have been dealing with linux emulation, too. you might want to go through their commit log and see, if they fixed any futex related problems. the fixes (if they exist) should be portable to freebsd without any major adjustments. cheers. alex -- a13x From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 22 14:04:56 2011 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CF58106564A; Sat, 22 Jan 2011 14:04:56 +0000 (UTC) (envelope-from andrew@dreamindustries.ru) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id A89248FC0C; Sat, 22 Jan 2011 14:04:55 +0000 (UTC) Received: by eyf6 with SMTP id 6so1335319eyf.13 for ; Sat, 22 Jan 2011 06:04:54 -0800 (PST) Received: by 10.14.48.6 with SMTP id u6mr2149631eeb.7.1295703440116; Sat, 22 Jan 2011 05:37:20 -0800 (PST) Received: from localhost ([82.179.192.158]) by mx.google.com with ESMTPS id t12sm2050660eeh.3.2011.01.22.05.37.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Jan 2011 05:37:18 -0800 (PST) Sender: Andrew Pantyukhin Date: Sat, 22 Jan 2011 16:37:14 +0300 From: Andrew Pantyukhin To: Alexander Best Message-ID: <20110122133714.GA1469@vocha.office.zvq.me> References: <269E4CF4-7C22-49CC-A263-D3F3E48F5E18@FreeBSD.org> <20110122091448.GA60450@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110122091448.GA60450@freebsd.org> X-OS: FreeBSD 8.1-PRERELEASE amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: emulation@freebsd.org, zvqops , kib@FreeBSD.org, dchagin@FreeBSD.org Subject: Re: linux futex deadlock 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: Sat, 22 Jan 2011 14:04:56 -0000 On Sat, Jan 22, 2011 at 09:14:48AM +0000, Alexander Best wrote: > On Thu Jan 20 11, Andrew Pantyukhin wrote: > > I've stumbled upon an easily reproducible problem, seemingly > > somewhere around the linux_futex.c code. > > i haven't tried reproducing your example case, but i've also experienced the > same problem with other applications, such as adobe's flash. right now i have > about 10 instances of npviewer.bin stuck in the futex state. > > apparently this issue has been known for several years now. unfortunetaly > nobody is able to do something about it. rdivacky@ is pretty much the only > person working on the linux code, but he doesn't have time atm. > > i think the netbsd folks have been dealing with linux emulation, too. you might > want to go through their commit log and see, if they fixed any futex related > problems. the fixes (if they exist) should be portable to freebsd without any > major adjustments. Okay, it looks like there's a fix for this in NetBSD: http://mail-index.netbsd.org/tech-kern/2008/06/06/msg001587.html http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/linux/common/linux_futex.c.diff?r1=1.14&r2=1.15&only_with_tag=MAIN However, Dmitry Chagin (cc'ed with kib, who reviewed the patch) has since reworked the futexes into something more fine-grained: http://svn.freebsd.org/viewvc/base/head/sys/compat/linux/linux_futex.c?r1=191269&r2=191719 So porting the fix, even if it's correct, is not perfectly straightforward. Dmitry, do you think you might have time to look at it? Please check this thread for an easy way to reproduce the problem.