AIX培訓筆記——交換空間
交換空間,也即作業系統中的虛擬記憶體,本文簡單介紹了一些交換空間管理的基本命令。 交換空間分配原則: Only one paging space per disk; Use disks with the least activity; Paging spaces roughly the same size; Do not extend paging space to multiple physical volumes; Use multiple disk controllers; 檢視交換空間使用情況: #lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging00 hdisk4 rootvg 8192MB 31 yes yes lv hd6 hdisk3 rootvg 8192MB 31 yes yes lv 檢視實體記憶體數: #lsattr -El sys0 -a realmem realmem 33554432 Amount of usable physical memory in Kbytes False 或者: #lsattr -El mem0 goodsize 32768 Amount of usable physical memory in Mbytes False size 32768 Total amount of physical memory in Mbytes False 檢視系統啟動時啟用的交換空間: #cat /etc/swapspaces * /etc/swapspaces * * This file lists all the paging spaces that are automatically put into * service on each system restart (the 'swapon -a' command executed from * /etc/rc swaps on every device listed here). * * WARNING: Only paging space devices should be listed here. * * This file is modified by the chps, mkps and rmps commands and referenced * by the lsps and swapon commands. hd6: dev = /dev/hd6 paging00: dev = /dev/paging00 對以下資訊需要特別注意,一旦發現,應立即通知系統管理員進行處理: "INIT: Paging space is low" "ksh: cannot fork no swap space" "Not enough memory" "Fork function failed" "fork () system call failed" "Unable to fork, too may processes" "Fork failure - not enough memory available" "Fork function not allowed. Not enough memory available." "Cannot fork: Not enough space" 如何建立交換空間,可以用smit或mkps命令來完成,mkps命令格式如下: mkps [-a] [-n] [-t type] -s NumLPs Vgname Pvname Vgname 交換空間所在的卷組(volume group)名 Pvname 交換空間所在的物理卷(physical volume)名 -s NumLPs 交換空間所佔用的邏輯分割槽(logical partition)數 -a 在下次系統啟動時啟用該交護岸空間 (將該交換空間加入到/etc/swapspaces檔案中) -n 立即啟用該交換空間 -t type 指定交換空間型別(lv或者nfs) 以下命令在名字為rootvg的卷組(volume group)中建立一個大小為4個邏輯分割槽(logical partition)大小的交換空間,在建立完成後立即啟用該交換空間,並且在下次系統啟動時啟用該交換空間: # mkps -s 4 -n -a rootvg 改命令執行後,系統中會增加一個名字為/dev/pagingnn的一個交換空間,其中nn是一個順序號,例如00、01等。 如果交換空間在建立時沒有啟用,可以使用如下命令啟用: #swapon /dev/paging00 Swap –a命令可以啟用/etc/swapspaces中定義的所有交換空間,該命令一般在系統啟動時自動執行。 如下命令可以使一個已經啟用的交換空間變為非啟用: #swapoff /dev/paging00 該命令可能由於I/O錯誤或者沒有足夠的交換空間容納paging00上的交換頁面而失敗。 可以使用如下命令動態修改一個交換空間的大小: #chps –d 1 paging00 #從交換空間paging00中刪除1個LP; #chps –s 1 paging00 #給交換空間paging00中增加1個LP; 注意,該命令不能使主交換空間(通常是hd6)減小到32M以下。 如下命令可用來刪除一個交換空間: #rmps paging00 刪除一個交換空間之前,該交換空間必須是非啟用狀態。 |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-722224/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX分頁(交換)空間的監控AI
- Java培訓筆記Java筆記
- 【AIX】AIX系統下記憶體使用率和交換空間使用率高.docAI記憶體
- AIX AN12 培訓AI
- ORACLE APP培訓筆記(1) -- OutBoundOracleAPP筆記
- loadRunder培訓筆記之一筆記
- REPORT開發培訓筆記筆記
- ORACLE APP培訓筆記(3) -- Value SetOracleAPP筆記
- ORACLE APP培訓筆記(2) -- Order ManagementOracleAPP筆記
- 廣州聯合電子 AIX 培訓AI
- web前端培訓分享node學習筆記Web前端筆記
- aix 檢視磁碟空間AI
- AIX筆記AI筆記
- ui培訓教程分享:平面設計怎樣視覺空間感?UI視覺
- 11.管理物件空間(筆記)物件筆記
- java 培訓日記Java
- aix下oracle的空間使用AIOracle
- Linux交換空間swap講解Linux
- Oracle高階培訓 第5課 學習筆記Oracle筆記
- Oracle高階培訓 第6課 學習筆記Oracle筆記
- Oracle高階培訓 第7課 學習筆記Oracle筆記
- 大鳥老師AIX 223認證考試 AU13培訓視訊學習筆記AI筆記
- go 學習筆記之工作空間Go筆記
- OpenCV 名稱空間學習筆記OpenCV筆記
- 【 PHP 學習筆記 】名稱空間PHP筆記
- [ PHP 學習筆記 ] 名稱空間PHP筆記
- php名稱空間namespace使用筆記PHPnamespace筆記
- 10.管理UNDO表空間.(筆記)筆記
- 表空間傳輸讀書筆記筆記
- 關於巨集奕培訓的一些小筆記(三)筆記
- itpub oracle 10g dba培訓課程筆記(二)Oracle 10g筆記
- itpub oracle 10g dba培訓課程筆記(一)Oracle 10g筆記
- Oracle App培訓筆記(4) -- 成本管理模組主要表整理OracleAPP筆記
- 好程式設計師web前端培訓學習筆記Vue學習筆記一程式設計師Web前端筆記Vue
- oracle 表空間 資料檔案 筆記Oracle筆記
- 工作筆記 - 調整索引和表空間筆記索引
- C++筆記--名字空間和異常C++筆記
- DB2學習筆記 - 表空間DB2筆記