Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Out of memory problem in Windows XP 32-bit: only 1GB occupied

by BrowserUk (Pope)
on Jan 31, 2013 at 18:10 UTC ( #1016371=note: print w/ replies, xml ) Need Help??


in reply to Out of memory problem in Windows XP 32-bit: only 1GB occupied

A 32-bit OS should be able to handle all 4GB.

That's not so. 32-bit windows only make 2GB of virtual memory available to each process; the other 2GB is reserved for use by the OS.

That can be extended to 3GB using a startup switch, but then executables need to be re-built with a link time option to make use of it.

"Out of memory" error. Checking the Windows Task Manager I see that Perl is only using around 1GB.

It sounds like the program is trying to extend a hash that currently has consuming at or close to 1GB of data; When perl needs to extend a hash, it doubles the size of the base element; that may well be pushing you over the 2GB limit; hence you run out of memory.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re: Out of memory problem in Windows XP 32-bit: only 1GB occupied

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-31 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls