<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: OT: Java multithreading test source --> <!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> --> <!--X-Date: Sun, 24 May 1998 14:24:49 -0700 --> <!--X-Message-Id: 199805242123.QAA27811@dfw-ix5.ix.netcom.com --> <!--X-Content-Type: text/plain --> <!--X-Reference: 9805200534.8xjy@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Reference: 199805230138.UAA26433@dfw-ix4.ix.netcom.com --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: OT: Java multithreading test source</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:jlsysinc#ix,netcom.com"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00817.html">Previous</a> | <a href="msg00819.html">Next</a> ] Thread: [ <a href="msg00811.html">Previous</a> | <a href="msg00830.html">Next</a> ] Index: [ <A HREF="author.html#00818">Author</A> | <A HREF="#00818">Date</A> | <A HREF="thread.html#00818">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: OT: Java multithreading test source</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Subject</em>: [MUD-Dev] Re: OT: Java multithreading test source</LI> <LI><em>From</em>: "Jon A. Lambert" <<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>></LI> <LI><em>Date</em>: Sun, 24 May 1998 17:25:24 -5</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> On 22 May 98, Jon A. Lambert wrote: > Here are my results in graphic format running Vadim's Java thread > test program. > > The machine was running Win95 on a Pentium II at 300mhz with 64mb of > memory. > > The MS test was run using the latest VM supplied with IE 4.01 with > the JIT enabled. It was run from JView supplied with Visual J++ 1.1. > > The Sun test was run using the 1.1.6 JDK with the Symantec JIT > enabled. > Here are some more results courtesy of Vadim. I've thrown out more results on the Y-axis to make a readible and pretty picture without resorting to providing a variable scale on the Y axis. (I always disliked reading those.) --forward from Vadim Tkachenko -- Operating conditions: Linux: P233, 64M RAM, 128M swap, all the processes I run usually, among others are X-Window, 6 open Netscape windows, Apache web server, Squid cache, sendmail, 4 open Xterms, so, as a bottomline, no special priviledged testing conditions. The test has stopped to respond after the last log message for about 10 minutes, so I killed it. Once again, no significant impact on the average response time for every other application. Solaris: I have no clue about the hardware configuration at all. As in the first case, this is a full-fledged server doing something completely independent of the test (DNS, sendmail, dozen of web servers, Samba, etc.). But, there may be some good in just gathering the dynamics stats - like, it's clear that on the higher number of threads MS JVM is worse than Sun's. --end forward-- > My thoughts: > Vadim ran out of processor before running out of memory at 128mb. > I ran out of memory before I ran out of processor at 64mb. Some further thoughts: I reran the test on Win95 doing some very bad things like pre-allocating a 1 Gig swap partition. Oddly enough, both VMs failed around the same number of threads 1500+ because of out of memory conditions. This is probably an implementation limitation. Thread related data and stacks may in fact be allocated from global heap and marked as non-swappable instead of from local heap. Threads on Linux are done quite differently and may not be distinguished from other application memory. I would like to see some data from a 300mhz 64mb Linux machine. I'm trying to install such a beast on a spare drive. I'm encountering some difficulties in hardware detection of my cards. After doing some tests with a web server, two muds and several copies of Netscape and IE running, I've determined that 800 threads is the "usable" maximum on the Win95 machine, before stuff starts hitting the fan. 500 threads seems to be a more reasonable point where the lag is still within 10 ms and there's ample CPU left over for other important tasks. This is probably way off topic. -- --/*\ Jon A. Lambert - TychoMUD Internet:jlsysinc#ix,netcom.com /*\-- --/*\ Mud Server Developer's Page <<A HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>> /*\-- --/*\ "Everything that deceives may be said to enchant" - Plato /*\-- </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <ul compact><li><strong>Follow-Ups</strong>: <ul> <li><strong><A NAME="00830" HREF="msg00830.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong> <ul compact><li><em>From:</em> Ben Greear <greear#cyberhighway,net></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00725" HREF="msg00725.html">[MUD-Dev] Re: Java multithreading test source</A></STRONG> <UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI> <LI><STRONG><A NAME="00802" HREF="msg00802.html">[MUD-Dev] OT: Java multithreading test source</A></STRONG> <UL><LI><EM>From:</EM> "Jon A. Lambert" <jlsysinc#ix,netcom.com></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00817.html">[MUD-Dev] Re: mudschools</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00819.html">[MUD-Dev] Re: OT: Java multithreading test source</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00811.html">[MUD-Dev] Re: OT: Java multithreading test source</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00830.html">[MUD-Dev] Re: OT: Java multithreading test source</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00818"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00818"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>[MUD-Dev] Re: OT: Java multithreading test source</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <ul compact> <LI><strong><A NAME="00812" HREF="msg00812.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 24 May 1998, 04:49 GMT </LI> </ul> </ul> <LI><strong><A NAME="00802" HREF="msg00802.html">[MUD-Dev] OT: Java multithreading test source</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 23 May 1998, 01:39 GMT <UL> <LI><strong><A NAME="00805" HREF="msg00805.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sat 23 May 1998, 19:20 GMT <UL> <LI><strong><A NAME="00811" HREF="msg00811.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong>, Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sun 24 May 1998, 04:24 GMT </LI> </UL> </LI> <LI><strong><A NAME="00818" HREF="msg00818.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 24 May 1998, 21:24 GMT <UL> <LI><strong><A NAME="00830" HREF="msg00830.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 25 May 1998, 21:59 GMT </LI> </UL> </LI> <LI><strong><A NAME="00819" HREF="msg00819.html">[MUD-Dev] Re: OT: Java multithreading test source</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 24 May 1998, 21:25 GMT </LI> </UL> </LI> </ul> </LI> <LI><strong><A NAME="00713" HREF="msg00713.html">[MUD-Dev] Re: [MUD-Dev]World Size and The "Hot House" Factor Was Re: PK and my "Mobless MUD" idea</A></strong>, John Bertoglio <a href="mailto:alexb#internetcds,com">alexb#internetcds,com</a>, Tue 19 May 1998, 20:12 GMT <UL> <LI><strong><A NAME="00738" HREF="msg00738.html">[MUD-Dev] Re: [MUD-Dev]World Size and The "Hot House" Factor Was Re: PK and my "Mobless MUD" idea</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 20 May 1998, 19:24 GMT </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>