Tuesday, August 9, 2016

How To Resize /dev/shm Filesystem

/dev/shm is nothing but implementation of traditional shared memory concept. It is an efficient means of passing data between programs.

shm / shmfs is also known as tmpfs, which is a common name for a temporary file storage facility on many Unix-like operating systems

Open /etc/fstab with vi editor
#  vi /etc/fstab

To increase the Size to 10 GB edit the line like:
tmpfs                   /dev/shm                tmpfs   defaults,size=10g       0 0

To make change effective immediately, run this mount command:

#  mount -o remount /dev/shm

No comments:

Post a Comment