java/old_mmap allocation problems...
hi,
i'm having problems to convince java (1.3.1) to allocate more than 1.9gb of memory on 2.4.2-ac2 (SMP/6gb phys mem) or more than 1.1gb on 2.2.18 (SMP/2gb phys mem)...
modifing /proc/sys/vm parameters didn't help either... the fact that i can allocate more memory under 2.4 than under 2.2 lets me hope that there is some possible kernel/vm tweaking that would increase those limits...
any pointers would be greatly appreciated!
cheers,
-firenza
PS:
strace snippet of "java -Xmx2g" on the 2.4 system
brk(0x8057000) = 0x8057000old_mmap(NULL, 163840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x43691000 old_mmap(NULL, 2181038080, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM
strace snippet of "java -Xmx1500m" on the 2.2 systemold_mmap(0x2e082000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2e082000 old_mmap(NULL, 163840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2e102000 old_mmap(NULL, 1606418432, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM
Quoted 3 lines · you
i'm having problems to convince java (1.3.1) to allocate more than 1.9gb of memory on 2.4.2-ac2 (SMP/6gb phys mem) or more than 1.1gb on 2.2.18 (SMP/2gb phys mem)...
Take a look at a thread from January starting at this point:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0101.1/0407.html
Basically the constraint you see is due to how Linux sets up the 4GB address space on 32-bit i386 hardware. If you need more than 1.9GB on 2.4.x, it's not too hard to change a couple constants in the kernel to allow somewhat more. Feel free to email me for more details if it is not clear after reading the above thread.
Cheers, Wayne