harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [drlvm] stress.Mix / MegaSpawn threading bug
Date Wed, 10 Jan 2007 14:52:14 GMT

On Jan 10, 2007, at 4:30 AM, Tim Ellison wrote:

> Rana Dasgupta wrote:
>> I am not sure that we need to do something about this. The default  
>> initial
>> stack size on Windows is 1M, and that is the recommended init size  
>> for real
>> applications. The fact that our threads start with a larger intial  
>> stack
>> mapped( default ) than RI is a design issue, it is not a bug. We  
>> could
>> start
>> with 2K and create many more threads! Exactly as Gregory points out,
>> ultimately we will hit virtual memory limits and fail. The reason  
>> the RI
>> seems to fail less is that the test ends before running out of  
>> virtual
>> memory.On my 32 bit RHEL Linux box, RI fails almost every time with
>> MegaSpawn, with an identical OOME error message and stack dump.
>
> FWIW the IBM VM 'design point' is to create threads on 32-bit Windows
> with an OS stack size of 32K for just this reason.  On all other 32- 
> bit
> platforms, and 64-bit Windows, the initial size is 256K.

Sounds like a reasonable starting point for us :)

Thanks - that's really useful info.

geir

>
> Regards,
> Tim


Mime
View raw message