CentOS :: Increase tmpfs / shm size

24 sec read

:: What’s tmpfs
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems.

 
:: How to increase tmpfs or /dev/shm size
+ See current size

df -h 

some like this

df -h
Filesystem            Size  Used Avail Use% Mounted on
none                  828M     0  828M   0% /dev/shm

 
+ Increase /dev/shm size

vi /etc/fstab

change like this:

none       /dev/shm  tmpfs   defaults,size=2g        0 0

size=2g : if you want set to 2 GB

 
+ Remount /dev/shm

mount -o remount /dev/shm

 
+ See /dev/shm size

df -h

some like this:

Filesystem            Size  Used Avail Use% Mounted on
none                  2.0G     0  2.0G   0% /dev/shm

 
:: Links
+ Google
+ WalkerNews

Leave a Reply

Your email address will not be published. Required fields are marked *