Re: Compile jdk 1.5 on amd64 run out of memory
Dongsheng Song wrote: For idle: $ swapctl -s total: 4200966k bytes allocated = 4776k used, 4196190k available When I not set HOTSPOT_BUILD_JOBS, it trap to ddb. Could you restrict the HOTSPOT_BUILD_JOBS not by cores, but also by memory ? Thanks. Yes I am planning on implementing that when the ports tree unlocks. Just for interested: What's the default vaalue for HOTSPOT_BUILD_JOBS and PARALLEL_BUILD_JOBS ? I will leave that question as an an exercise for the reader. However, I should point out the second env var is not called PARALLEL_BUILD_JOBS. It is called PARALLEL_COMPILE_JOBS. -Kurt
Re: Compile jdk 1.5 on amd64 run out of memory
Dongsheng Song wrote: When I not set HOTSPOT_BUILD_JOBS, it trap to ddb. Please submit a full bug report for this using sendbug(1). See http://www.openbsd.org/faq/faq2.html#Bugs and http://www.openbsd.org/report.html for what information you need to collect for it to be useful. Thanks, -Kurt
Re: Compile jdk 1.5 on amd64 run out of memory
For idle: $ swapctl -s total: 4200966k bytes allocated = 4776k used, 4196190k available When I not set HOTSPOT_BUILD_JOBS, it trap to ddb. Could you restrict the HOTSPOT_BUILD_JOBS not by cores, but also by memory ? Just for interested: What's the default vaalue for HOTSPOT_BUILD_JOBS and PARALLEL_BUILD_JOBS ? --- Dongsheng 2008/3/9, Kurt Miller [EMAIL PROTECTED]: On Saturday 08 March 2008 6:53:08 am Dongsheng Song wrote: Thanks, when I set HOTSPOT_BUILD_JOBS=2, it builds smoothly. Great. BTW, how much swap space did you configure on this system (swapctl -s)? What's PARALLEL_BUILD_JOBS, and their relationship? HOTSPOT_BUILD_JOBS controls how many parallel build jobs occur during the hotspot portion of the build (mostly c++ compiles). PARALLEL_BUILD_JOBS controls how many parallel build jobs occur during the rest of the build which I've left at the default. -Kurt
Re: Compile jdk 1.5 on amd64 run out of memory
Thanks, when I set HOTSPOT_BUILD_JOBS=2, it builds smoothly. What's PARALLEL_BUILD_JOBS, and their relationship? 2008/3/8, Kurt Miller [EMAIL PROTECTED]: Try editing the port Makefile and set HOTSPOT_BUILD_JOBS=4 or less. -Kurt
Re: Compile jdk 1.5 on amd64 run out of memory
On Saturday 08 March 2008 6:53:08 am Dongsheng Song wrote: Thanks, when I set HOTSPOT_BUILD_JOBS=2, it builds smoothly. Great. BTW, how much swap space did you configure on this system (swapctl -s)? What's PARALLEL_BUILD_JOBS, and their relationship? HOTSPOT_BUILD_JOBS controls how many parallel build jobs occur during the hotspot portion of the build (mostly c++ compiles). PARALLEL_BUILD_JOBS controls how many parallel build jobs occur during the rest of the build which I've left at the default. -Kurt
Re: Compile jdk 1.5 on amd64 run out of memory
On Thursday 06 March 2008 11:00:22 pm Dongsheng Song wrote: When I compile jdk 1.5 on amd64 as root, dmesg report: warning: resource shortage: 1 pages of swap lost extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor top report: load averages: 14.06, 11.01, 7.06 11:52:56 79 processes: 1 running, 72 idle, 2 stopped, 1 zombie, 3 on processor CPU0 states: 6.6% user, 0.0% nice, 6.9% system, 9.6% interrupt, 76.9% idle CPU1 states: 2.1% user, 0.0% nice, 8.2% system, 0.0% interrupt, 89.7% idle CPU2 states: 1.0% user, 0.0% nice, 5.8% system, 0.0% interrupt, 93.2% idle CPU3 states: 1.4% user, 0.0% nice, 6.3% system, 0.0% interrupt, 92.2% idle CPU4 states: 0.7% user, 0.0% nice, 5.4% system, 0.0% interrupt, 93.9% idle CPU5 states: 1.4% user, 0.0% nice, 5.3% system, 0.0% interrupt, 93.3% idle CPU6 states: 0.9% user, 0.0% nice, 5.2% system, 0.0% interrupt, 93.8% idle CPU7 states: 1.0% user, 0.0% nice, 5.4% system, 0.0% interrupt, 93.6% idle Memory: Real: 1248M/1742M act/tot Free: 243M Swap: 716M/4103M used/tot PID USERNAME PRI NICE SIZE RES STATEWAIT TIMECPU COMMAND 4022 root 640 189M 191M onproc/7 - 0:20 62.89% cc1plus 4909 root 640 135M 137M onproc/5 - 0:19 61.23% cc1plus 9915 root -50 274M 217M sleep/7 biowait 2:41 0.59% cc1plus 2750 root -50 274M 170M sleep/1 biowait 2:36 0.54% cc1plus 22384 root -50 274M 212M sleep/6 biowait 2:44 0.49% cc1plus 27878 root -50 274M 157M sleep/7 biowait 2:28 0.29% cc1plus 20622 root -50 274M 161M sleep/6 biowait 2:28 0.15% cc1plus 32565 _syslogd 20 472K 616K sleep/4 poll 0:00 0.00% syslogd 6005 root 20 3288K 620K idle select0:19 0.00% sshd 3110 root -60 16M 8880K sleep/6 piperd0:07 0.00% gmake 2414 root -50 428K 612K run/6- 0:00 0.00% g++ 19420 root -50 1232K 684K sleep/5 biowait 0:00 0.00% as 16834 root 280 920K 1612K stop/0 - 0:03 0.00% top 10131 root 20 1184K 1244K sleep/0 select0:03 0.00% sendmail 26246 root 30 632K 276K idle ttyin 0:03 0.00% ksh 24483 root 20 3352K 1304K idle select0:00 0.00% sshd $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 1048576 stack(kbytes)8192 lockedmem(kbytes)674606 memory(kbytes) 2019284 nofiles(descriptors) 128 processes660 The dmesg after boot is: http://marc.info/?l=openbsd-miscm=120479733117326w=2 What can I do ? Try editing the port Makefile and set HOTSPOT_BUILD_JOBS=4 or less. -Kurt
Compile jdk 1.5 on amd64 run out of memory
When I compile jdk 1.5 on amd64 as root, dmesg report: warning: resource shortage: 1 pages of swap lost extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor extent_alloc_subregion: can't allocate region descriptor top report: load averages: 14.06, 11.01, 7.06 11:52:56 79 processes: 1 running, 72 idle, 2 stopped, 1 zombie, 3 on processor CPU0 states: 6.6% user, 0.0% nice, 6.9% system, 9.6% interrupt, 76.9% idle CPU1 states: 2.1% user, 0.0% nice, 8.2% system, 0.0% interrupt, 89.7% idle CPU2 states: 1.0% user, 0.0% nice, 5.8% system, 0.0% interrupt, 93.2% idle CPU3 states: 1.4% user, 0.0% nice, 6.3% system, 0.0% interrupt, 92.2% idle CPU4 states: 0.7% user, 0.0% nice, 5.4% system, 0.0% interrupt, 93.9% idle CPU5 states: 1.4% user, 0.0% nice, 5.3% system, 0.0% interrupt, 93.3% idle CPU6 states: 0.9% user, 0.0% nice, 5.2% system, 0.0% interrupt, 93.8% idle CPU7 states: 1.0% user, 0.0% nice, 5.4% system, 0.0% interrupt, 93.6% idle Memory: Real: 1248M/1742M act/tot Free: 243M Swap: 716M/4103M used/tot PID USERNAME PRI NICE SIZE RES STATEWAIT TIMECPU COMMAND 4022 root 640 189M 191M onproc/7 - 0:20 62.89% cc1plus 4909 root 640 135M 137M onproc/5 - 0:19 61.23% cc1plus 9915 root -50 274M 217M sleep/7 biowait 2:41 0.59% cc1plus 2750 root -50 274M 170M sleep/1 biowait 2:36 0.54% cc1plus 22384 root -50 274M 212M sleep/6 biowait 2:44 0.49% cc1plus 27878 root -50 274M 157M sleep/7 biowait 2:28 0.29% cc1plus 20622 root -50 274M 161M sleep/6 biowait 2:28 0.15% cc1plus 32565 _syslogd 20 472K 616K sleep/4 poll 0:00 0.00% syslogd 6005 root 20 3288K 620K idle select0:19 0.00% sshd 3110 root -60 16M 8880K sleep/6 piperd0:07 0.00% gmake 2414 root -50 428K 612K run/6- 0:00 0.00% g++ 19420 root -50 1232K 684K sleep/5 biowait 0:00 0.00% as 16834 root 280 920K 1612K stop/0 - 0:03 0.00% top 10131 root 20 1184K 1244K sleep/0 select0:03 0.00% sendmail 26246 root 30 632K 276K idle ttyin 0:03 0.00% ksh 24483 root 20 3352K 1304K idle select0:00 0.00% sshd $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 1048576 stack(kbytes)8192 lockedmem(kbytes)674606 memory(kbytes) 2019284 nofiles(descriptors) 128 processes660 The dmesg after boot is: http://marc.info/?l=openbsd-miscm=120479733117326w=2 What can I do ? Dongsheng [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]