[Mono-list] RE: Large memory usage on a 64bit machine

Joannes Vermorel joannes@vermorel.com
Fri, 7 Jan 2005 15:46:27 +0100


I have checked (using a little program in C) that I am able to allocate =
more
than 1Gb in a single process.

But still from mono, I cant allocate more than 1Gb. Are there some =
specific
option for mono (at compile time or runtime) that I may have missed?

Joann=E8s


-----Original Message-----
From: Anset [mailto:Anset@anset.org]=20
Sent: Thursday, 06 January, 2005 19:17
To: Joannes Vermorel
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Large memory usage on a 64bit machine

Hi,

I'd assume that a 64bit kernel is propperly configured, but you might=20
take a look at the kernel settings for the cpu.

On 32bit cpus, by default the kernel only maps 880MB.

To be able to use all the RAM on a 1GB machine or better, the kernel=20
needs to be recompiled.

Go into 'make menuconfig' (or whichever config is preferred) and set the =

following option:

Processor Type and Features ---->
High Memory Support ---->
(X) 4GB

Hope this helps,

Anset


Joannes Vermorel wrote:
> I am using mono on redhat with an AMD64 and 8Gb of memory. When I try =
to
> instantiate a list of arrays int[], total being greater than 1Gb, mono
> throws an OutOfMemoryException.
>=20
> Can someone tell me why? With a 64-bit architecture, I should be able =
to
> handle more than 1Gb of RAM. What should I do to get access to more
memory?
>=20
> Joann=E8s
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20