Posted on 2009-12-17 13:40
Prayer 閱讀(1379)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
U基礎(chǔ)管理
SIZE: 進(jìn)程使用的地址空間, 如果進(jìn)程映射了100M的內(nèi)存, 進(jìn)程的地址空間將報(bào)告為100M內(nèi)存. 事實(shí)上, 這個(gè)大小不是一個(gè)程序?qū)嶋H使用的內(nèi)存數(shù).
RSS: "Resident Set Size", 實(shí)際駐留"在內(nèi)存中"的內(nèi)存數(shù). 不包括已經(jīng)交換出去的代碼. 舉一個(gè)例子: 如果你有一個(gè)程序使用了100K內(nèi)存, 操作系統(tǒng)交換出40K內(nèi)存, 那么RSS為60K. RSS還包括了與其它進(jìn)程共享的內(nèi)存區(qū)域. 這些區(qū)域通常用于libc庫(kù)等.
SHARE: RSS中與其它進(jìn)程共享的內(nèi)存部分大小.
VMSIZE: 一個(gè)進(jìn)程占用的總的地址空間大小. 它包括了沒(méi)有映射到內(nèi)存中的頁(yè)面。
sz(Private RSS): 映射到內(nèi)存中的頁(yè)面, 這些頁(yè)面僅由進(jìn)程單獨(dú)使用. 這也是我們最關(guān)心地方: 進(jìn)程實(shí)際占用的內(nèi)存數(shù)。
rss RSS resident set size, the non-swapped physical memory that a task has used (in kiloBytes). (alias rssize, rsz).
vsz VSZ virtual memory size of the process in KiB (1024-byte units). Device mappings are currently excluded; this is subject
to change. (alias vsize).
size SZ approximate amount of swap space that would be required if the process were to dirty all writable pages and then be
swapped out. This number is very rough!
sz SZ size in physical pages of the core image of the process. This includes text, data, and stack space. Device mappings
are currently excluded; this is subject to change. See vsz and rss.