1//step one: create a swap partition:
fdisk--->n(add a new partition)--->p(primary partition)---->1
(partition number)--->d(delete if this partition exists)--->1
(partition number)--->t(type)--->82(swap)--->w(save and quit)
2//step two: format this swap partition
mkswap /dev/hdb1(format hdb1)
3//激活swap分区
swapon /dev/hdb1
4查看此时内存情况
free
5//disable虚拟内存
swapoff /dev/hdb1
6//查看此时内存大小
free
li659258510 于 2009-03-24 15:06:22发表:
:0wpoi2