Linux‎ > ‎Hardware‎ > ‎Storage‎ > ‎

~Changing The /dev/shm space

1) Open /etc/fstab

2) Locate the line of /dev/shm and use the tmpfs size option to specify your expected size

tmpfs        /dev/shm        tmpfs        defaults,size=20g        0 0

By default installation, RHEL and most Linux distributions mount tmpfs (a RAM-based temporarily filesystem) to /dev/shm directory and this temporarily filesystem size is always set to be half of the installed memory.

/dev/shm is nothing but implementation of traditional shared memoryconcept. It is an efficient means of passing data between programs. One program will create a memory portion, which other processes (if permitted) can access. This will result into speeding up things on Linux.