From owner-freebsd-java@FreeBSD.ORG Tue Dec 16 17:38:26 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 618191065672 for ; Tue, 16 Dec 2008 17:38:26 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from 24.mail-out.ovh.net (24.mail-out.ovh.net [91.121.29.215]) by mx1.freebsd.org (Postfix) with SMTP id C87428FC1E for ; Tue, 16 Dec 2008 17:38:25 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: (qmail 11174 invoked by uid 503); 16 Dec 2008 17:38:46 -0000 Received: from b7.ovh.net (HELO mail66.ha.ovh.net) (213.186.33.57) by 24.mail-out.ovh.net with SMTP; 16 Dec 2008 17:38:45 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 16 Dec 2008 17:37:59 -0000 Received: from unknown (HELO localhost) (maciej@suszko.eu@62.61.57.118) by ns0.ovh.net with SMTP; 16 Dec 2008 17:37:56 -0000 Date: Tue, 16 Dec 2008 18:38:16 +0100 From: Maciej Suszko To: Andriy Gapon Message-ID: <20081216183816.23aa210c@suszko.eu> In-Reply-To: <4947C3CD.4060006@icyb.net.ua> References: <20081215201420.2d47fd67@suszko.eu> <4947905F.6020005@icyb.net.ua> <4947C3CD.4060006@icyb.net.ua> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/DP.q9QQ84j35C2cR2BL=I.M"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Ovh-Tracer-Id: 16677955320279097439 X-Ovh-Remote: 62.61.57.118 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Cc: freebsd-java@FreeBSD.org Subject: Re: compile/run 32bit java/jdk16 on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 17:38:26 -0000 --Sig_/DP.q9QQ84j35C2cR2BL=I.M Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Andriy Gapon wrote: > on 16/12/2008 13:26 Andriy Gapon said the following: > > on 15/12/2008 21:14 Maciej Suszko said the following: > >> Hello, > >> > >> Is it possible to build java/jdk16 for 32bit environment using > >> amd64 world, or are there any tricks to run fully functional 32bit > >> jdk16 on amd64? > >> My goal is to have a machine with more than 4GB of RAM (I'd like to > >> avoid using PAE) and be able to run multiple java processes, which > >> can consume ~2GB of RAM each. Using 64bit jdk16 the memory > >> consumption is even doubled, so that's not the way I'd like to > >> go... > >=20 > > I've recently had some negative experience *building* java/jdk15 > > port in stable/7 i386 jail on stable/7 amd64 host. Although > > diablo-jdk-1.5 seems to have worked fine for bootstrapping. Just in > > case: for threads I am using libthr. > >=20 > > Reference: > > http://lists.freebsd.org/pipermail/freebsd-java/2008-November/007763.ht= ml > >=20 >=20 > Heh, I've just tried the same with diablo-jdk16 and jdk16 and all > worked fine. Wonder if the 1.5 problem could have been caused by > something related to compat-6x in i386 jail. Hi Andriy, I was rather thinking about building/using 32bit jdk in 64bit world directly, not using any jail. From what I observed - one of the problems is that jdk built inside 32bit world is linked against ld-elf.so.1 (maybe not java binary itself but some libs or so) which on the amd64 arch is ld-elf32.so.1. It would be great to be able to build all the jdk required libs as 32bit (using COMPAT_IA32), let's say in /opt, then build jdk using those libs - in /opt as well... and that's the solution I'm looking for. Another option might be porting Java Performance Release, which has feature called CompressedOops - it looks very promising. The worst case for me is to use PAE and 32bit world - have you got any negative experience using it (especially with jdk)? --=20 regards, Maciej Suszko. --Sig_/DP.q9QQ84j35C2cR2BL=I.M Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAklH54gACgkQCikUk0l7iGqBcQCbBkFC98TYJbcckxpOOpHckvOe sbsAn0vrwSBTtrY97z2tYUa35ZV614CU =MzxG -----END PGP SIGNATURE----- --Sig_/DP.q9QQ84j35C2cR2BL=I.M--