Environment: CentOS 6.2 64bit VMWare Workstation 7.1
In Linux, the automatic memory management of Oracle 11 GB cannot specify the total memory size greater than this/dev/shm. Otherwise, the following error occurs:
ORA-00845: MEMORY_TARGET not supported on this system
In Linux, the mount point/dev/shm is 50% of the system memory by default. According to the Oracle Installation manual, you need to manually specify the/dev/shm space, so that automatic memory management can use more memory.
Recently, wait4friend is on a CentOS6.2 VM. After modifying/dev/shm, the configuration always returns to the default value after the system is restarted. The entire process is as follows:
1. Check the current configuration of the system. tmpfs is 1.9 GB and 50% of the system memory.
[Root @ centos01 ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/mapper/vg_centos00-lv_root
14 GB 11G 2.6G 80%/
Tmpfs 1.9G 88 K 1.9G 1%/dev/shm
/Dev/sda1 485 M 37 M 424 M 8%/boot
2. Modify/etc/fstab and specify a large value for/dev/shm. The red section below is the new value.
[Root @ centos01 ~] # Cat/etc/fstab
/Dev/mapper/vg_centos00-lv_root/ext4 ults 1 1
UUID = 3f3c551e-902d-46f6-9b93-0430c175421/boot ext4 ults 1 2
/Dev/mapper/vg_centos00-lv_swap swap defaults 0 0
Tmpfs/dev/shm tmpfs ults, size = 3276 M 0 0
3. After re-mount, you can confirm that the new setting 3.2G takes effect.
[Root @ centos01 ~] # Fuser-km/dev/shm
/Dev/shm: 2136 m
[Root @ centos01 ~] # Umount/dev/shm
[Root @ centos01 ~] # Mount/dev/shm
[Root @ centos01 ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/mapper/vg_centos00-lv_root
14 GB 11G 2.6G 80%/
/Dev/sda1 485 M 37 M 424 M 8%/boot
Tmpfs 3.2G 0 3.2G 0%/dev/shm