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.

155 lines
5.7 KiB

  1. 08/29/96
  2. Installing and Using Pentium Counters
  3. (P5CTRS)
  4. for Windows NT Performance Monitor
  5. The Pentium counters are extensible counters for Windows NT Performance
  6. Monitor that let you monitor the inner workings of Pentium (P5) and
  7. Pentium Pro (P6) processors. You can use the Pperf application to
  8. monitor the Pentium counters, or install the counters in Performance
  9. Monitor so that you can include counter data in Performance Monitor
  10. charts, logs, reports, and alerts.
  11. This help file includes instructions for installing the Pentium Counters
  12. in Performance Monitor, and for using Pperf to activate the Pentium
  13. Counters so that they display valid data in Performance Monitor.
  14. Required files: Pperf.exe
  15. Pdump.exe
  16. Pstat.sys
  17. P5Ctrnam.h
  18. P5ctrs.dll
  19. P5ctrs.ini
  20. P5perf.reg
  21. Note: Some Pentium counters are designed only for P5 processors; others
  22. are only for P6 processors. The installation utility recognizes the
  23. processor on the computer and installs only the counters for that
  24. processor.
  25. There are three tasks required to install the Pentium counters:
  26. -- Install the Pstat.sys driver for the PPERF application.
  27. -- Copy files from this CD to Windows NT system directories.
  28. -- Install the Pentium counter names into Performance Monitor.
  29. Step 1: Install the Pstat.sys driver.
  30. 1. Logon as the administrator of the computer.
  31. 2. From the Command Prompt, change to the subdirectory where the P5CTRS
  32. files are installed. The default is \PerfTool\P5CTRS.
  33. 3. Type: regedit p5perf.reg
  34. Step 2: Copy PPerf files to system directories
  35. 1. Copy the driver files, Pstat.sys, to the
  36. %Systemroot%\system32\drivers subdirectory.
  37. 2. Copy P5ctrs.dll to the %Systemroot%\system32 subdirectory.
  38. Step 3: Install the Pentium counter names and explain text in
  39. Performance Monitor.
  40. 1. From the Command Prompt, change to the subdirectory where the P5CTRS
  41. files are installed. The default is \Perftool\P5CTRS.
  42. 2. Type: lodctr p5ctrs.ini
  43. 3. Shutdown, then restart the computer.
  44. TIP: To verify that the Pentium counters were installed correctly,
  45. start Control Panel and double-click the Devices icon. In the Devices
  46. dialog box, scroll down to the entry for PStat, the Pentium counters
  47. driver. Its status should be "Started."
  48. Activating the Pentium Counters
  49. The Pentium counters must be activated by selecting them in Pperf before
  50. they can display valid values in Performance Monitor. Some Pentium
  51. counters require that one Pperf counter be activated; others require two
  52. Pperf counters. To determine which Pperf counters to select to activate
  53. the Performance Monitor Pentium counters, see either of the following
  54. sources:
  55. In Performance Monitor, select Add to Chart from the Edit menu (or
  56. click the + button on the toolbar), select Pentium from the Object list,
  57. and select the counter from the Counters list. Click the Explain button.
  58. The required Pperf counters are listed in the explantory text displayed
  59. at the bottom of the dialog box.
  60. - or -
  61. Use Counters.hlp, a help file listing the names and descriptions
  62. of the standard Performance Monitor counters. Counters.hlp is included
  63. on the Windows NT Resource Kit CD in the Performance Tools group
  64. (\Ntreskit\PerfTool\CntrTools). Double-click Counters.hlp, double-click
  65. Performance Counters by Object, and then double-click Pentium Object.
  66. The Pperf counter(s) that activate each Pentium counter are included in
  67. the description of the counter.
  68. Pperf lets you select two Pperf counters at a time and set monitoring
  69. options for the counters. Some Pentium counters require two Pperf
  70. counters to activate them. However, if you are activating a Pentium
  71. counter that requires just one Pperf counter, you can set the second
  72. Pperf counter field so as to activate a different Pentium counter or set
  73. it to the same counter. Do not set different monitoring options for the
  74. same counter.
  75. To select counters in Pperf:
  76. 1. Start Pperf.exe.
  77. 2. Click Select on the menu bar.
  78. 3. From the Internal P5 Counter # 1 drop-down list, select a counter.
  79. 4. Click the check boxes beside the counter to set the options for the
  80. counter. (It is recommended that you check both R0 and R3).
  81. R0 - (Ring 0) - Click this box to enable the counter to monitor
  82. kernel-mode (also known as privileged-mode) actity. The core operating
  83. system components run in this processing mode.
  84. R1 - (Ring 3) - Click this box to enable the counter to monitor
  85. user-mode activity. Applications, environment subsystems, and integral
  86. subsystems run in this processing mode.
  87. K - (Kilo) - Click this box to direct Pperf to display the counter
  88. data in units of 1K (1024). This setting does not affect Performance
  89. Monitor.
  90. 5. From the Internal P5 Counter # 2 drop-list, select a counter.
  91. 6. Click the check boxes beside the counter to set the options for the
  92. counter. (It is recommended that you check both R0 and R3.) The options
  93. are described under step 4 (above).
  94. 7. Click Ok.
  95. You can monitor the counters from PPerf or use Performance Monitor to
  96. chart, log, report on or set alerts on a counter.
  97. To use Performance Monitor to monitor the Pentium counters,
  98. 1. Start Performance Monitor (it's in the Administrative Tools (Common)
  99. program group).
  100. 2. Click the + button, or select Add to Chart from the Edit menu.
  101. 3. From the Object drop-down list, select Pentium.
  102. 4. From the Counter drop-down list, select the counters activated by
  103. the Pperf counter you selected, and click the Add button.
  104. If you choose a counter in Performance Monitor that you didn't first
  105. select by using PPerf, the value of the counters will always be 0.