Large memory allocations

2008-11-14 Thread bearophile
While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default install of a 32 bit Win XP with 2 GB RAM (so for example I

Re: Large memory allocations

2008-11-15 Thread Kagamin
bearophile Wrote: > So can't I can't use all my RAM from my D code? And do you know why? > because you use different implementations of malloc. Aggressive allocation make windows sluggish so it's a good idea to stop allocations before os becomes unresponsive.

Re: Large memory allocations

2008-11-15 Thread bearophile
Kagamin: > because you use different implementations of malloc. But as you have noticed there's a large difference. >Aggressive allocation make windows sluggish so it's a good idea to stop >allocations before os becomes unresponsive.< So the allocator used by D may be better... Thank you for

Re: Large memory allocations

2008-11-15 Thread Denis Koroskin
15.11.08 в 00:56 bearophile в своём письме писал(а): While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default

Re: Large memory allocations

2008-11-15 Thread BCS
Reply to bearophile, While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default install of a 32 bit Win XP with 2 G

Re: Large memory allocations

2008-11-15 Thread Janderson
bearophile wrote: While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default install of a 32 bit Win XP with 2 GB R

Re: Large memory allocations

2008-11-15 Thread Kagamin
bearophile Wrote: > So the allocator used by D may be better... > who knows...

Re: Large memory allocations

2008-11-15 Thread bearophile
BCS: > IIRC without special work, 32bit windows apps can't use more than 2GB of > total address space regardless of how much ram you have. If you notice the numbers I have shown relative to D (single allocation or many smaller blocks) aren't much close to the 2 GB limit (I haven't tried to raise

Re: Large memory allocations

2008-11-16 Thread Kagamin
lol, quot damage! Janderson Wrote: > bearophile wrote: > > While allocating lot of memory for a little memory-hungry program, I have > > found results that I don't understand. So I have written the following test > > programs. Maybe someone can give me some information on the matter. > > I am u

Re: Large memory allocations

2008-11-16 Thread BCS
Reply to bearophile, BCS: IIRC without special work, 32bit windows apps can't use more than 2GB of total address space regardless of how much ram you have. If you notice the numbers I have shown relative to D (single allocation or many smaller blocks) aren't much close to the 2 GB limit (I h