top 能显示 %MEM 超过 100% 吗?

top 能显示 %MEM 超过 100% 吗?

某个进程的 %MEM 值在顶部输出中是否可以显示超过 100%?这可能吗?

答案1

不可以。根据手册,这只是物理内存,在现实生活中,内存使用率不可能超过 100%,对吗?

   n: %MEM  --  Memory usage (RES)
      A task's currently used share of available physical memory.

   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 and pages that have been mapped but not
      used.

   p: SWAP  --  Swapped size (kb)
      Memory that is not resident but is present in a task.  This  is
      memory  that  has been swapped out but could include additional
      non-resident memory.  This column is calculated by  subtracting
      physical memory from virtual memory.

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

相关内容