From owner-freebsd-amd64@FreeBSD.ORG Mon Feb 14 09:13:33 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DC9916A4CE for ; Mon, 14 Feb 2005 09:13:33 +0000 (GMT) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A8EB43D5D for ; Mon, 14 Feb 2005 09:13:32 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from fwd11.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1D0cIM-0006y4-05; Mon, 14 Feb 2005 10:13:30 +0100 Received: from fw.reifenberger.com (GvdBCQZXQeQSP0q8APJ9Td+-WZN1PwM8Kh4ciP7VyVWDdhKbu3Cg4a@[62.158.175.56]) by fmrl11.sul.t-online.com with esmtp id 1D0cI8-1mk2AS0; Mon, 14 Feb 2005 10:13:16 +0100 Received: from localhost (mike@localhost)j1E9DFUV034207; Mon, 14 Feb 2005 10:13:15 +0100 (CET) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Mon, 14 Feb 2005 10:13:15 +0100 (CET) From: Michael Reifenberger To: "Conrad J. Sabatier" In-Reply-To: <20050214000346.37e36dfb@dolphin.local.net> Message-ID: <20050214100412.B34086@fw.reifenberger.com> References: <200502131433.43567.nb_root@videotron.ca> <20050214003007.GE68054@dragon.nuxi.com> <20050214000346.37e36dfb@dolphin.local.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-ID: GvdBCQZXQeQSP0q8APJ9Td+-WZN1PwM8Kh4ciP7VyVWDdhKbu3Cg4a@t-dialin.net X-TOI-MSGID: 340eef53-2f47-47a4-bdc7-46104ed52a36 cc: freebsd-amd64@freebsd.org Subject: Re: Can't compile jdk15 on amd64 5.3-STABLE X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 09:13:33 -0000 On Mon, 14 Feb 2005, Conrad J. Sabatier wrote: ... > Even after employing the workaround to get the build to complete, and > installing the port, the bad news is that the resulting JVM is all but > useless, gobbling up absolutely insane amounts of RAM (no less than one > gigabyte to run even the most trivial app). > Are you shure java uses(allocates) that amount of memory? Or are you just seeing the size of the whole process? I can use jboss4 just fine with the following patch: Index: os_bsd.cpp =================================================================== RCS file: /home/cvs/javacvs/jdk150/hotspot/src/os/bsd/vm/os_bsd.cpp,v retrieving revision 1.16 diff -u -r1.16 os_bsd.cpp --- os_bsd.cpp 16 Jan 2005 10:16:25 -0000 1.16 +++ os_bsd.cpp 9 Feb 2005 08:40:04 -0000 @@ -1898,7 +1898,7 @@ } while ((res == OS_ERR) && (errno == EINTR)); } else { assert(Thread::current()->is_Java_thread(), "must be java thread"); - INTERRUPTIBLE_NORESTART(nanosleep(&t, &t), res, os::Bsd::clear_interrupted); + INTERRUPTIBLE_NORESTART_VM(nanosleep(&t, &t), res, os::Bsd::clear_interrupted); } // INTERRUPTIBLE_NORESTART_VM returns res == OS_INTRPT for thread.Interrupt Top shows: last pid: 97136; load averages: 0.33, 0.90, 1.00 up 15+23:38:01 10:11:00 119 processes: 1 running, 118 sleeping CPU states: 2.7% user, 0.0% nice, 1.9% system, 1.6% interrupt, 93.8% idle Mem: 909M Active, 638M Inact, 135M Wired, 96M Cache, 210M Buf, 53M Free Swap: 4000M Total, 492K Used, 3999M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 712 root 96 0 98940K 39132K select 126:25 0.10% 0.10% Xorg 75685 root 96 0 94600K 29948K select 8:31 0.05% 0.05% kdeinit 21405 www 20 0 1823M 358M kserel 89:21 0.00% 0.00% java 75654 root 96 0 99M 26252K select 33:25 0.00% 0.00% kdeinit 96208 root 20 0 213M 106M kserel 23:55 0.00% 0.00% firefox-bin Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com