Pages

Tuesday, March 6, 2018

Resize /DEV/SHM Filesystem In Linux


Step 1: Open /etc/fstab with vi or any text editor of your choice

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

e.g.
tmpfs /dev/shm tmpfs defaults,size=1500m 0 0
or
tmpfs /dev/shm tmpfs defaults,size=2g 0 0

Step 3: To make change effective immediately, run this mount command to remount the /dev/shm filesystem:

mount -o remount /dev/shm

Step 4: Verify

# df -h

Filesystem            Size  Used Avail Use% Mounted on   

tmpfs                  2G  232M   16G   2% /dev/shm

No comments:

Post a Comment