Linux Sysadmin Blog

Beyond 4GB Ram on 32bit Linux

- | Comments

Thinking of upgrading your 32 bit Linux machine beyond 4GB of memory?  Consider the following:

Does your CPU support Physical Address Extension to address beyond 4GB? Here is how to check:

1
2
grep pae /proc/cpuinfo
flags     : fpu vme de pse tsc msr **pae** mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr

If you see “pae” flag returned install a PAE kernel and reboot. On CentOS 5.x as root:

1
yum install kernel-PAE.`uname -m` && reboot

Do you have a single process that may need to address more than 4 GB of RAM? If so, you need to use a 64bit kernel. Check to see if your cpu supports 64bit instructions.

1
2
grep lm /proc/cpuinfo
flags     : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx **lm** constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm ida

if you see “lm” flag then your cpu supports 64bit instructions, it is possible to upgrade your current distro to 64bits which is normally not supported by most distro’s or reinstall the entire thing from scratch.

Comments