32 bit vs 64 bit linux?

February 20, 2013 15.3k views
I'm planning to deploy a Django (Python) app on Apache + MySQL using Ubuntu linux and I wonder if there will be any difference between running it a 32 bit OS vs 64 bit. I installed a 32 bit version of ubuntu thinking that is might use a bit less memory, but I don't really know. Is there any advantage to use a 64 bit OS? I want to keep memory usage down and I will try to deploy with a 512MB or 1024 MB droplet.
1 comment
  • 32bit linux can handle up to 3GB ram, (more if kernel uses PAE)
    64bit systems do ot have this limit but usually require ~ 1.7 x ram for the same processes compared to 32 bit systems.
    my advice: use 32bit OSes for droplets up to 2GB.

4 Answers
No, this does not help in lowering the memory, atleast not noticable. Its more important to adjust your configurations properly.
According to my experience, I would suggest you go with the 64-bit version. Although in small configurations you will not notice a big difference (as mentioned above) the 64-bit architecture will be (..or better already is) the standard.

It's kind like IPv6, not implemmented already everywhere due to migration issues but if we could we would switch instantly.

Same with 64-bit, better support, all modern hardware supports it, new operating systems support, so go for it.
In the case of Ubuntu it might be interesting to read this post:

So it will run faster with less RAM.
Actually, the more accurate answer, is that it will only run slightly faster. The extra memory needed for the same 64 bit application is rather small and you would benefit more from other features of the 64 bit configuration.

Have another answer? Share your knowledge.