A deeper look into vmstat statistics using DTrace and mdb
The document describes how to drill down into vmstat statistics using DTrace and mdb. There are so many fantastic DTrace and mdb commands that it is really worth looking (like any other DTrace documentation ;-) )
I like especially the mdb command to see swapped out processes:
mdb -k << EOF
::walk thread myvar|::print kthread_t t_schedflag|::grep .==0|::evalp_user.u_comm
EOF
Excellent document !
One should also note that there is (for a long time) similar document: "Using DTrace to understand mpstat and vmstat output"
PS. What a pity that this page is only for customers with Sunsolve account. Is should be available for everyone, especially for Linux advocates ;-)