Check the swap partition size:
cat /proc/swaps
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 524280 0 -1
/tmp/swapfree file 262136 0 -2
Adjust the swap size:
dd if=/dev/zero of= swapfree bs=32k count=8192 (256MB)
mkswap swapfree
swapon /tmp/swapfree
stopped:
swapoff /tmp/swapfree
loaded at startup:
in the /etc/fstab file, add the following line:
/tmp/swapfree swap swap defaults 0 0
check swap
#swapon -s
View and resize the swap partition
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326929199&siteId=291194637
Recommended
Ranking