修改/dev/shm空间大小

/dev/shm默认情况下为物理内存大小的50%,遇到空间紧张时可以扩大。

vim /etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Dec 21 20:56:58 2016
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=57ceaac5-c1a8-411b-b9c5-570b7a499b01 /                       ext4    defaults        1 1
UUID=192678e4-dbac-422a-97d8-6f42de4f1e4f /boot                   ext4    defaults        1 2
UUID=8c9e4e7a-eabe-4d28-835e-410149507bd5 /opt                    ext4    defaults        1 2
UUID=5ff994b0-f390-4f55-afad-2e1b16d02a57 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults,size=24576m        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

 mount -o remount /dev/shm

你可能感兴趣的:(修改/dev/shm空间大小)