From owner-freebsd-java Thu Mar 8 4:37:13 2001 Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id 8AA8737B718 for ; Thu, 8 Mar 2001 04:37:05 -0800 (PST) (envelope-from ari@suutari.iki.fi) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id OAA36835 for ; Thu, 8 Mar 2001 14:37:04 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <005a01c0a7cc$83622c30$0e05a8c0@coffee> From: "Ari Suutari" To: Subject: Linux jdk 1.3 and Hotspot works!? Date: Thu, 8 Mar 2001 14:37:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Linux JDK 1.3.0_02 seems to work on FreeBSD 4.x-STABLE (cvsupped today). What is interesting is that also Hotspot, both client and server VM work. Sample runs of Linpack (modified so that test is run multiple times to allow JITs to do their work): All these runs were made on machine with 650 Mhz pentium. This is native FreeBSD jdk without JIT: pommac# /usr/local/jdk1.2.2/bin/java -cp . Linpack Mflops/s: 4.547 Time: 0.15 secs Norm Res: 1.33 Precision: 2.220446049250313E-16 Mflops/s: 4.488 Time: 0.15 secs Norm Res: 1.33 Precision: 2.220446049250313E-16 Mflops/s: 4.547 Time: 0.15 secs Norm Res: 1.33 Precision: 2.220446049250313E-16 Mflops/s: 4.547 Time: 0.15 secs Norm Res: 1.33 Precision: 2.220446049250313E-16 Mflops/s: 4.374 Time: 0.16 secs Norm Res: 1.33 Precision: 2.220446049250313E-16 This is native FreeBSD jdk with shujit: pommac# /usr/local/jdk1.2.2/bin/java -Djava.compiler=shujit -cp . Linpack shuJIT for Sun JVM/IA-32 Copyright 1998,1999,2000 by SHUDO Kazuyuki Mflops/s: 22.151 Time: 0.03 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 27.467 Time: 0.03 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 28.611 Time: 0.02 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 28.611 Time: 0.02 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 27.467 Time: 0.03 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 This is linux jdk1.3, with JIT disabled: pommac# /usr/local/linux-jdk1.3.0/bin/java -Djava.compiler=none -cp . Linpack Mflops/s: 4.94 Time: 0.14 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 4.94 Time: 0.14 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 4.769 Time: 0.14 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 4.87 Time: 0.14 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 4.976 Time: 0.14 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 This is linux jdk1.3 with Hotspot Client VM: (not bad!) pommac# /usr/local/linux-jdk1.3.0/bin/java -client -cp . Linpack Mflops/s: 31.212 Time: 0.02 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 52.821 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 76.296 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 76.296 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 85.833 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 This is linux jdk1.3 with Hotspot Server VM: (not bad either!) pommac# /usr/local/linux-jdk1.3.0/bin/java -server -cp . Linpack Mflops/s: 6.077 Time: 0.11 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 13.733 Time: 0.05 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 98.095 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 85.833 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 Mflops/s: 98.095 Time: 0.01 secs Norm Res: 1.43 Precision: 2.220446049250313E-16 It seems that upgrade to -STABLE removed warning messages issued by hotspot. "native threads" seem to be emulated by processes, ps -axu shows on java process per thread when running threaded stuff (like Volano benchmark, which by the way doesn't show similar huge increase in speed). Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message