anonpgpid.d revision 1
1N/A * anonpgpid.d - anonymous memory paging info by process on CPU. 1N/A * Written using DTrace (Solaris 10 3/05). 1N/A * This scripts may help identify which processes are affected by a system 1N/A * with low memory, which is paging to the physical swap device. A report 1N/A * of the process on the CPU when paging occured is printed. 1N/A * $Id: anonpgpid.d 8 2007-08-06 05:55:26Z brendan $ 1N/A * USAGE: anonpgpid.d # hit Ctrl-C to end 1N/A * D Direction, Read or Write 1N/A * BYTES Total bytes during sample 1N/A * This program is currently an approximation - often the process when writing 1N/A * pages to swap will be "pageout" the pageout scanner, or "rcapd" the 1N/A * resource capping daemon. 1N/A * THANKS: James Dickens 1N/A * COPYRIGHT: Copyright (c) 2006 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * Track processes accurately. This is a little difficult - anonpgout 1N/A * occurs asynchronously to the process, and events related to this don't 1N/A * point back to the process. 1N/A * Author: Brendan Gregg [Sydney, Australia] 1N/A * 25-Jul-2005 Brendan Gregg Created this. 1N/A * 18-Feb-2006 " " Last update. 1N/A printf(
"%6s %-16s %1s %s\n",
"PID",
"CMD",
"D",
"BYTES");