1N/A * swapinfo.d - print virtual memory info (swap). 1N/A * Written using DTrace (Solaris 10 3/05) 1N/A * Prints swap usage details for RAM and disk based swap. 1N/A * This script is UNDER CONSTRUCTION, check for newer versions. 1N/A * $Id: swapinfo.d 3 2007-08-01 10:50:08Z brendan $ 1N/A * USAGE: swapinfo.d (check for newer versions) 1N/A * RAM Total Total RAM installed 1N/A * RAM Unusable RAM consumed by the OBP and TSBs 1N/A * RAM Kernel Kernel resident in RAM (and usually locked) 1N/A * RAM Locked Locked memory pages from swap (Anon) 1N/A * RAM Used anon + exec + file pages used 1N/A * RAM Free free memory + page cache free 1N/A * Disk Total Total disk swap configured 1N/A * Disk Resv Disk swap allocated + reserved 1N/A * Disk Avail Disk swap available for reservation 1N/A * Swap Total Total Virtual Memory usable 1N/A * Swap Resv VM allocated + reserved 1N/A * Swap Avail VM available for reservation 1N/A * Swap MinFree VM kept free from reservations 1N/A * vmstat 1 2; swap -s; echo ::memstat | mdb -k 1N/A * RMCmem - The MemTool Package 1N/A * RICHPse - The SE Toolkit 1N/A * "Clearing up swap space confusion" Unix Insider, Adrian Cockcroft 1N/A * "Solaris Internals", Jim Mauro, Richard McDougall 1N/A * COPYRIGHT: Copyright (c) 2005, 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 * Author: Brendan Gregg [Sydney, Australia] 1N/A * 11-Jun-2005 Brendan Gregg Created this. 1N/A * 24-Apr-2006 " " Improved disk measurements; changed terms. 1N/A * 24-Apr-2006 " " Last update. 1N/A /* Total Swap stats */ 1N/A /* Convert to Mbytes */