470,849 Members | 720 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

upper memory limit

There is an upper memory limit in Python?
I have 2GB RAM and 2 processors Xeon 2.4 - (Windows XP), but I just can use
1.2G of memory, after this python crashes.
Does someone know if python has some memory limit?


__________________________________________________ _____
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: http://br.acesso.yahoo.com/
Jul 18 '05 #1
4 10165
Leandro <le*************@yahoo.com> writes:
There is an upper memory limit in Python?
I have 2GB RAM and 2 processors Xeon 2.4 - (Windows XP), but I just can use
1.2G of memory, after this python crashes.
Does someone know if python has some memory limit?


Not deliberately :-) What are you filling all that memory with? What
does "crash" mean? MemoryError, or something more exciting?

Cheers,
mwh

--
... when all the programmes on all the channels actually were made
by actors with cleft pallettes speaking lines by dyslexic writers
filmed by blind cameramen instead of merely seeming like that, it
somehow made the whole thing more worthwhile. -- HHGTG, Episode 11
Jul 18 '05 #2
Leandro <le*************@yahoo.com> wrote:
There is an upper memory limit in Python?
I have 2GB RAM and 2 processors Xeon 2.4 - (Windows XP), but I just can use
1.2G of memory, after this python crashes.
Does someone know if python has some memory limit?


You might be surprised to learn that the amount of memory available to a
single process is (almost) completely unrelated to the amount of physical
memory in the machine. Windows is a virtual memory system.

A single process in Windows is limited to 2GB of address space. Part of
that is occupied by the Python executable, your DLLs, and the system DLLs.

1.2GB seems a litle low, but it is not entirely unreasonable.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #3
Why do you say that single process is limited to 2 Gig? I believe that on
windows a single process can run with to 32 bits addressed or 4 Gig of
space. I have run R with over 2 Gig of memory.

Why would python be limited to 2 Gig (including overhead)? I don't see that
python should be any different.

Peter

At 01:16 AM 8/8/2004, Tim Roberts wrote:
Leandro <le*************@yahoo.com> wrote:
There is an upper memory limit in Python?
I have 2GB RAM and 2 processors Xeon 2.4 - (Windows XP), but I just can use
1.2G of memory, after this python crashes.
Does someone know if python has some memory limit?


You might be surprised to learn that the amount of memory available to a
single process is (almost) completely unrelated to the amount of physical
memory in the machine. Windows is a virtual memory system.

A single process in Windows is limited to 2GB of address space. Part of
that is occupied by the Python executable, your DLLs, and the system DLLs.

1.2GB seems a litle low, but it is not entirely unreasonable.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list


Jul 18 '05 #4
Peter Wilkinson <pw********@videotron.ca> wrote:

Why do you say that single process is limited to 2 Gig? I believe that on
windows a single process can run with to 32 bits addressed or 4 Gig of
space. I have run R with over 2 Gig of memory.

Why would python be limited to 2 Gig (including overhead)? I don't see that
python should be any different.


(I responded privately, but thought I should register the answer here,
too.)

No, a user-mode process in Windows is limited to 2GB of address space.
Addresses 80000000 and larger are kernel space. You can change the
threshhold to 3GB by using the /3gb boot.ini switch, but few do so.

You can certainly have more than 2GB of physical RAM in your machine, but a
single process cannot use more than 2GB at a time.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by CajunCoiler \(http://www.cajuncoiler.tk\) | last post: by
3 posts views Thread by Amy | last post: by
1 post views Thread by =?Utf-8?B?TWFyY28gU2VsbGFuaQ==?= | last post: by
17 posts views Thread by frederic.pica | last post: by
2 posts views Thread by D. Susman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.