1 .TH swapinfo.d 1m "$Date:: 2007-08-05 #$" "USER COMMANDS"
3 swapinfo.d \- print virtual memory info. Uses DTrace.
7 Prints swap usage details for RAM and disk based swap.
9 This script is UNDER CONSTRUCTION, check for newer versions.
11 Since this uses DTrace, only the root user or users with the
12 dtrace_kernel privilege can run this command.
16 unstable - uses various kernel symbols.
23 RAM consumed by the OBP and TSBs
26 Kernel resident in RAM (and usually locked)
29 Locked memory pages from swap (Anon)
32 anon + exec + file pages used
35 free memory + page cache free
38 Total disk swap configured
41 Disk swap allocated + reserved
44 Disk swap available for reservation
47 Total Virtual Memory usable
50 VM allocated + reserved
53 VM available for reservation
56 VM kept free from reservations
65 See the DTraceToolkit for further documentation under the
66 Docs directory. The DTraceToolkit docs may include full worked
67 examples with verbose descriptions explaining the output.
68 .SH ADDITIONAL RESOURCES
71 vmstat 1 2; swap -s; echo ::memstat | mdb -k
73 RMCmem - The MemTool Package
75 RICHPse - The SE Toolkit
77 "Clearing up swap space confusion" Unix Insider, Adrian Cockcroft
79 "Solaris Internals", Jim Mauro, Richard McDougall
81 /usr/include/vm/anon.h, /usr/include/sys/systm.h