CENTOS6.5释放SWAP

浏览次数:1510 关键词 ( SWAP  )

虚拟内存的释放一般都是伴随着关闭应用程式来说的   可以通过命令刷新swap还原到初始状态: swapoff -a swapon -a   例如: [root@wjlcn1026 vm]# free -m              total       used       free     shared    buffers     cached Mem:          1744        913        830          0          0        491 -/+ buffers/cache:        422       1321 Swap:         2015       1097        918   [root@wjlcn1026 vm]# swapoff -a [root@wjlcn1026 vm]# free -m              total       used       free     shared    buffers     cached Mem:          1744       1109        634          0          5        694 -/+ buffers/cache:        410       1333 Swap:            0          0          0     [root@wjlcn1026 vm]# swapon -a [root@wjlcn1026 vm]# free -m              total       used       free     shared    buffers     cached Mem:          1744       1116        627          0          5        694 -/+ buffers/cache:        417       1326 Swap:         2015          0       2015