[issue1524938] PEP MemoryError with a lot of available memory gc not called

Itai report at bugs.python.org
Fri Aug 20 02:58:18 CEST 2010


Itai <itai.in at gmail.com> added the comment:

You are right, ofcourse... I haven't got the time for doing the right thing,
But I've found another workaround that helped me though and might be helpful
to others.

(not sure its for this thread though but...) Windows on default limits the
amount of memory
for 32 bit processes to 2GB. There's a bit in the PE image which tells 64
bit windows
to give it 4GB (on 32 bit windows PAE needs to be enabled too) which is
called
IMAGE_FILE_LARGE_ADDRESS_AWARE. There's a post-build way to enable
it with the editbin.exe utility which comes with visual studio like this:
editbin.exe /LARGEADDRESSAWARE python.exe

It works for me since it gives me x2 memory on my 64 bit os.
I have to say it could be dangerous since it essentially says no where in
python code
pointers are treated as negative numbers. I figured this should be right
since there's a 64 bit
version of python...

On Wed, Aug 18, 2010 at 9:27 PM, Martin v. Löwis <report at bugs.python.org>wrote:

>
> Martin v. Löwis <martin at v.loewis.de> added the comment:
>
> Anybody *really* interested in this issue: somebody will need to write a
> PEP, get it accepted, and provide an implementations. Open source is about
> scratching your own itches: the ones affected by a problems are the ones
> which are also expected to provide solutions.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue1524938>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file18583/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1524938>
_______________________________________
-------------- next part --------------
<div dir="ltr">You are right, ofcourse... I haven&#39;t got the time for doing the right thing,<br>But I&#39;ve found another workaround that helped me though and might be helpful to others.<br><br>(not sure its for this thread though but...) Windows on default limits the amount of memory <br>
for 32 bit processes to 2GB. There&#39;s a bit in the PE image which tells 64 bit windows<br>to give it 4GB (on 32 bit windows PAE needs to be enabled too) which is called <br>IMAGE_FILE_LARGE_ADDRESS_AWARE. There&#39;s a post-build way to enable<br>
it with the editbin.exe utility which comes with visual studio like this:<br>editbin.exe /LARGEADDRESSAWARE python.exe<br><br>It works for me since it gives me x2 memory on my 64 bit os. <br>I have to say it could be dangerous since it essentially says no where in python code <br>
pointers are treated as negative numbers. I figured this should be right since there&#39;s a 64 bit <br>version of python...<br><br><div class="gmail_quote">On Wed, Aug 18, 2010 at 9:27 PM, Martin v. Löwis <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Martin v. Löwis &lt;<a href="mailto:martin at v.loewis.de">martin at v.loewis.de</a>&gt; added the comment:<br>
<br>
Anybody *really* interested in this issue: somebody will need to write a PEP, get it accepted, and provide an implementations. Open source is about scratching your own itches: the ones affected by a problems are the ones which are also expected to provide solutions.<br>

<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue1524938" target="_blank">http://bugs.python.org/issue1524938</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br></div>


More information about the Python-bugs-list mailing list