Igor Schein on Fri, 17 Mar 2000 14:30:45 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: 4GB stack size


On Fri, Mar 17, 2000 at 12:16:48PM -0500, Ilya Zakharevich wrote:
> On Fri, Mar 17, 2000 at 10:47:19AM -0500, Igor Schein wrote:
> > I have a machine with 4GB of RAM, but gp limits me to 2GB of
> > stack.  I tried changing VERYBIGINT to 2^32-1, but then it tells
> > me "not enough memory".  How does gp grow stack anyway?  Looks
> > like it tries to allocate the whole stack in one chunk.  Can that
> > be changed?
> 
> Do you mean that your malloc() does not allow sizes above 2^31-1?
> Complain to your vendor, then.
> 
> Ilya

Actually, it does allow.  I experimentally determined that I can allocate
as much as 4GB-13MB ( roughly ) on my machine using malloc.  So the culprit
is in gp stack handling, as Karim confirmed.

Igor