top 命令顯示隱藏參數列

top 命令顯示隱藏參數列

例如 鍵入top,而後鍵入f,而後鍵入s,回車後顯示 DATA列 

       o: VIRT  --  Virtual Image (kb)
          The  total  amount of virtual memory used by the task.  It includes
          all code, data and shared  libraries  plus  pages  that  have  been
          swapped out.

          VIRT = SWAP + RES.

       p: SWAP  --  Swapped size (kb)
          The swapped out portion of a task’s total virtual memory p_w_picpath.

       q: RES  --  Resident size (kb)
          The non-swapped physical memory a task has used.

          RES = CODE + DATA.

       r: CODE  --  Code size (kb)
          The  amount  of  physical  memory  devoted to executable code, also
          known as the ’text resident set’ size or TRS.

       s: DATA  --  Data+Stack size (kb)
          The amount of physical memory  devoted  to  other  than  executable
          code, also known as the ’data resident set’ size or DRS.


這裏面的RES就是 ps -lfp 產生的 RSS 這個參數(見另外一篇博文 AIX下進程內存分析
相關文章
相關標籤/搜索