19

I own a Linux workstation which currently has 4 GB of RAM and planning to go for 8 GB in the near future. CPU is a Core2Quad Q9550.

Should I install a 32 or 64 bit variant of Linux?

Tamara Wijsman
  • 57,083
  • 27
  • 185
  • 256
Robert Munteanu
  • 4,298
  • 6
  • 30
  • 47

8 Answers8

18

You should install 64-bit linux. Even though there are ways for the 32-bit kernel to address more than 4 GB the applications will still have a 3 GB limit.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
D. Wroblewski
  • 442
  • 1
  • 5
  • 7
5

32-Bit can only use less than 4 GB for a single process, but it can use more for the whole system. There are not many non-server applications on Linux that will want that much RAM that I can think of.

You will just need to install the PAE (Physical Address Extension) kernel:

sudo sudo apt-get install linux-headers-server linux-image-server 

and then reboot. Run top or free and you should more ram. I recommend 32-Bit for desktop users.

Kyle Brandt
  • 4,429
  • 4
  • 36
  • 37
  • 3
    > I recommend 32-Bit for desktop users. Why? There used to be no 64-bit (Sun) Java plugin and no 64-bit (Adobe) flash plugin, but aren't those two cases solved by now? – asjo Jul 27 '09 at 15:23
5

You can run a 64-bit kernel and a 32-bit distribution which will give you full access to 4 GB or more of RAM, without the performance penalty of PAE. This is what I do on my machine. Debian has linux-image-amd64 available for i386. Unfortunately Ubuntu doesn't, you'd have to compile your own kernel there, and I don't know if other distributions have packages.

Having said that, for new installations I'd recommend 64-bit as performance is better, so long as you can live with hacks for 32-bit-only binaries like Skype and some browser plugins. RPM distributions have OK support for this at the moment, while Debian and Ubuntu don't, but are working on multi-arch support now, with a first release expected for Ubuntu 9.10 this year.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
TRS-80
  • 3,363
  • 1
  • 18
  • 15
  • 1
    The performance penalty of PAE comes from the extra level in the page table lookup. However, while PAE systems use a three-level page table system, x86-64 systems running in long mode use four levels. If that is the only penalty for using PAE, wouldn't 64bit always have worse performance in this regard? Certainly, 64bit offers some other features which may make up for the tradeoff, but you appear to recommend against PAE due to the extra page table lookup. – ChrisInEdmonton Jul 23 '09 at 20:44
  • I have to admit I haven't benchmarked it, and Wikipedia says "On x86-64 processors, PAE is obligatory in native long mode". Ingo benchmarked it http://groups.google.com/group/linux.kernel/browse_thread/thread/e312a11935a37aea/1ec5705a2e2f95e2#1ec5705a2e2f95e2 and 64bit is worse than PAE is worse than 32bit due to page tables in a worst-case fork benchmark. Driver performance will be better if the hardware supports 64bit as bounce buffers won't need to be used, which is the penalty I was thinking of. – TRS-80 Jul 24 '09 at 03:25
5

Here is one overview from LinuxForums.

I would hesitate if you do a lot of work with niche or developing tools written in entirely compiled languages. Many of the projects I'm interested in, like LDC, are only beginning to support 64 bit. Personally I'm holding off, but I'm holding off on more RAM too, so that's not an issue for me.

Nikhil
  • 1,038
  • 8
  • 14
4

I'd install a 64-bit version and potentially something like VirtualBox so I can run a 32-bit version in parallel in case I'd need some software that is only available in 32-bit.

You won't be able to make use of more than 4 GB of memory using a 32-bit kernel without jumping through some hoops like PAE which is IMHO better avoided.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
Timo Geusch
  • 500
  • 6
  • 10
3

I run 64bit 9.04 for my home desktop. I do quite a lot with this machine, and the only 64bit related issue I encounter is stability problems with 64bit Adobe Flash.

Colin Pickard
  • 8,579
  • 3
  • 31
  • 38
3

Go for 64-bit. 32-bit can only access about 3.5 GB of RAM, and most of the compatibility issues have been ironed out. To make it even easier, use a popular distribution like Ubuntu.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
Lucas Jones
  • 679
  • 4
  • 14
1

To use all 8 GB naturally you should install 64-bit version.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
Kirill V. Lyadvinsky
  • 5,256
  • 5
  • 31
  • 32