Skip to content
Prev 131384 / 398502 Next

Which Linux OS on Athlon amd64, to comfortably run R?

On Thu, 6 Dec 2007, Emmanuel Charpentier wrote:

            
Yes, it is more complex than that.  If you run 32-bit instructions on a 
x86_64, the physical bus is the same as when you run 64-bit instructions. 
The larger code usually means the CPU caches spill more often, and some 
64-bit chips have more 32-bit than 64-bit registers which allows better 
scheduling.

The R-admin manual reports on some empirical testing.  But when you have 
limited RAM the larger code and data for a 64-bit build will cause more 
swapping and that is likely to dominate performance issues on large 
problems.

Note that the comparisons depend on both the chip and the OS: it seems 
that on Mac OS 10.5 on a Core 2 Duo the 64-bit version is faster (on small 
examples).  The original enquiry was about 'amd64 linux', but I've checked 
Intel Core 2 Duo as well: on my box 64-bit builds are faster than 32-bit 
ones, whereas the reverse is true for Opterons.  So it seems that the 
architectural differences of Core 2 Duo vs AMD64 do affect the issue.