]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Man/man1m/vmstat.d.1m
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Man / man1m / vmstat.d.1m
1 .TH vmstat.d 1m  "$Date:: 2007-08-05 #$" "USER COMMANDS"
2 .SH NAME
3 vmstat.d \- vmstat demo in DTrace. Uses DTrace.
4 .SH SYNOPSIS
5 .B vmstat.d
6 .SH DESCRIPTION
7 This has been written to demonstrate fetching the same data as vmstat
8 from DTrace. This program is intended as a starting point for other
9 DTrace scripts, by beginning with familiar statistics.
10
11 Since this uses DTrace, only the root user or users with the
12 dtrace_kernel privilege can run this command.
13 .SH OS
14 Solaris
15 .SH STABILITY
16 unstable - uses various kernel symbols.
17 .SH EXAMPLES
18 .TP
19 Print virtual memory statistics every second,
20
21 .B vmstat.d
22 .PP
23 .SH FIELDS
24 .TP
25 w
26 swapped out light weight processes
27 .TP
28 swap
29 virtual memory free, Kbytes
30 .TP
31 free
32 free RAM, Kbytes
33 .TP
34 re
35 page reclaims, Kbytes
36 .TP
37 mf
38 minor faults, Kbytes
39 .TP
40 pi
41 page ins, Kbytes
42 .TP
43 po
44 page outs, Kbytes
45 .TP
46 fr
47 pages freed, Kbytes
48 .TP
49 sr
50 scan rate, pages
51 .TP
52 in
53 interrupts, number
54 .TP
55 sy
56 system calls, number
57 .TP
58 cs
59 context switches, number
60 .PP
61 .SH NOTES
62 Most of the statistics are in units of kilobytes, unlike the
63 original vmstat command which sometimes uses page counts.
64
65 As this program does not use Kstat, there is no summary since boot line.
66
67 Free RAM is both free free + cache free.
68 .PP
69 .SH DOCUMENTATION
70 See the DTraceToolkit for further documentation under the 
71 Docs directory. The DTraceToolkit docs may include full worked
72 examples with verbose descriptions explaining the output.
73 .SH EXIT
74 vmstat.d will run until Ctrl\-C is hit. 
75 .SH AUTHOR
76 Brendan Gregg
77 [Sydney, Australia]
78 .SH SEE ALSO
79 vmstat(1M), dtrace(1M)