app教程网 学习教程 linux添加硬盘分区(linux增加swap分区大小)

linux添加硬盘分区(linux增加swap分区大小)

Java language (a computer language, especially used to create websites) code 1. Check the system swap space usage [root @ jumpersur] # Free Total used free shared buffer Cache DMEM: 513980 493640 20340 0 0 143808 271780-/buffers/cache: 78052 435928 swap: 1052248 28. Create swap file [root @ jumper usr]# mkdir swap[ root @ jumper usr]# CD swap[ root @ jumper swap] # ddif=/dev/zeroof=swap file bs=1024count=1000000//Add 1G10000 0 record in10000 0 record out[root @ jumper swap]# Ls-al total 10024 drwxr-xr-x2root root 4096 July 28 14:58 .drwxr-xr-x 19 root 4096 July 28 14:57 .-rw-r-r-1 root 10240000 July 28 14:58 swap file[root @ jump Er swap]# MK swap swap file sets swap space version 1, size=9996 KiB3. Activate the swap file [root @ jumperswap] # swap on swap file [root @ jumperswap] # Ls-ltotal10016-rw-r-r-1 root root 10240000 July 28 14: 58 swap file [root @ jumpersswap] # free total used free shared buffer cachemem: 513980 505052 8928 0 143900 282288-/Buffers/cache: 78864 435116 swap: 1062240 21256 1040984, if you want to enable it at startup,

本文来自网络,不代表本站立场,转载请注明出处:https: