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 STATE WAIT TIME CPU COMMAND > 4022 root 64 0 189M 191M onproc/7 - 0:20 62.89% cc1plus > 4909 root 64 0 135M 137M onproc/5 - 0:19 61.23% cc1plus > 9915 root -5 0 274M 217M sleep/7 biowait 2:41 0.59% cc1plus > 2750 root -5 0 274M 170M sleep/1 biowait 2:36 0.54% cc1plus > 22384 root -5 0 274M 212M sleep/6 biowait 2:44 0.49% cc1plus > 27878 root -5 0 274M 157M sleep/7 biowait 2:28 0.29% cc1plus > 20622 root -5 0 274M 161M sleep/6 biowait 2:28 0.15% cc1plus > 32565 _syslogd 2 0 472K 616K sleep/4 poll 0:00 0.00% syslogd > 6005 root 2 0 3288K 620K idle select 0:19 0.00% sshd > 3110 root -6 0 16M 8880K sleep/6 piperd 0:07 0.00% gmake > 2414 root -5 0 428K 612K run/6 - 0:00 0.00% g++ > 19420 root -5 0 1232K 684K sleep/5 biowait 0:00 0.00% as > 16834 root 28 0 920K 1612K stop/0 - 0:03 0.00% top > 10131 root 2 0 1184K 1244K sleep/0 select 0:03 0.00% sendmail > 26246 root 3 0 632K 276K idle ttyin 0:03 0.00% ksh > 24483 root 2 0 3352K 1304K idle select 0: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 > processes 660 > > The dmesg after boot is: > http://marc.info/?l=openbsd-misc&m=120479733117326&w=2 > > What can I do ?
Try editing the port Makefile and set HOTSPOT_BUILD_JOBS=4 or less. -Kurt