Oracle Linux 6 -- Cannot initialize tmpfs size set with /etc/fstab (Doc ID 1535495.1)

Last updated on OCTOBER 01, 2015

Applies to:

Linux OS - Version Oracle Linux 6.0 to Oracle Linux 6.3 [Release OL6 to OL6U3]
Linux x86
Linux x86-64

Symptoms

tmpfs, which is a on-memory temporary filesystem, can be created and mounted on Linux. Be default, the tmpfs filesystem is set to be 50% of physical memory size. The size of the filesystem can also be set to the size set in mount option, such as size=<N> with suffix of k, m, or g, as well as %. It is also possible to set the size in /etc/fstab so that tmpfs can be mounted upon boot.

However, on Oracle Linux 6 (up to 6.3), the initial tmpfs size is always set to the default size regardless of the option set in /etc/fstab.

Example: Physical Memory = 800MB

We set the following line in /etc/fstab so that /dev/shm is mounted as tmpfs with 30% of memory size.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms