From owner-freebsd-java@FreeBSD.ORG Thu Aug 28 04:28:35 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8065316A4BF for ; Thu, 28 Aug 2003 04:28:35 -0700 (PDT) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D1BC43FBD for ; Thu, 28 Aug 2003 04:28:32 -0700 (PDT) (envelope-from past@noc.ntua.gr) Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1]) by ulysses.noc.ntua.gr (8.12.9/8.12.9) with ESMTP id h7SBSSmw011898; Thu, 28 Aug 2003 14:28:28 +0300 (EEST) (envelope-from past@noc.ntua.gr) Received: from noc.ntua.gr (hal.noc.ntua.gr [147.102.220.45]) by ajax.noc.ntua.gr (8.12.9/8.12.9) with ESMTP id h7SBSQqU022639; Thu, 28 Aug 2003 14:28:27 +0300 (EEST) (envelope-from past@noc.ntua.gr) Message-ID: <3F4DE75A.4050109@noc.ntua.gr> Date: Thu, 28 Aug 2003 14:28:26 +0300 From: Panagiotis Astithas Organization: NTUA/NMC User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en, el MIME-Version: 1.0 To: bfg@noviforum.si References: <20030828090512.GB83970@starjuice.net> <20030828090852.GC83970@starjuice.net> <20030828094833.GA82970@chihiro.leafy.idv.tw> <3F4DD228.20202@noviforum.si> <20030828101714.GF83970@starjuice.net> <3F4DE07E.6020306@noviforum.si> In-Reply-To: <3F4DE07E.6020306@noviforum.si> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: FreeBSD vs Windows 2000 "Advanced" Server X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 11:28:35 -0000 Branko F. Grac(nar wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > | > | These are not meaningful numbers. The program wasn't designed to test > | thread instantiation performance, and is pretty much guaranteed to do a > | shit job of it. :-) > | > | You need enough sleep time to ensure that all the threads are active at > | once. > > $ time java TestThreads 50000 10000 > TestThreads: successfully fired 50000 threads > TestThreads: waited 10000 milliseconds for all threads to complete > > real 2m41.536s > user 2m8.008s > sys 0m5.261s You specify a sleep time of 10000 msec = 10 sec and your program takes 2min+42sec = 162sec to execute. Therefore one would assume that some of the threads finished before others started, thus failing to stress the limits of thread allocation by the system. Why don't you try an insane timeout, like 900000; Cheers, -- Panagiotis Astithas Electrical & Computer Engineer, PhD Network Management Center National Technical University of Athens, Greece