stats 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. .TH STATS 8
  2. .SH NAME
  3. stats \- display graphs of system activity
  4. .SH SYNOPSIS
  5. .B stats
  6. [
  7. .BI - option
  8. ]
  9. [
  10. .I machine
  11. \&...
  12. ]
  13. .SH DESCRIPTION
  14. .I Stats
  15. displays a rolling graph of various statistics collected by the operating
  16. system and updated once per second.
  17. The statistics may be from a remote
  18. .I machine
  19. or multiple
  20. .IR machines ,
  21. whose graphs will appear in adjacent columns.
  22. The columns are labeled by the machine names and the number
  23. of processors on the machine if it is a multiprocessor.
  24. .PP
  25. The right mouse button presents a menu to enable and disable the display
  26. of various statistics; by default,
  27. .I stats
  28. begins by showing the load average on the executing machine.
  29. .PP
  30. The
  31. lower-case
  32. .I options
  33. choose the initial set to display:
  34. .TF [t]tlbpurge
  35. .TP
  36. .B "b battery
  37. percentage battery life remaining.
  38. .TP
  39. .B "c context
  40. number of process context switches per second.
  41. .TP
  42. .B
  43. .B "e ether
  44. total number of packets sent and received per second.
  45. .TP
  46. .B
  47. .B "E etherin,out
  48. number of packets sent and received per second, displayed as separate graphs.
  49. .TP
  50. .B "f fault
  51. number of page faults per second.
  52. .TP
  53. .B "i intr
  54. number of interrupts per second.
  55. .TP
  56. .B "l load
  57. (default) system load average.
  58. The load is computed as a running average of
  59. the number of processes ready to run, multiplied by 1000.
  60. .TP
  61. .B "m mem
  62. total pages of active memory.
  63. The graph displays the fraction
  64. of the machine's total memory in use.
  65. .TP
  66. .B
  67. .B "n etherin,out,err
  68. number of packets sent and received per second, and total number of errors, displayed as separate graphs.
  69. .TP
  70. .B "p tlbpurge
  71. number of translation lookaside buffer flushes per second.
  72. .TP
  73. .B "s syscall
  74. number of system calls per second.
  75. .TP
  76. .B "t tlbmiss
  77. number of translation lookaside buffer misses per second.
  78. .TP
  79. .B "w swap
  80. number of valid pages on the swap device.
  81. The swap is displayed as a
  82. fraction of the number of swap pages configured by the machine.
  83. .TP
  84. .B "8 802.11b
  85. display the signal strength detected by the 802.11b wireless ether card; the value
  86. is usually below 50% unless the receiver is in the same room as the transmitter, so
  87. a midrange value represents a strong signal.
  88. .PD
  89. .PP
  90. The graphs are plotted with time on the horizontal axis.
  91. The vertical axes range from 0 to 1000, multiplied by the number of processors on the machine
  92. when appropriate.
  93. The only exceptions are
  94. memory
  95. and swap space,
  96. which display fractions of the total available, and the Ethernet error count,
  97. which goes from 0 to 10..
  98. If the value of the parameter is too large for the visible range, its value is shown
  99. in decimal in the upper left corner of the graph.
  100. .PP
  101. Upper-case options control details of the display.
  102. All graphs are affected; there is no mechanism to
  103. affect only one graph.
  104. .TP
  105. .BI -T " sleepsecs
  106. Set the number of seconds between samples to
  107. .I sleepsecs
  108. (default one second).
  109. .TP
  110. .BI -S " scale
  111. Sets a scale factor for the displays. A value of 2, for example,
  112. means that the highest value plotted will be twice as large as the default.
  113. .TP
  114. .B -L
  115. Plot all graphs with logarithmic
  116. .I y
  117. axes.
  118. The graph is plotted so the maximum value that would be displayed on
  119. a linear graph is 2/3 of the way up the
  120. .I y
  121. axis and the total range of the graph is a factor of 1000; thus the
  122. .I y
  123. origin is 1/100 of the default maximum value and the top of the graph is
  124. 10 times the default maximum.
  125. .TP
  126. .B -Y
  127. If the display is large enough to show them,
  128. place value markers along the
  129. .I y
  130. axes of the graphs.
  131. Since one set of markers serves for all machines across the display,
  132. the values in the markers disregard scaling factors due to multiple processors
  133. on the machines. On a graph for a multiprocessor,
  134. the displayed values will be larger
  135. than the markers indicate.
  136. The markers appear along the right, and the markers
  137. show values appropriate to the rightmost machine; this only
  138. matters for graphs such as memory that have machine-specific
  139. maxima.
  140. .PD
  141. .SH FILES
  142. .B /net/ether0/0/stats
  143. .br
  144. .B #c/swap
  145. .br
  146. .B #c/sysstat
  147. .SH SOURCE
  148. .B /sys/src/cmd/stats.c
  149. .SH BUGS
  150. Some machines do not have TLB hardware.