Allows 32-bit Linux/centos system to support more than 4G of memory

Source: Internet
Author: User

Let the 32-bit CentOS system support more than 4G of memory, at the beginning of some people say that the 64-bit system is not solved it? In fact, 32-bit systems and 64-bit systems each have their own use. Below use centos-5.5-32 bit demo


First, the system environment:

VMware virtual Machines

System: Centos-5.5 32-bit

Memory: 4G

32-bit system does not break the limit, the system can only recognize 3G of memory

# free-m

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/D7/wKiom1PsZ1vxYUqhAABzpdaQAf8415.jpg "title=" 1.jpg " alt= "Wkiom1psz1vxyuqhaabzpdaqaf8415.jpg"/>

# uname-a //RAW kernel

Linux localhost 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT i686 i686 i386 gnu/linux


Second, install PAE (Physical Address Extension)

# Rpm-qa | grep kernel-pae//See if Kernel-pae-devel and KERNEL-PAE packages are installed, such as installing to view the Grub boot profile directly

# yum-y Install kernel-pae*

# vim/boot/grub/grub.conf


default=0//Change 1 to 0, boot up PAE, otherwise unsuccessful

Timeout=5

Splashimage= (hd0,0)/grub/splash.xpm.gz

Hiddenmenu

Title CentOS (2.6.18-371.11.1.EL5PAE) //install PAE, see this line means you're successful.

Root (hd0,0)

Kernel/vmlinuz-2.6.18-371.11.1.el5pae ro root=label=/rhgb quiet

Initrd/initrd-2.6.18-371.11.1.el5pae.img

Title CentOS (2.6.18-194.EL5)

Root (hd0,0)

Kernel/vmlinuz-2.6.18-194.el5 ro root=label=/rhgb quiet

Initrd/initrd-2.6.18-194.el5.img


# init 6 //reboot system

# free-m //view memory has supported more than 4G

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/DA/wKioL1PsboPgRI9RAAB04cgQGZY910.jpg "title=" 1.jpg " alt= "Wkiol1psbopgri9raab04cgqgzy910.jpg"/>

If the restart error or memory is not changed, then it is estimated that your server hardware does not support ...


# uname-a //view current use kernel

Linux localhost 2.6.18-371.11.1.el5PAE #1 SMP Wed Jul 15:54:19 EDT i686 i686 i386 gnu/linux


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.