例如增加2G虚拟内存,操作如下:
[[email protected] ~]# free -m
[[email protected] tmp]# dd if=/dev/zero of=/tmp/big_swap bs=1024 count=2000000
[[email protected] tmp]# du -sh /tmp/big_swap
[[email protected] tmp]# mkswap /tmp/big_swap
[[email protected] tmp]# swapon /tmp/big_swap
[[email protected] tmp]# free –m
原文地址:https://www.cnblogs.com/kinwing/p/11104973.html
时间: 2024-10-27 17:40:24