Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Dealing with large memory under linux or How to Build 64bit Python

Reply
Thread Tools

Dealing with large memory under linux or How to Build 64bit Python

 
 
proteusguy@gmail.com
Guest
Posts: n/a
 
      01-22-2009
I've got an Ubuntu (2.6.27-9-server SMP i686 GNU/Linux) setup with
6GB RAM running python 2.5. I'm running a simulation program that is
breaking as soon as it hits ~3GB RAM even though I have plenty of RAM
free. I'm guessing that it's because my python is only 32-bit?

Appreciate any pointers on how to get my app to be capable of using
the full amount of RAM. I'm anticipating this may require me to
rebuild python from scratch for 64bits but I can't find instructions
on how to do that. Appreciate any help in this matter.

-- Ben Scherrey
 
Reply With Quote
 
 
 
 
Martin v. L÷wis
Guest
Posts: n/a
 
      01-22-2009
> I've got an Ubuntu (2.6.27-9-server SMP i686 GNU/Linux) setup with
> 6GB RAM running python 2.5. I'm running a simulation program that is
> breaking as soon as it hits ~3GB RAM even though I have plenty of RAM
> free. I'm guessing that it's because my python is only 32-bit?


If you do use a 32-bit python, then yes, that's the reason.

> Appreciate any pointers on how to get my app to be capable of using
> the full amount of RAM. I'm anticipating this may require me to
> rebuild python from scratch for 64bits but I can't find instructions
> on how to do that.


As a starting point, you need to install a 64-bit operating system.
If you are running a 32-bit kernel, then there is *no way* that you
could possibly run a 64-bit Python on it.

When you do install a 64-bit (i.e. AMD64) version of Ubuntu, it will
come with a 64-bit Python executable, so no need to build Python at
all. If you still wish to rebuild Python, then, on the 64-bit Ubuntu,
the standard configure;make;make install will do the trick.

Regards,
Martin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to avoid Out of Memory Errors when dealing with a large XML file? Saqib Ali Perl Misc 2 01-14-2011 09:31 PM
report on building of python 2.5.2 under msys under wine on linux. Luke Kenneth Casson Leighton Python 0 01-15-2009 09:48 PM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
build 64bit python on Solaris Jhy-Chun Wang Python 3 09-21-2004 06:26 PM



Advertisments