none
PerfDisk error

    Question

  • Hello,

    We are facing a strange issue. After a while of running nicely our AVICode (Intercept Studio 5.6) reports errors in the EventViewer stating the following:

    "Unable to read the disk performance information from the system. Disk performance counters must be enabled for at least one physical disk or logical volume in order for these counters to appear. Disk performance counters can be enabled by using the Hardware Device Manager property pages. The status code returned is in the first DWORD in the Data section."

    The diskperf counters are enabled so i don't quite get this. I know it's the Interceptor Agent causing this because when i stop this service the errors stop and after re-enabling the service the errors start again. 

    Any ideas?

    Thanks.

    Regards,

    Pascal

     

     

     

    Monday, December 05, 2011 10:31 AM

Answers

  • Hi Pascal,

     

    May the counters have got corrupted anyhow? Do you see them existing in Windows PerfMonitor?

    You can take a look at the following thread where the problem is discussed: 

    http://www.eventid.net/display.asp?eventid=2001&eventno=730&source=Perfdisk&phase=1

     

    Perhaps counters rebuild with “lodctr /R” may help. But it’s on your own risk – rebuild sometimes doesn’t go well..

     

    Also you can disable performance counters collecting by Agent at all. Unfortunately some of counters from Logical and Physical Discs groups are hardcoded for collection and non-configurable, so you cannot disable these groups separately.

    In order to disable counters collecting you should do these:

     

    -          Open “PerfCounterMonitor.config” (by default located here: “C:\Program Files\AVIcode\Intercept\Agent\v5.7.491\Configuration\Standard”) and disable state and troubleshooting counters collecting:

    <ss:troubleshooting period="900" frequency="9" enable="false"/>

    <ss:state period="300" enable="false"/>

     

    -          Save file, close it, restart Intercept Service to apply changes.

     

     

     


    Igor Savchenko, VIAcode Consulting LLC (http://www.viacode.com/solutions)
    Tuesday, December 06, 2011 4:35 PM

All replies

  • Hi Pascal,

     

    What Windows version you are facing this on?

     

    Anyway you may try the following variants:

    1.

    These errors are logged in case if the Logical and Physical Disk performance counters are disabled on a computer.

     

    To enable them, please:

    1.       Open command prompt.

    2.       Run diskperf –y.

    3.       Restart computer.

     

    Microsoft KB: http://support.microsoft.com/kb/296187

     

    2.

    Though we saw current behavior even on servers with Logic and Physical Disc counters enabled. That could deal with the following: you may have an old (W2K) disk driver that depends upon counters. At least we found that on forums.

     

    So in this case you can try to disable disk performance counters on this machine. This can be done by modifying the registry:

    - Open “HKLM/System/CurrentControlSet/Services/PerfDisk/Performance”

    - Create “Disable Performance Counters” DWORD value.

    -  Set value 1.

    It will disable Logical Disk counters category and will not influence other counters collection.

     

     
    Igor Savchenko, VIAcode Consulting LLC (http://www.viacode.com/solutions)
    Monday, December 05, 2011 1:20 PM
  • Hello Igor,

    Thanks for answering. 

    ad 1) Our win version is Win2k3 SP2 (not R2) so Diskperf is on by default.

    ad 2) Diskdrivers are Win2k3. 

    We need these counters for our daily operations due to custom software. 

    I don't see why i should disable DiskPerfCounters when AVIcode has trouble collecting them.

    The "funny" part is that it has problems collecting them after a (undefined) while.

     

    Regards,

    Pascal

    Tuesday, December 06, 2011 2:18 PM
  • Hi Pascal,

     

    May the counters have got corrupted anyhow? Do you see them existing in Windows PerfMonitor?

    You can take a look at the following thread where the problem is discussed: 

    http://www.eventid.net/display.asp?eventid=2001&eventno=730&source=Perfdisk&phase=1

     

    Perhaps counters rebuild with “lodctr /R” may help. But it’s on your own risk – rebuild sometimes doesn’t go well..

     

    Also you can disable performance counters collecting by Agent at all. Unfortunately some of counters from Logical and Physical Discs groups are hardcoded for collection and non-configurable, so you cannot disable these groups separately.

    In order to disable counters collecting you should do these:

     

    -          Open “PerfCounterMonitor.config” (by default located here: “C:\Program Files\AVIcode\Intercept\Agent\v5.7.491\Configuration\Standard”) and disable state and troubleshooting counters collecting:

    <ss:troubleshooting period="900" frequency="9" enable="false"/>

    <ss:state period="300" enable="false"/>

     

    -          Save file, close it, restart Intercept Service to apply changes.

     

     

     


    Igor Savchenko, VIAcode Consulting LLC (http://www.viacode.com/solutions)
    Tuesday, December 06, 2011 4:35 PM
  • Hi Igor,

    I adjusted the PerfCounterMonitor.config, reboot (just to be safe :) ) and re-enabled the Intercept Service. No errors yet.

    Hopefully this will end this strange behavior, knock-on-wood. 

    I will check in again next week at the latest to give you an update.

    Thanks!

     

    Regards,

    Pascal

    Wednesday, December 07, 2011 10:38 AM
  • Hi Igor,

    After a week everything looks fine! So thanks very much!

    Regards,

    Pascal 

    Thursday, December 15, 2011 10:59 AM