Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-29 Thread Ulrich Spörlein
On Fri, 27.11.2009 at 18:22:38 -0800, Maxim Sobolev wrote: Crazy idea, perhaps, but has anyone considered wrapping up sbrk(2) into mmap(2), so that there is only one memory pool to draw from? Switch to 64-bit certainly helps, however there are lot of 32-bit machines hanging around and we

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-28 Thread Andrew MacIntyre
Maxim Sobolev wrote: Jason Evans wrote: I would set MAXDSIZ to 0, so that the maximum amount of memory is available for mapping shared libraries and files, and allocating via malloc. This may cause problems with a couple of ports that implement their own memory allocators based on sbrk,

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-28 Thread Tijl Coosemans
On Friday 27 November 2009 22:17:31 Maxim Sobolev wrote: I am trying to figure out why java fails to start with 1024MB of heap on i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set to 2GB. Here is my limits: Resource limits (current): cputime infinity secs

heap limits: mmap(2) vs. break(2) on i386

2009-11-27 Thread Maxim Sobolev
Hi, I am trying to figure out why java fails to start with 1024MB of heap on i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set to 2GB. Here is my limits: Resource limits (current): cputime infinity secs filesize infinity kB datasize

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-27 Thread Jason Evans
Maxim Sobolev wrote: I am trying to figure out why java fails to start with 1024MB of heap on i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set to 2GB. Some memory (1GiB?) is reserved for kernel address space, and you reserved 2GiB for DSS. That leaves less than 1GiB

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-27 Thread Maxim Sobolev
Jason Evans wrote: Maxim Sobolev wrote: I am trying to figure out why java fails to start with 1024MB of heap on i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set to 2GB. Some memory (1GiB?) is reserved for kernel address space, and you reserved 2GiB for DSS. That

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-27 Thread Jason Evans
Maxim Sobolev wrote: Jason Evans wrote: Maxim Sobolev wrote: I am trying to figure out why java fails to start with 1024MB of heap on i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set to 2GB. Some memory (1GiB?) is reserved for kernel address space, and you reserved

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-27 Thread Maxim Sobolev
Jason Evans wrote: Maxim Sobolev wrote: Jason Evans wrote: Maxim Sobolev wrote: I am trying to figure out why java fails to start with 1024MB of heap on i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set to 2GB. Some memory (1GiB?) is reserved for kernel address space,