Posted on 2009-12-17 13:40
Prayer 閱讀(1388)
評論(0) 編輯 收藏 引用 所屬分類:
U基礎(chǔ)管理
SIZE: 進程使用的地址空間, 如果進程映射了100M的內(nèi)存, 進程的地址空間將報告為100M內(nèi)存. 事實上, 這個大小不是一個程序?qū)嶋H使用的內(nèi)存數(shù).
RSS: "Resident Set Size", 實際駐留"在內(nèi)存中"的內(nèi)存數(shù). 不包括已經(jīng)交換出去的代碼. 舉一個例子: 如果你有一個程序使用了100K內(nèi)存, 操作系統(tǒng)交換出40K內(nèi)存, 那么RSS為60K. RSS還包括了與其它進程共享的內(nèi)存區(qū)域. 這些區(qū)域通常用于libc庫等.
SHARE: RSS中與其它進程共享的內(nèi)存部分大小.
VMSIZE: 一個進程占用的總的地址空間大小. 它包括了沒有映射到內(nèi)存中的頁面。
sz(Private RSS): 映射到內(nèi)存中的頁面, 這些頁面僅由進程單獨使用. 這也是我們最關(guān)心地方: 進程實際占用的內(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.