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

Discussion in 'Python' started by proteusguy@gmail.com, Jan 22, 2009.

  1. Guest

    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
    , Jan 22, 2009
    #1
    1. Advertising

  2. > 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
    Martin v. Löwis, Jan 22, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jhy-Chun Wang

    build 64bit python on Solaris

    Jhy-Chun Wang, Sep 21, 2004, in forum: Python
    Replies:
    3
    Views:
    577
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Sep 21, 2004
  2. Wen  Jiang

    pymat on 64bit linux

    Wen Jiang, Jan 25, 2005, in forum: Python
    Replies:
    0
    Views:
    281
    Wen Jiang
    Jan 25, 2005
  3. grunes
    Replies:
    6
    Views:
    526
    grunes
    Jul 9, 2004
  4. Luke Kenneth Casson Leighton
    Replies:
    0
    Views:
    357
    Luke Kenneth Casson Leighton
    Jan 15, 2009
  5. Saqib Ali
    Replies:
    2
    Views:
    190
    Saqib Ali
    Jan 14, 2011
Loading...

Share This Page