Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

239 lines
13 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
  3. "urn:schemas-microsoft-com:office:office" xmlns:w =
  4. "urn:schemas-microsoft-com:office:word"><HEAD><TITLE>PMTE</TITLE>
  5. <META http-equiv=Content-Type content="text/html; charset=windows-1252">
  6. <META content=FrontPage.Editor.Document name=ProgId>
  7. <META content="Microsoft FrontPage 5.0" name=GENERATOR>
  8. <META content="Microsoft Word 10" name=Originator><!--[if gte mso 9]><xml>
  9. <o:DocumentProperties>
  10. <o:Author>Stephen R. Berard</o:Author>
  11. <o:LastAuthor>Allen Marshall</o:LastAuthor>
  12. <o:Revision>10</o:Revision>
  13. <o:TotalTime>29</o:TotalTime>
  14. <o:Created>2001-12-07T00:00:00Z</o:Created>
  15. <o:LastSaved>2002-01-21T20:48:00Z</o:LastSaved>
  16. <o:Pages>1</o:Pages>
  17. <o:Words>490</o:Words>
  18. <o:Characters>2796</o:Characters>
  19. <o:Company>American Power Conversion</o:Company>
  20. <o:Lines>23</o:Lines>
  21. <o:Paragraphs>6</o:Paragraphs>
  22. <o:CharactersWithSpaces>3280</o:CharactersWithSpaces>
  23. <o:Version>10.3501</o:Version>
  24. </o:DocumentProperties>
  25. </xml><![endif]--><!--[if gte mso 9]><xml>
  26. <w:WordDocument>
  27. <w:View>Print</w:View>
  28. <w:Zoom>BestFit</w:Zoom>
  29. <w:SpellingState>Clean</w:SpellingState>
  30. <w:GrammarState>Clean</w:GrammarState>
  31. <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  32. </w:WordDocument>
  33. </xml><![endif]-->
  34. <STYLE>@font-face {
  35. font-family: Wingdings;
  36. }
  37. @font-face {
  38. font-family: Verdana;
  39. }
  40. @font-face {
  41. font-family: MS Sans Serif;
  42. }
  43. @page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
  44. P.MsoNormal {
  45. FONT-SIZE: 12pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"; margin-left:0in; margin-right:0in; margin-top:0in; margin-bottom:0pt
  46. }
  47. LI.MsoNormal {
  48. FONT-SIZE: 12pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"; margin-left:0in; margin-right:0in; margin-top:0in; margin-bottom:0pt
  49. }
  50. DIV.MsoNormal {
  51. FONT-SIZE: 12pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"; margin-left:0in; margin-right:0in; margin-top:0in; margin-bottom:0pt
  52. }
  53. H2 {
  54. FONT-WEIGHT: bold; FONT-SIZE: 18pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 2
  55. }
  56. H3 {
  57. FONT-WEIGHT: bold; FONT-SIZE: 13.5pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 3
  58. }
  59. A:link {
  60. COLOR: blue; TEXT-DECORATION: underline; text-underline: single
  61. }
  62. SPAN.MsoHyperlink {
  63. COLOR: blue; TEXT-DECORATION: underline; text-underline: single
  64. }
  65. A:visited {
  66. COLOR: blue; TEXT-DECORATION: underline; text-underline: single
  67. }
  68. SPAN.MsoHyperlinkFollowed {
  69. COLOR: blue; TEXT-DECORATION: underline; text-underline: single
  70. }
  71. P {
  72. FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
  73. }
  74. SPAN.SpellE {
  75. mso-style-name: ""; mso-spl-e: yes
  76. }
  77. SPAN.GramE {
  78. mso-style-name: ""; mso-gram-e: yes
  79. }
  80. DIV.Section1 {
  81. page: Section1
  82. }
  83. OL {
  84. MARGIN-BOTTOM: 0in
  85. }
  86. UL {
  87. MARGIN-BOTTOM: 0in
  88. }
  89. </STYLE>
  90. <!--[if gte mso 10]>
  91. <style>
  92. /* Style Definitions */
  93. table.MsoNormalTable
  94. {mso-style-name:"Table Normal";
  95. mso-tstyle-rowband-size:0;
  96. mso-tstyle-colband-size:0;
  97. mso-style-noshow:yes;
  98. mso-style-parent:"";
  99. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  100. mso-para-margin:0in;
  101. mso-para-margin-bottom:.0001pt;
  102. mso-pagination:widow-orphan;
  103. font-size:10.0pt;
  104. font-family:"Times New Roman"}
  105. </style>
  106. <![endif]-->
  107. <META content="Stephen R. Berard" name=Author></HEAD>
  108. <BODY lang=EN-US style="tab-interval: .5in" vLink=blue link=blue>
  109. <DIV class=Section1>
  110. <H2><SPAN style="FONT-FAMILY: Verdana"><o:p>Stress - </o:p></SPAN><SPAN style="FONT-FAMILY: Verdana"><o:p>PMTE Power Management Test Shell</o:p></SPAN></H2>
  111. <H3><SPAN style="FONT-FAMILY: Verdana">SUMMARY<o:p></o:p></SPAN></H3>
  112. <P><font size="2"><span style="font-family: Verdana">PMTE is an ACPI stress
  113. tool.&nbsp; PMTE includes a suite of power management stress
  114. tests designed to exercise each ACPI sleep state supported by a system, and each
  115. device power state supported by individual devices.&nbsp; Prior to entering and
  116. after resuming from each sleep cycle, the devices in the system are tested for functionality
  117. using Win32 interfaces or other methods.&nbsp; Examples include accessing
  118. files on the
  119. system disk or pinging other machines on the network.&nbsp; During testing, if
  120. a device node fails a test, hangs, or otherwise stops working, PMTE will break into the attached kernel debugger
  121. to allow the issue to be debugged.&nbsp; PMTE should be run with a kernel debugger attached
  122. to the system and debugging enabled.&nbsp; If the kernel debugger is not
  123. enabled, PMTE will throw an access violation (AV) when it cannot communicate
  124. with a device.&nbsp; Several scripts are supplied to allow tests to be repeated
  125. automatically, as many times as you specify.</span></font></P>
  126. <blockquote>
  127. <P><font size="2"><span style="font-family: Verdana"><b>Note:</b> ACPI Stress works only with Windows 2000, Windows XP,
  128. and Windows Server 2003.</span></font></P>
  129. </blockquote>
  130. <h3><span style="font-family: Verdana">Devices Supported</span></h3>
  131. <P><font size="2"><span style="font-family: Verdana">PMTE tests the following
  132. device types.</span></font></P>
  133. <ul>
  134. <li><font size="2"><span style="font-family: Verdana">Disks</span></font></li>
  135. <li><font size="2"><span style="font-family: Verdana">CD-ROM</span></font></li>
  136. <li><font size="2"><span style="font-family: Verdana">Floppy</span></font></li>
  137. <li><font size="2"><span style="font-family: Verdana">Sound</span></font></li>
  138. <li><font size="2"><span style="font-family: Verdana">NET</span></font></li>
  139. <li><font size="2"><span style="font-family: Verdana">IRDA</span></font></li>
  140. <li><font size="2"><span style="font-family: Verdana">Serial (with loop back)</span></font></li>
  141. <li><font size="2"><span style="font-family: Verdana">Modems</span></font></li>
  142. <li><font size="2"><span style="font-family: Verdana">Parallel port</span></font></li>
  143. <li><font size="2"><span style="font-family: Verdana">Video</span></font></li>
  144. </ul>
  145. <h3><span style="font-family: Verdana">Running ACPI Stress</span></h3>
  146. <p><span style="font-family: Verdana"><font size="2">There are three methods
  147. available to run PMTE; using the batch file <i>pmteauto.bat,</i> running <i>pmte.exe</i>
  148. and selecting test options, or running <i>pmte.exe </i>from the command line,
  149. specifying one of the included scripts and available command line options.</font></span></p>
  150. <h3><span style="font-family: Verdana">Using the Batch File <i>pmteauto.bat</i></span></h3>
  151. <p><font size="2"><span style="font-family: Verdana">This method is designed to automate
  152. running PMTE.&nbsp; This option will
  153. test every device on the system while cycling through all supported system
  154. sleeps states.&nbsp; After it has tested every device and every supported
  155. sleep state once, it then will repeat this test 99 consecutive times.</span></font></p>
  156. <h3><span style="font-family: Verdana">Running <i>pmte.exe</i></span></h3>
  157. <p><span style="font-family: Verdana"><font size="2">This method allows you to have full control over how PMTE
  158. executes.&nbsp; Running <i>pmte.exe</i> will present you with a dialog box
  159. containing three tabs labeled <b>Device to Test</b>, <b>Script Run</b>,
  160. and <b>Advanced</b>.</font></span></p>
  161. <p><span style="font-family: Verdana"><font size="2">The <b>Device to Test</b>
  162. tab allows selection of the devices to be tested.&nbsp; To exclude testing a
  163. specific device simply deselect the device in this tab.</font></span></p>
  164. <p><span style="font-family: Verdana"><font size="2">The <b>Script Run</b> tab
  165. allows selection of available scripts.&nbsp; You can then elect how long you
  166. want PMTE to run by specifying the test duration in days,
  167. hours, and minutes, the number of days and a specific time of day, or the
  168. number of test cycles.&nbsp; You may also specify which system sleep states
  169. to exclude.&nbsp; </font> </span></p>
  170. <p><span style="font-family: Verdana"><font size="2">The <b>Advanced</b> tab
  171. allows configuration of the following settings.</font></span></p>
  172. <ul>
  173. <li><span style="font-family: Verdana"><font size="2">Select a hard disk
  174. spin down time.</font></span></li>
  175. <li><span style="font-family: Verdana"><font size="2">Use the reset after hibernate
  176. option.&nbsp; This helps to automate hibernate testing on machines that don�t support
  177. wake from S4 via the RTC.</font></span></li>
  178. <li><span style="font-family: Verdana"><font size="2">Ignore any reported RTC capabilities.</font></span></li>
  179. <li><span style="font-family: Verdana"><font size="2">Specify which network share to
  180. use for testing network I/O.&nbsp; This allows you to make sure the system can reach a share that exists.&nbsp; If a
  181. network share is not specified, then a <i>net view</i> command is done, and any systems found
  182. are pinged to test network functionality.</font></span></li>
  183. <li><span style="font-family: Verdana"><font size="2">Specify what PMTE will do
  184. should a test instance hang.&nbsp;
  185. You may elect to have PMTE break into the debugger, terminate the test process, or just
  186. ignore the failing test.</font></span></li>
  187. </ul>
  188. <h3><span style="font-family: Verdana">Running a Script from the Command Line</span></h3>
  189. <P><font size="2"><span style="font-family: Verdana">To run a PMTE script, enter
  190. the following command:</span></font></P>
  191. <blockquote>
  192. <P><font face="Courier New" size="2">pmte /rs: &lt;scriptName&gt; &lt;NumberOfTimes&gt;</font></P>
  193. </blockquote>
  194. <h3><span style="font-family: Verdana"><font size="2">Excluding Specific Device Types</font></span></h3>
  195. <P><font size="2"><span style="font-family: Verdana">To exclude one or more
  196. devices types, you may use the /sdt: (Skip Device Type) switch for each device
  197. type you want to omit.</span></font></P>
  198. <P><font size="2"><span style="font-family: Verdana">For example, to omit the
  199. serial port and Floppy devices types, enter the command below.</span></font></P>
  200. <blockquote>
  201. <P><font size="2" face="Courier New">pmte /sdt: com /sdt: bootfloppy</font></P>
  202. </blockquote>
  203. <P><font size="2"><span style="font-family: Verdana">It is usually a good idea
  204. to skip the bootfloppy because hibernate will probably not be automated.</span></font></P>
  205. <P><font size="2"><span style="font-family: Verdana">Devices that can be
  206. excluded by including the /sdt command line switch are:</span></font></P>
  207. <ul>
  208. <li><font size="2"><span style="font-family: Verdana">COM</span></font></li>
  209. <li><font size="2"><span style="font-family: Verdana">Floppy</span></font></li>
  210. <li><font size="2"><span style="font-family: Verdana">NET</span></font></li>
  211. <li><font size="2"><span style="font-family: Verdana">IRDA</span></font></li>
  212. <li><font size="2"><span style="font-family: Verdana">DISK</span></font></li>
  213. <li><font size="2"><span style="font-family: Verdana">SOUND</span></font></li>
  214. <li><font size="2"><span style="font-family: Verdana">VIDEO</span></font></li>
  215. </ul>
  216. <h3><span style="font-family: Verdana"><font size="2">Other Command Line Switches</font></span></h3>
  217. <P><font size="2"><span style="font-family: Verdana">/QOS:</span></font></P>
  218. <blockquote>
  219. <P><font size="2"><span style="font-family: Verdana">Causes PMTE to exit when
  220. testing completes, if all tests have passed.</span></font></P>
  221. </blockquote>
  222. <P><font size="2"><span style="font-family: Verdana">/LOG: [log file name]</span></font></P>
  223. <blockquote>
  224. <P><font size="2"><span style="font-family: Verdana">The default log file name
  225. is pmte.log.&nbsp; This switch allows a different log filename to be specified.</span></font></P>
  226. </blockquote>
  227. <P style="TEXT-ALIGN: center" align=center><SPAN
  228. style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><a href="#top">Top of page</a></SPAN> <SPAN
  229. style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></P>
  230. <TABLE class=MsoNormalTable
  231. style="WIDTH: 6.5in; mso-cellspacing: 0in; mso-padding-alt: 0in 5.4pt 0in 5.4pt"
  232. cellSpacing=0 cellPadding=0 width=624 border=0>
  233. <TBODY>
  234. <TR style="HEIGHT: 1.5pt; mso-yfti-irow: 0; mso-yfti-lastrow: yes">
  235. <TD
  236. style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; BACKGROUND: aqua; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt; HEIGHT: 1.5pt; x-background-x-position: 0%; x-background-y-position: 0%">
  237. <P class=MsoNormal align="center"><SPAN
  238. style="FONT-SIZE: 2pt"><o:p>&nbsp;</o:p></SPAN></P></TD></TR></TBODY></TABLE>
  239. <P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif'">� Microsoft
  240. Corporation 2002</SPAN></P></DIV></BODY></HTML>