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

How to install NextCloud in Ubuntu 22.04

What’s NextCloud Nextcloud is an open-source software suite that offers a secure, self-hosted alternative to popular cloud storage and productivity platforms. With a focus...
sysadmin.id
8 min read

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....
sysadmin.id
18 sec read

Free ext4 reserved blocks with tune2fs

Check disk usage df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 95G 82G 7.9G 92% / Check size of Reserved block count...
sysadmin.id
19 sec read