[Ilugc] Swap utilization

  • From: thescriptdevil@xxxxxxxxx (Ashok Gautham)
  • Date: Wed Mar 25 20:47:38 2009

On Tue, Mar 24, 2009 at 2:37 PM, Sattish Vaasudevan <sattish@xxxxxxxxxx>wrote:

During one of our load test we noticed nearly 40% of memory was utilized
by swap.

I cannot see what you mean by that. How can 40% of memory be used by the
swap?


But we couldn't confirm the process responsible for swap
utilization. As everybody aware that swap utilization will have an
adverse effect on the application performance. We experimented few tools
and
1. Top command doesn't provide the utilization by process.
2. To use pmap we need to provide the process id of each process.

ps | awk '/^ *[0-9]+/ {print $1}' |xargs pmap -x

Play around with ps -x or pmap
might be what you need. It maps the current process list to pmap
(Warning. Loads of data. Pipe to | less to make some sense of it)

---
Ashok `ScriptDevil` Gautham

Other related posts: