From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 20 09:46:40 2007 Return-Path: X-Original-To: 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 EF81216A400; Tue, 20 Mar 2007 09:46:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 78B8913C489; Tue, 20 Mar 2007 09:46:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FBC6.dip.t-dialin.net [84.165.251.198]) by redbull.bpaserver.net (Postfix) with ESMTP id 6D8B02E0A8; Tue, 20 Mar 2007 10:46:35 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 7F1B25B4817; Tue, 20 Mar 2007 10:46:32 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l2K9kOe9098845; Tue, 20 Mar 2007 10:46:24 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 20 Mar 2007 10:46:24 +0100 Message-ID: <20070320104624.bkyzs8llkws4ogk8@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 20 Mar 2007 10:46:24 +0100 From: Alexander Leidinger To: Divacky Roman References: <20070316120038.2iizia24mc4wcw8s@webmail.leidinger.net> <20070316122658.GA31977@stud.fit.vutbr.cz> <20070316164225.v74k3m97vuow00c0@webmail.leidinger.net> <20070316174812.GB64778@dan.emsphone.com> <20070319164907.GA6461@stud.fit.vutbr.cz> <20070319180618.aqgavlri1c8cc4gs@webmail.leidinger.net> <20070319183544.GA29670@stud.fit.vutbr.cz> In-Reply-To: <20070319183544.GA29670@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org, kib@freebsd.org, rdivacky@freebsd.org, jkim@freebsd.org Subject: Re: 2.6.16 for linuxulator & 7.0 release 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, 20 Mar 2007 09:46:41 -0000 Quoting Divacky Roman (from Mon, 19 Mar =20 2007 19:35:44 +0100): > On Mon, Mar 19, 2007 at 06:06:18PM +0100, Alexander Leidinger wrote: >> Quoting Divacky Roman (from Mon, 19 Mar >> 2007 17:49:07 +0100): >> >> >On Fri, Mar 16, 2007 at 12:48:12PM -0500, Dan Nelson wrote: >> >>In the last episode (Mar 16), Alexander Leidinger said: >> >>> Quoting Divacky Roman (from Fri, 16 Mar >> >>> 2007 13:26:58 +0100): >> >>> >> >>> >as java is regarded I think its not a big problem to patch java >> >>> >shell script to set emulation to 2.4 etc. but I agree that 2.6 is >> >>> >not ready for 7.0R >> >>> >> >>> This would require to run every java programs as root. Very impractic= al. >> >> >> >>Wouldn't setting LD_ASSUME_KERNEL=3D2.4.20 (or any 2.4.x release) >> >>suffice? >> > >> >no... we act differenly in the kernel depending on how >> >compat.linux.osrelease >> >is set... setting LD_ASSUME_KERNEL wont change a thing and it WILL >> >SCREW THINGS >> > >> >dont do this >> >> Even when we set it to .20 as he suggested instead to .2 as I >> suggested? With .20 we get the NPTL stuff and maybe not the epoll >> stuff in the jdk. > > I was talking about setting LD_ASSUME_KERNEL.. this DOES NOT work in =20 > our current > linuxulator and will BREAK things. > > the linux_use26() function works on the sysctl =20 > compat.linux.osrelease and doesnt care > about LD_ASSUME_KERNEL so kernel things its running 2.6 and userland =20 > thinks its running > 2.4 -> things must break. It depends on what is used. 2.6 in the kernel changes how some stuff =20 is handled. If LD_...=3D2.4.20 expect that the kernel behaves in those =20 areas like 2.6.16 and at the same times disallows the use of epoll() =20 and other stuff we don't want to be used, this would be an option. But =20 this depends upon how java determines how to use epoll() and upon the =20 expectations of glibc with LD_...=3D2.4.20. I didn't verified this but =20 it is easy to verify. A thought which just crossed my mind is: is an user able to panic the =20 kernel when 2.6.16 is in effect in the kernel and LD_... is set to =20 2.4.x and vice versa? Bye, Alexander. --=20 La Brea Tar Pits As seen on the tar channel http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137