Date: Thu, 8 Mar 2001 14:37:18 +0200 From: "Ari Suutari" <ari@suutari.iki.fi> To: <freebsd-java@FreeBSD.ORG> Subject: Linux jdk 1.3 and Hotspot works!? Message-ID: <005a01c0a7cc$83622c30$0e05a8c0@coffee>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005a01c0a7cc$83622c30$0e05a8c0>