Memory allocation problem

language_fan foo at bar.com.invalid
Tue Aug 11 06:09:59 PDT 2009


Tue, 11 Aug 2009 12:58:59 +0000, language_fan thusly wrote:

> I even think that if your OS supports page
> files, it doesn't matter if the memory is on chip or disk - if the
> memory is split 3/1 for processes and kernel, you should be able to
> allocate 2 GB easily.

For example my system has 5GB of virtual memory reported by the OS, and 
3.5GB free virtual space, 1.6GB free physical RAM. The OS provides a 
memory space of 3GB for each process. Based on some testing C allows 
allocating a maximum amount of 2810MB RAM with malloc.



More information about the Digitalmars-d mailing list