Using 4Gb of ram with Erlang VM

Ulf Wiger (AL/EAB) <>
Mon Nov 7 16:36:11 CET 2005


I've been able to get my hands on some SPARCs
(2x 1.5 GHz) with 16 GB RAM.

I started out with the ring benchmark, and just 
verified that process spawning, context switching
and message passing seem to stay more or less constant(*)
up to at least 6 million processes in a ring, although
I do get some funny delays and less predictable figures
compared to, say, a measly one million processes.

(*) Process spawn time: ca 6 usec, send: 2 usec.

I first tried 10 million processes, but got hit hard by 
swapping. Since I'm using 64-bit erlang, it didn't 
crash on me, though.  (:

/Uffe 

> -----Original Message-----
> From:  
> [mailto:] On Behalf Of 
> Michael Fogeborg
> Sent: den 4 november 2005 16:53
> To: Mickael Remond; 
> Subject: Re: Using 4Gb of ram with Erlang VM
> 
> This is for M$ Windows versions that support the 1+3Gb memory model:
> 
> 1 - enable use of the 1+3Gb model by adding the "/3Gb" switch 
> in the file
>      boot.ini file usually found on C:\  ( its has the hidden 
> attribute set = invisible )
>      
> http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3B297812
> 
> 2 - patch the PE-header of the erl.exe file to enable use of 
> the same model
>       As far as I know the erl.exe file is not linked with 
> these attributes and
>       will only allow use of 2 GB.
> 
> I did this a while ago when trying to push the 
> ring-benchmark.  I had a PC with Win XP Pro and 4Gb of 
> memory.  Got 1800000 processes running before swapping (?) killed it.
> 
> At 10:18 2005-11-04, you wrote:
> >Hello,
> >
> >As I do not have a machine with 4 Gb of Ram available right 
> now I was 
> >wondering if there are specific steps to do to be able to reach this 
> >limit ?
> >Is there compile-time option that limit Erlang VM to 1 Gb ?
> >Is the 4Gb limit the same on all architecture ? Does Windows 
> version of 
> >Erlang support the same limit ?
> >
> >Thank you in advance !
> >
> >--
> >Mickaël Rémond
> 
> 
> 



More information about the erlang-questions mailing list