-   Slackware (
-   -   about displaying process memory usage (

maginotjr 09-13-2005 11:33 AM

about displaying process memory usage
I know that I can see my process with top or ps but they only shows the memory usage in % and I realy like to see it in Bytes (or kb) so I could have a clue of how much an aplication uses.


slackhack 09-13-2005 11:40 AM

top gives all kinds of actual memory stats:


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.

SWAP  --  Swapped size (kb)
          The swapped out portion of a task's total virtual memory image.

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

          RES = CODE + DATA.

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

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.

SHR  --  Shared Mem size (kb)
          The amount of shared memory used by a task.  It  simply  reflects
          memory that could be potentially shared with other processes.

$ man top


maginotjr 09-13-2005 11:43 AM

Thanks.. I was in a rush here and I needed to ask here... thanks

[ ]īs

All times are GMT -5. The time now is 05:19 PM.