From owner-java@jp.FreeBSD.org Mon Mar 17 21:41:08 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id h2HCf8o25900;
	Mon, 17 Mar 2003 21:41:08 +0900 (JST)
	(envelope-from owner-java@jp.FreeBSD.org)
Received: from ongs.co.jp (ns.ongs.co.jp [202.216.232.58])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with SMTP/inet id h2HCf7725894
	for <java@jp.FreeBSD.org>; Mon, 17 Mar 2003 21:41:07 +0900 (JST)
	(envelope-from daichi@ongs.co.jp)
Received: (qmail 11719 invoked from network); 17 Mar 2003 12:47:54 -0000
Received: from unknown (HELO parancell.ongs.co.jp) (202.216.232.62)
  by ns.ongs.co.jp with SMTP; 17 Mar 2003 12:47:54 -0000
From: daichi <daichi@ongs.co.jp>
To: java@jp.FreeBSD.org
Message-Id: <20030317214106.220b8ec7.daichi@ongs.co.jp>
Organization: ONGS Inc.
X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd5.0)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Reply-To: java@jp.FreeBSD.org
Precedence: list
Date: Mon, 17 Mar 2003 21:41:06 +0900
X-Sequence: java 328
Subject: [java 328] Fw: JDK 1.3.1 performance
Sender: owner-java@jp.FreeBSD.org
X-Originator: daichi@ongs.co.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030304

$BBgCO$G$9!#(B

$BFI$a$:$KN/$C$F$$$?K\2H(BML$B$N(BJDK141/JDK131$B4XO"$N%a!<%k$r$^$H$a$FFI$_$^$7$?!#(B
$B6=L#?<$+$C$?$b$N$r$$$/$D$+E>Aw$7$h$&$H;W$C$?$N$G$9$,!"(Bmaybe$B$@$1$I$M!"$H(B
$B$$$C$?FbMF$N$b$N$,B?$+$C$?$N$G!"$H$j$"$($:$3$l$@$1E>Aw$7$^$9!#(B

classic$B$H(Bnative$B$N>uBV$G$3$l$@$1$N:9$,=P$k$H$$$&$N$O6=L#?<$$7k2L$+$H;W$$(B
$B$^$9!#!J(BKSE$B$NJ}$G%A%e!<%K%s%0$5$l$k$@$m$&$H;W$$$^$9$N$G(Bnative$B$NJ}$N@-G=$O(B
$B:#8e>e$,$k$s$@$H;W$$$^$9$1$I$b!K8=>u$G$3$l$@$1:9$,=P$k$s$G$9$M!#(B

Begin forwarded message:

Date: Mon, 17 Mar 2003 07:28:31 +0000
From: Antony T Curtis <antony.t.curtis@ntlworld.com>
To: freebsd-java@FreeBSD.ORG
Subject: JDK 1.3.1 performance


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Java benchmark using Volano client/server

Results are scaled, bigger is better.

classic		1.000 (1094 messages per second)
  +tya		1.107
  +shujit	1.114
  +OpenJIT	1.154
native		0.675
  +tya		0.868
  +shujit	0.833
  +OpenJIT	0.847
HotSpot -Xint	0.983
  client	1.427
  server	0.746

jdk1.4 -Xint	0.896
  client	1.301
  server	1.234

These benchmarks should be important to people running networked java 
programs. Please note, I only ran the tests once, and both client and server 
are sitting on the same box.

The JDK1.3.1 is with my own patches (includes some maybe bad fixes for 
- -native).

I expected -native to have a much lower performance than -classic as FreeBSD#s 
userland threads have much heavier context switching than Java's green 
threads (which by nature, know about what it's running). What is surprising 
is that -server performs so badly whereas on 1.4, it performs reasonably.

These results tell me that we need KSE's for native threading to be truely 
effective and that we should not implement Java's threading on top of a 
KSEified pthread but directly on FreeBSD-5's KSE api.

I'm tempted to roll a different threading for native on FreeBSD 4 based upon 
rfork()...


Just my $0.02 worth...

- -- 
Antony T Curtis BSc     Unix Analyst Programmer
http://homepage.ntlworld.com/antony.t.curtis/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+dXkhql7dp2cddmIRAks7AJsFL37Oq9EhCi2dEZjueynkGSfhoQCff/7G
dhgy8klgwXt873e3DEGJB00=
=F5XB
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message



--
  $BM-8B2q<R%*%s%0%9(B
  $B5;=Q3+H/C4Ev(B $B8eF#BgCO(B (daichi@ongs.co.jp)
  TEL/FAX: 03-3478-0410  WWW: http://www.ongs.co.jp/
