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

Reset root password on CentOS 7

Edit boot menu on-the-go 0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press “e”1. find...
Sysadmin.ID
18 sec read

Leave a Reply

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