linux 增加swap大小!
[root@localhost ~]# free
total used free shared buffers cached
Mem: 499304 488388 10916 0 10220 208400
-/+ buffers/cache: 269768 229536
Swap: 0 0 0
[root@localhost ~]# pwd
/root
[root@localhost ~]# mkdir swap
[root@localhost ~]# cd swap
[root@localhost swap]# dd if=/dev/zero f=swapfile bs=1024 count=10000
10000+0 records in
10000+0 records out
10240000 bytes (10 MB) copied, 0.0885569 seconds, 116 MB/s
[root@localhost swap]# ls -al
總計 10036
drwxr-xr-x 2 root root 4096 02-26 22:12 .
drwxr-x--- 19 root root 4096 02-26 22:12 ..
-rw-r--r-- 1 root root 10240000 02-26 22:12 swapfile
[root@localhost swap]# mkswap swapfile
Setting up swapspace version 1, size = 10235 kB
[root@localhost swap]# swapon swapfile
[root@localhost swap]# ls -l
總計 10020
-rw-r--r-- 1 root root 10240000 02-26 22:13 swapfile
[root@localhost swap]# free
total used free shared buffers cached
Mem: 499304 490336 8968 0 10672 209964
-/+ buffers/cache: 269700 229604
Swap: 9992 0 9992
total used free shared buffers cached
Mem: 499304 488388 10916 0 10220 208400
-/+ buffers/cache: 269768 229536
Swap: 0 0 0
[root@localhost ~]# pwd
/root
[root@localhost ~]# mkdir swap
[root@localhost ~]# cd swap
[root@localhost swap]# dd if=/dev/zero f=swapfile bs=1024 count=10000
10000+0 records in
10000+0 records out
10240000 bytes (10 MB) copied, 0.0885569 seconds, 116 MB/s
[root@localhost swap]# ls -al
總計 10036
drwxr-xr-x 2 root root 4096 02-26 22:12 .
drwxr-x--- 19 root root 4096 02-26 22:12 ..
-rw-r--r-- 1 root root 10240000 02-26 22:12 swapfile
[root@localhost swap]# mkswap swapfile
Setting up swapspace version 1, size = 10235 kB
[root@localhost swap]# swapon swapfile
[root@localhost swap]# ls -l
總計 10020
-rw-r--r-- 1 root root 10240000 02-26 22:13 swapfile
[root@localhost swap]# free
total used free shared buffers cached
Mem: 499304 490336 8968 0 10672 209964
-/+ buffers/cache: 269700 229604
Swap: 9992 0 9992
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12778571/viewspace-195885/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- redhat6.9增加swap交換空間大小Redhat
- Linux系統調整swap大小Linux
- Linux可以增加分割槽大小嗎?有哪些好處?Linux
- Linux Swap擴容Linux
- LINUX 建立swap空間Linux
- linux 修改swap空間Linux
- linux 禁止swap交換Linux
- Linux記憶體、Swap、Cache、BufferLinux記憶體
- MySQL 增加InnoDB系統表空間大小MySql
- Linux交換空間swap講解Linux
- Linux 磁碟掛載和swap空間管理Linux
- Jtti:linux怎麼檢視swap是否開啟JttiLinux
- Linux如何手動釋放Swap、Buffer和CacheLinux
- linux swap掛載失敗問題處理Linux
- 手動釋放Linux上的Swap、Buffer和CacheLinux
- Linux下swap(交換分割槽)的增刪改Linux
- Linux 中交換空間 (swap)應該分多大才好?Linux
- 淺談Linux作業系統的Swap交換區Linux作業系統
- Linux擴容後,邏輯分割槽大小與檔案大小不符Linux
- VirtualBox 中增加現有虛擬機器的磁碟大小的方法虛擬機
- 教你如何進行 linux swap 交換記憶體擴容Linux記憶體
- linux 常用檢視埠,檔案大小Linux
- swap 跟 fstab
- swap擴容
- Linux系統如何進行分割槽?swap分割槽是什麼?Linux
- 【kingsql分享】Linux平臺判斷大小端SQLLinux
- 如何獲取 Linux 中的目錄大小Linux
- 在 Linux 命令列中轉換大小寫Linux命令列
- IPP SWAP孵化器|IPP SWAP系統開發分析
- BlackArch Linux新版增加50多黑客工具!Linux黑客
- 手把手教學linux上擴容和縮減swap分割槽。Linux
- 024,Swap Nodes in PairsAI
- 大小企鵝又相聚,Linux QQ突然復活!Linux
- 修改Kali Linux終端歷史記錄大小Linux
- Linux檢視檔案大小的幾種方法Linux
- 在Linux命令列內的大小寫轉換(附全套Linux影片教程)Linux命令列
- linux伺服器增加虛擬記憶體Linux伺服器記憶體
- Linux磁碟分割槽、掛載、檢視檔案大小Linux
- 在Linux行內直接進行大小寫轉換Linux