ps

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 p_w_picpath of the process. This includes text, data, and stack space. Device mappings
  are currently excluded; this is subject to change. See vsz and rss.

 

 

 

 

 

SIZE: 進程使用的地址空間, 如果進程映射了100M的內存, 進程的地址空間將報告爲100M內存. 事實上, 這個大小不是一個程序實際使用的內存數.
RSS: "Resident Set Size", 實際駐留"在內存中"的內存數. 不包括已經交換出去的代碼. 舉一個例子: 如果你有一個程序使用了100K內存, 操作系統交換出40K內存, 那麼RSS爲60K. RSS還包括了與其它進程共享的內存區域. 這些區域通常用於libc庫等.
SHARE: RSS中與其它進程共享的內存部分大小.
VMSIZE: 一個進程佔用的總的地址空間大小. 它包括了沒有映射到內存中的頁面。
sz(Private RSS): 映射到內存中的頁面, 這些頁面僅由進程單獨使用. 這也是我們最關心地方: 進程實際佔用的內存數
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章