Process And Memories


Table of Contents

cmd:ps 
Usage 
Help 
Use cmd:ps to show rough program memory usage 
cmd:pmap 
Usage 
Info 
Source 
Related Urls 
Understanding memory usage on Linux 
What ps reports 
Why ps is "wrong" 
Seeing a process's memory map 
What does it all mean? 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 
Comments 

cmd:ps 

Usage 

ps -eo pid,user,args --sort user,pid

Solaris 

ps -aaf | grep $LOGNAME

Linux 

COLUMNS=200 ps auxf | less

Help 

-a             List information  about  all  processes  most
               frequently  requested:  all those except pro-
               cess group leaders and processes not  associ-
               ated with a terminal.
-e             List information about every process now run-
               ning.
-f             Generate a full listing.  (See below for sig-
               nificance of columns in a full listing.)

documented on: 02-26-99 23:41:09

Use cmd:ps to show rough program memory usage 

'ps' can basically give the same answer as to the writable/private data that pmap gave. Use the BSD format, look for the 'SZ' column. You can see the whole list at once. For example

ps -lyu <user>
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!