Pharo (cog) Vm on Windows with 2GB virtual mem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Pharo (cog) Vm on Windows with 2GB virtual mem

oscar
Hi Guys,

   I read in this thread


 that 512 mb limit can be avoided in windows, but a re-compilation is needed. I was wondering if the situation changed, and now we can pass a parameter. Otherwise, I would be interested if any of you has a pre-compiled vm with more mem.

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog VM for Windows.  

Thanks in advance.

Oscar
Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

Guillermo Polito
I think latest Pharo VM supports to change the memory limit by only changing an ini file. Igor did that not long ago.

Cheers,
Guille


On Fri, Sep 27, 2013 at 2:09 PM, Oscar E. A. Callaú <[hidden email]> wrote:
Hi Guys,

   I read in this thread


 that 512 mb limit can be avoided in windows, but a re-compilation is needed. I was wondering if the situation changed, and now we can pass a parameter. Otherwise, I would be interested if any of you has a pre-compiled vm with more mem.

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog VM for Windows.  

Thanks in advance.

Oscar

Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

oscar

Thanks, but what would be the parameter?

 

This is the default .ini

 

[Global]

DeferUpdate=1

ShowConsole=0

DynamicConsole=1

ReduceCPUUsage=1

ReduceCPUInBackground=0

3ButtonMouse=0

1ButtonMouse=0

UseDirectSound=1

PriorityBoost=1

B3DXUsesOpenGL=0

CaseSensitiveFileMode=0

 

 

So there is no mention the paratemer to change or add.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of Guillermo Polito
Sent: Friday, September 27, 2013 5:18 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I think latest Pharo VM supports to change the memory limit by only changing an ini file. Igor did that not long ago.

 

Cheers,

Guille

 

On Fri, Sep 27, 2013 at 2:09 PM, Oscar E. A. Callaú <[hidden email]> wrote:

Hi Guys,

 

   I read in this thread

 

 

 that 512 mb limit can be avoided in windows, but a re-compilation is needed. I was wondering if the situation changed, and now we can pass a parameter. Otherwise, I would be interested if any of you has a pre-compiled vm with more mem.

 

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog VM for Windows.  

 

Thanks in advance.

 

Oscar

 

Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

Guillermo Polito
I can only guess by the comment in the commit:


Can you check that?

Guille


On Thu, Oct 3, 2013 at 6:36 AM, Oscar EA Callaú <[hidden email]> wrote:

Thanks, but what would be the parameter?

 

This is the default .ini

 

[Global]

DeferUpdate=1

ShowConsole=0

DynamicConsole=1

ReduceCPUUsage=1

ReduceCPUInBackground=0

3ButtonMouse=0

1ButtonMouse=0

UseDirectSound=1

PriorityBoost=1

B3DXUsesOpenGL=0

CaseSensitiveFileMode=0

 

 

So there is no mention the paratemer to change or add.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of Guillermo Polito
Sent: Friday, September 27, 2013 5:18 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I think latest Pharo VM supports to change the memory limit by only changing an ini file. Igor did that not long ago.

 

Cheers,

Guille

 

On Fri, Sep 27, 2013 at 2:09 PM, Oscar E. A. Callaú <[hidden email]> wrote:

Hi Guys,

 

   I read in this thread

 

 

 that 512 mb limit can be avoided in windows, but a re-compilation is needed. I was wondering if the situation changed, and now we can pass a parameter. Otherwise, I would be interested if any of you has a pre-compiled vm with more mem.

 

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog VM for Windows.  

 

Thanks in advance.

 

Oscar

 


Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

kilon
Talking about GBs it makes me wonder , even if the image allowed more than 500MBs if that would be a wise move.

Smalltalk is afterall one of the slowest , execution wise, programming languages. In python which is as slow if not slower, the attitude is to move big data to C libs and then interface with these C libs via python.

When I see even morphic at times take up to 50% of my dual core 2.0GHz CPU just makes me wonder if cramming 1 GB or more inside the image will end bringing pharo to a crawl for processing that data.

So what pharo may need is something that already nativeboost is doing, mapping to C types and access to fast C functions for processing and manipulating big data. Just make it more easier.

For example python has numpy (mainly C code, extra types etc) and nowdays also Blaze is emerging as a future candidate.

https://github.com/ContinuumIO/blaze

just a thought.
Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

oscar
In reply to this post by Guillermo Polito

Thanks a lot, I added

 

AddressSpaceLimit = 2147483648

 

To the .ini file and all is working smoothly.

 

FYI, I don’t have speed problems with such memory. Of course, If I’ll process some big data, I’ll wait a while to get the answer, but the same happens in any other lang/platt. Certainty, I can do fast experiments in C, but I don’t get all Pharo benefits, like pausing my analysis and resuming it later, such thing in C (or may be any other language) would require to store the intermediate data into files or a database. With Pharo, I don’t care about that.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of Guillermo Polito
Sent: Thursday, October 3, 2013 2:37 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I can only guess by the comment in the commit:

 

 

Can you check that?

 

Guille

 

On Thu, Oct 3, 2013 at 6:36 AM, Oscar EA Callaú <[hidden email]> wrote:

Thanks, but what would be the parameter?

 

This is the default .ini

 

[Global]

DeferUpdate=1

ShowConsole=0

DynamicConsole=1

ReduceCPUUsage=1

ReduceCPUInBackground=0

3ButtonMouse=0

1ButtonMouse=0

UseDirectSound=1

PriorityBoost=1

B3DXUsesOpenGL=0

CaseSensitiveFileMode=0

 

 

So there is no mention the paratemer to change or add.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of Guillermo Polito
Sent: Friday, September 27, 2013 5:18 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I think latest Pharo VM supports to change the memory limit by only changing an ini file. Igor did that not long ago.

 

Cheers,

Guille

 

On Fri, Sep 27, 2013 at 2:09 PM, Oscar E. A. Callaú <[hidden email]> wrote:

Hi Guys,

 

   I read in this thread

 

 

 that 512 mb limit can be avoided in windows, but a re-compilation is needed. I was wondering if the situation changed, and now we can pass a parameter. Otherwise, I would be interested if any of you has a pre-compiled vm with more mem.

 

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog VM for Windows.  

 

Thanks in advance.

 

Oscar

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

Ben Coman

That's a great quote for marketing Pharo. Thanks Oscar.

Oscar EA Callaú wrote:

>
> FYI, I don’t have speed problems with such memory. Of course, If I’ll
> process some big data, I’ll wait a while to get the answer, but the same
> happens in any other lang/platt. Certainty, I can do fast experiments in C,
> but I don’t get all Pharo benefits, like pausing my analysis and resuming it
> later, such thing in C (or may be any other language) _would require to store
> the intermediate data into files or a database. With Pharo, I don’t care
> about that._
>
>  



Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

Tudor Girba-2
In reply to this post by oscar
Hi,

As far as I can tell, you should set the limit in MBytes.

So, for 2G, you should have:
AddressSpaceLimit=2048

I am using 1GB for some Moose analyses. I benchmarked and got no sign of slowdown.

Cheers,
Doru


On Fri, Oct 4, 2013 at 6:10 AM, Oscar EA Callaú <[hidden email]> wrote:

Thanks a lot, I added

 

AddressSpaceLimit = <a href="tel:2147483648" value="+12147483648" target="_blank">2147483648

 

To the .ini file and all is working smoothly.

 

FYI, I don’t have speed problems with such memory. Of course, If I’ll process some big data, I’ll wait a while to get the answer, but the same happens in any other lang/platt. Certainty, I can do fast experiments in C, but I don’t get all Pharo benefits, like pausing my analysis and resuming it later, such thing in C (or may be any other language) would require to store the intermediate data into files or a database. With Pharo, I don’t care about that.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of Guillermo Polito
Sent: Thursday, October 3, 2013 2:37 AM


To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I can only guess by the comment in the commit:

 

 

Can you check that?

 

Guille

 

On Thu, Oct 3, 2013 at 6:36 AM, Oscar EA Callaú <[hidden email]> wrote:

Thanks, but what would be the parameter?

 

This is the default .ini

 

[Global]

DeferUpdate=1

ShowConsole=0

DynamicConsole=1

ReduceCPUUsage=1

ReduceCPUInBackground=0

3ButtonMouse=0

1ButtonMouse=0

UseDirectSound=1

PriorityBoost=1

B3DXUsesOpenGL=0

CaseSensitiveFileMode=0

 

 

So there is no mention the paratemer to change or add.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of Guillermo Polito
Sent: Friday, September 27, 2013 5:18 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I think latest Pharo VM supports to change the memory limit by only changing an ini file. Igor did that not long ago.

 

Cheers,

Guille

 

On Fri, Sep 27, 2013 at 2:09 PM, Oscar E. A. Callaú <[hidden email]> wrote:

Hi Guys,

 

   I read in this thread

 

 

 that 512 mb limit can be avoided in windows, but a re-compilation is needed. I was wondering if the situation changed, and now we can pass a parameter. Otherwise, I would be interested if any of you has a pre-compiled vm with more mem.

 

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog VM for Windows.  

 

Thanks in advance.

 

Oscar

 

 




--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: Pharo (cog) Vm on Windows with 2GB virtual mem

kilon
In reply to this post by oscar
thats great indeed. I would be interested to hear your experience with it when you start processing that data , maybe hint* *hint* a blog post ? :D

It benefits pharo in general to have practical examples that show that pharo can be a very efficient environment and language.



oscar wrote
Thanks a lot, I added

 

AddressSpaceLimit = 2147483648

 

To the .ini file and all is working smoothly.

 

FYI, I don’t have speed problems with such memory. Of course, If I’ll
process some big data, I’ll wait a while to get the answer, but the same
happens in any other lang/platt. Certainty, I can do fast experiments in C,
but I don’t get all Pharo benefits, like pausing my analysis and resuming it
later, such thing in C (or may be any other language) would require to store
the intermediate data into files or a database. With Pharo, I don’t care
about that.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]] On Behalf Of
Guillermo Polito
Sent: Thursday, October 3, 2013 2:37 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I can only guess by the comment in the commit:

 

https://gitorious.org/cogvm/blessed/commit/341e6c2e150bcde80dfea6c890bab7745
b2a6d44

 

Can you check that?

 

Guille

 

On Thu, Oct 3, 2013 at 6:36 AM, Oscar EA Callaú <[hidden email]
<mailto:[hidden email]> > wrote:

Thanks, but what would be the parameter?

 

This is the default .ini

 

[Global]

DeferUpdate=1

ShowConsole=0

DynamicConsole=1

ReduceCPUUsage=1

ReduceCPUInBackground=0

3ButtonMouse=0

1ButtonMouse=0

UseDirectSound=1

PriorityBoost=1

B3DXUsesOpenGL=0

CaseSensitiveFileMode=0

 

 

So there is no mention the paratemer to change or add.

 

Cheers.

 

From: Pharo-dev [mailto:[hidden email]
<mailto:[hidden email]> ] On Behalf Of Guillermo Polito
Sent: Friday, September 27, 2013 5:18 AM
To: Pharo Development List
Subject: Re: [Pharo-dev] Pharo (cog) Vm on Windows with 2GB virtual mem

 

I think latest Pharo VM supports to change the memory limit by only changing
an ini file. Igor did that not long ago.

 

Cheers,

Guille

 

On Fri, Sep 27, 2013 at 2:09 PM, Oscar E. A. Callaú <[hidden email]
<mailto:[hidden email]> > wrote:

Hi Guys,

 

   I read in this thread

 

http://forum.world.st/out-of-memory-cog-on-windows-td3465621.html

 

 that 512 mb limit can be avoided in windows, but a re-compilation is
needed. I was wondering if the situation changed, and now we can pass a
parameter. Otherwise, I would be interested if any of you has a pre-compiled
vm with more mem.

 

I need to run some experiments and I need 2GB (or 1.5 GB at least ) on a cog
VM for Windows.  

 

Thanks in advance.

 

Oscar