Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[Corion]: Maybe doing a double-fork (daemonizing) can make go that information away, but maybe not
[Corion]: But I think my knowledge of unix/Linux datastructures is several decades out of date, so I don't really know what information it keeps on processes
[oiskuu]: The useful bits that relate to your process can be found under /proc/self. What information are you thinking of? Tty name?
[tye]: I just daemonized and getlogin() still knew who I had been.
[tye]: perhaps loginuid ? Not that I concede that something not being in /proc means it is not useful.
[Corion]: tye: That's really interesting, but maybe it is because getlogin() returns the name, or the uid, so if that user has been replaced by another user with the same uid in the meantime, that's no problem to the system...
[davido]: or on ubuntu /var/run/utmp

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-06-23 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (554 votes). Check out past polls.