Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is one Ubuntu 9.10 server.

Also how to see memory usage per process?


share|improve this question

Try this:

ps axo pid,ppid,rss,vsz,nlwp,cmd

Output columns:

  • pid - Process ID
  • ppid - Parent Process ID
  • rss - Resident Set Size - physical memory
  • vsz - Virtual Set Size - virtual memory
  • nlwp - Number of Light Weight Processes - thread count
  • cmd - Command
share|improve this answer

Use the following to show the memory use of a single process:

pmap -d <PID>
share|improve this answer

Try this little hamster in Perl for a simple system overview (on Linux):

Groups processes by name, e.g. all the processes named "httpd" go into one line; or a special process is given its own line.

For each group give:

  • total CPU usage used (percent of single CPU, so the total can be over 100%)
  • total mem usage used (percent)
  • total 'rss', 'size', 'sz', 'vsz' used (from 'ps')
  • total number of processes grouped
  • total number of threads managed by the grouped processes
  • total number of file descriptors used by the processes grouped ("FILES")
  • total number of internet sockets used (that value is already included in "FILES")
  • total number of unix domain sockets used (that value is already included in "FILES")
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.