設定 EYNY 為首頁  |  加入我的最愛
伊莉討論區
熱門搜尋:海賊王 家庭教師 1895 海角七號 天罪 女郎我最兔 蒼井空 波麗士大人 
最新搜尋:power 我還想她 SpeedXP 8.6 機動 I Stay In Love visual basic 6.0 軒轅劍5 電車之狼 


休閒聊天
學術文化
感情感性
興趣交流
家庭事務
旅遊交流
飲食交流
寵物交流
貼圖分享
動漫交流
音樂世界
美容打扮
潮流資訊
影視娛樂
電玩遊戲
網絡遊戲
BL/GL 區
短片分享
下載分享
BT下載區
CB下載區
電腦資訊
數碼產品
手機交流
網站事務
體育運動
時事新聞
上班一族
博彩娛樂
成人話題

Windows 討論Linux 討論FreeBSD 討論MAC OS X 討論

 
標題:[分享] Linux 下meminfo 介紹
boypisces

Rank: 1
幼兒生(0/200)
潛水  
UID 1107397
精華 0
積分 91
帖子 58
潛水 2426 米
閱讀權限 10
註冊 2007-4-17
發表於 2007-9-13 12:11 PM  資料 文集 短消息 
伊莉遊戲

Linux 下meminfo 介紹

[顯示][隱藏]
cat /proc/meminfo
root: total:                         used:                       free:                                          shared:                    buffers:                    cached:
Mem:  1055760384 1041887232 13873152 0 100417536 711233536
Swap: 1077501952  8540160 1068961792

MemTotal: 1031016 kB
MemFree: 13548 kB
MemShared: 0 kB
Buffers: 98064 kB
Cached: 692320 kB
SwapCached: 2244 kB
Active: 563112 kB
Inact_dirty: 309584 kB
Inact_clean: 79508 kB
Inact_target: 190440 kB
HighTotal: 130992 kB
HighFree: 1876 kB
LowTotal: 900024 kB
LowFree: 11672 kB
SwapTotal: 1052248 kB
SwapFree: 1043908 kB
Committed_AS: 332340 kB
------------------------------------------------------------------------------------------------------------------------------------------------------------            
High-Level Statistics
  • MemTotal: Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code)
  • MemFree: Is sum of LowFree+HighFree (overall stat)
  • MemShared: 0; is here for compat reasons but always zero.
  • Buffers: Memory in buffer cache, mostly useless as metric nowadays
  • Cached: Memory in the pagecache (diskcache) minus SwapCache
  • SwapCache: Memory that once was swapped out, is swapped back in, but is still in the swapfile. (If memory is needed it does not need to be swapped out AGAIN because it is already in the swapfile. This saves I/O.)
Detailed Level Statistics - VM StatisticsVM splits the cache pages into "active" and "inactive" memory. The idea is that if you need memory and some cache needs to be sacrificed for that, you take it from inactive since that is expected to be not used. The VM checks what is used on a regular basis and moves stuff around.
When you use memory, the CPU sets a bit in the pagetable and the VM checks that bit occasionally. Based on that, it can move p [ 瀏覽完整內容請先註冊或登入會員。]

頂部
Artemis@ET
該用戶已被刪除









發表於 2007-9-17 12:04 AM 
伊莉遊戲

我一般只用:

# free

不知現在的人裝 Linux 時 swap 會設多少?

頂部
kaic

Rank: 1
幼兒生(0/200)
潛水  
UID 531958
精華 0
積分 157
帖子 7
潛水 -24 米
閱讀權限 10
註冊 2006-12-11
發表於 2007-9-17 03:02 PM  資料 文集 短消息 
伊莉空間

通常我都設在 2GB, 其實都用不著那麼多, 但是想在run LAMP, 2GB 也差不多吧

頂部
jack6038
(Piggyman)

Rank: 1
幼兒生(0/200)
潛水  
UID 754510
精華 0
積分 84
帖子 43
潛水 -32 米
閱讀權限 10
註冊 2007-1-29
發表於 2007-11-13 10:25 PM  資料 文集 短消息 
伊莉空間

swap size = physical memory * 2

頂部
 




當前時區 GMT+8, 現在時間是 2008-11-22 10:03 PM

Powered by Discuz! 5.0.0 © 2001-2006 Comsenz Inc.
Processed in 4.197301 second(s), 6 queries, Gzip enabled

清除 Cookies - 聯繫我們 - 廣告查詢 [威旭代理] - 伊莉討論區 - Archiver
重要聲明:本討論區是以即時上載留言的方式運作,伊莉討論區對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。伊莉討論區有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。