Overview

DFS Replication registers three performance counter objects that are available in Performance Monitor. These counters are only available while the DFSR service is running. The counter values are reset when the DFSR service is restarted or the server restarted.

Since the "Bandwidth Savings Using DFS Replication" is reflected in the DFS Replication health report as "DFS Replication Efficiency Savings." This shows up in two locations in the health report - at the top as a cumulative savings for the entire replication group, and in the Informational section for each member. The savings for the entire replication group will not be reset until the DFSR service is reset on all the members. The savings for an individual member will be reset by just resetting the DFSR service on that specific member.

Also, the following WMI classes are available in the \root\CIMV2 namespace to access the DFSR performance counter data.

Note Run wmiadap /f to register these classes if you determine they are not available on the server. For example if the WMIC commands below return "invalid  class" or "not found"

  • Win32_PerfFormattedData_Dfsr_DFSReplicatedFolders
  • Win32_PerfFormattedData_Dfsr_DFSReplicationConnections
  • Win32_PerfFormattedData_Dfsr_DFSReplicationServiceVolumes
  • Win32_PerfRawData_Dfsr_DFSReplicatedFolders
  • Win32_PerfRawData_Dfsr_DFSReplicationConnections
  • Win32_PerfRawData_Dfsr_DFSReplicationServiceVolumes

PerFormattedData classes are "cooked" data classes that output more intuitive data than the PerfRawData classes.

http://msdn.microsoft.com/library/en-us/wmisdk/wmi/wmi_performance_counter_types.asp

Using WMIC to View DFSR Performance Data

WMIC provides an easy way to access the performance data from a command line. It is available in Windows XP, Windows Server 2003, and later versions of Windows. Commands to view the data remotely (using /node:<server>) can be run from Windows XP or a Windows Server 2003 computer that does not have DFSR installed. However the target computer must have DFSR installed and the DFSR service running. The /format:textvaluelist switch is not needed but makes for a more readable list. The /format: switch also takes csv, hform, htable-sortby, htable, mof, xml, rawxml, texttable, and texttablewsys as arguments.

To view the data from Win32_PerfFormattedData_Dfsr_DFSReplicatedFolders for all replicated folders on the server:

wmic path win32_perfformatteddata_dfsr_dfsreplicatedfolders get /format:textvaluelist

To view a single property from Win32_PerfFormattedData_Dfsr_DFSReplicatedFolders for replicated folders on the server:

wmic path win32_perfformatteddata_dfsr_dfsreplicatedfolders get fileinstallsretried /format:textvaluelist

To view the data from Win32_PerfFormattedData_Dfsr_DFSReplicatedFolders for all replicated folders on remote server SRV02:

wmic /node:srv02 path win32_perfformatteddata_dfsr_dfsreplicatedfolders get /format:textvaluelist

To view the data from Win32_PerfFormattedData_Dfsr_DFSReplicatedFolders for a single replicated folder:

wmic path win32_perfformatteddata_dfsr_dfsreplicatedfolders where name="dfsrtest-{09B41446-7175-49E4-88ED-0B2D9B61F884}" get /format:textvaluelist

Using VBScript to Vew DFSR Peformance Data

The Scriptomatic 2.0 provides a simple way to create sample scripts.

  1. Download Scriptomatic 2.0.
  2. Double-click Scriptomaticv2.hta.
  3. Leave the WMI Namespace drop-down menu on root\CIMV2.
  4. Select a DFSR perf class from the WMI Class drop-down menu, for example, Win32_PerfFormattedData_Dfsr_DFSReplicatedFolders.
  5. Click the Run button at the top left to run the script.
  6. To output data from multiple servers, add the server names, comma-delimited, to the Target Computers field at the bottom, then select Update Script at the bottom right.

DFS Replication Performance Objects

  • DFS Replicated Folders
  • DFS Replication Connections
  • DFS Replication Service Volumes

DFS Replicated Folders Counters

  • Bandwidth Savings Using DFS Replication

    Bandwidth Savings Using DFS Replication shows the percentage of bandwidth that was saved by the DFS Replication service for this replicated folder using a  combination of remote differential compression (RDC) and other compression technologies that minimize network bandwidth. For example, a value of 20 indicates  that the DFS Replication service used 20% less bandwidth than it would have used if it had transmitted the entire files uncompressed over the network.
     
  • Compressed Size of Files Received

    Compressed Size of Files Received shows the compressed size (in bytes) of files received for this replicated folder.
     
  • Conflict Bytes Cleaned up

    Conflict Bytes Cleaned up shows the total size (in bytes) of the conflict loser files and folders that were deleted from the Conflict and Deleted folder by  the DFS Replication service. The DFS Replication service automatically detects and resolves conflicts encountered in replicated folders and moves the losing  version to the Conflict and Deleted folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of  the quota.
     
  • Conflict Bytes Generated

    Conflict Bytes Generated shows the total size (in bytes) of the files and folders in this replicated folder that were moved to the Conflict and Deleted  folder by the DFS Replication service. The DFS Replication service automatically detects and resolves conflicts encountered in replicated folders and moves  the losing version to the Conflict and Deleted folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured  threshold of the quota.
     
  • Conflict Files Cleaned up

    Conflict Files Cleaned up shows the number the conflict loser files and folders that were deleted from the Conflict and Deleted folder by the DFS Replication  service. The DFS Replication service automatically detects and resolves conflicts encountered in replicated folders and moves the losing version to the  Conflict and Deleted folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of the quota.
     
  • Conflict Files Generated

    Conflict Files Generated shows the number of files and folders in this replicated folder that were moved to the Conflict and Deleted folder by the DFS  Replication service. The DFS Replication service automatically detects and resolves conflicts encountered in replicated folders and moves the losing version  to the Conflict and Deleted folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of the  quota.
     
  • Conflict Folder Cleanups Completed

    Conflict Folder Cleanups Completed shows the number of times conflict loser files and folders in the Conflict and Deleted folder were deleted by the DFS  Replication service. The DFS Replication service automatically detects and resolves conflicts encountered in replicated folders and moves the losing version  to the Conflict and Deleted folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of the  quota.
     
  • Conflict Space In Use

    Conflict Space in Use shows the total size (in bytes) of the conflict loser files and folders currently in the Conflict and Deleted folder used by the DFS  Replication service. The DFS Replication service automatically detects and resolves conflicts encountered in replicated folders and moves the losing version  to the Conflict and Deleted folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of the  quota.
     
  • Deleted Bytes Cleaned up

    Deleted Bytes Cleaned up shows the total size (in bytes) of replicating deleted files and folders (in bytes) that were cleaned up from the Conflict and  Deleted folder by the DFS Replication service. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold  of the quota.
  • Deleted Bytes Generated

    Deleted Bytes Generated shows the total size (in bytes) of replicated deleted files and folders that were moved to the Conflict and Deleted folder after they  were deleted from a replicated folder on a sending member. The DFS Replication service automatically cleans up the Conflict and Deleted folder when it  exceeds a pre-configured threshold of the quota.
     
  • Deleted Files Cleaned up

    Deleted Files Cleaned up shows the number of replicated deleted files and folders that were cleaned up from the Conflict and Deleted folder by the DFS  Replication service. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of the quota.
     
  • Deleted Files Generated

    Deleted Files Generated shows the number of replicated deleted files and folders that were moved to the Conflict and Deleted folder after they were deleted  from a replicated folder on a sending member. The DFS Replication service automatically cleans up the Conflict and Deleted folder when it exceeds a  pre-configured threshold of the quota.
     
  • Deleted Space In Use

    Deleted Space in Use shows the total size (in bytes) of the deleted files and folders currently in the Conflict and Deleted folder used by the DFS  Replication service. The DFS Replication service detects remote deletes from its sending partner and moves the file or folder to the Conflict and Deleted  folder. The service automatically cleans up the Conflict and Deleted folder when it exceeds a pre-configured threshold of the quota.
     
  • File Installs Retried

    File Installs Retried shows the number of file installs that are being retried due to sharing violations or other errors encountered when installing the  files. The DFS Replication service replicates staged files into the staging folder, uncompresses them in the Installing folder, and renames them to the  target location. The second and third steps of this process are known as installing the file.
     
  • File Installs Succeeded

    File Installs Succeeded shows the number of files that were successfully received from sending members and installed locally on this server. The DFS  Replication service replicates staged files into the staging folder, uncompresses them in the Installing folder, and renames them to the target location. The  second and third steps of this process are known as installing the file.
     
  • RDC Bytes Received

    RDC Bytes Received shows the number of bytes that were received in replicating files using remote differential compression (RDC) for this replicated folder.  This is the actual bytes received over the network without the networking protocol overhead.
     
  • RDC Compressed Size of Files Received

    RDC Compressed Size of Files Received shows the compressed size (in bytes) of the files received with remote differential compression (RDC) for this  replicated folder. This is the number of bytes that would have been received had RDC not been used. This is not the actual bytes received over the network.
     
  • RDC Number of Files Received

    RDC Number of Files Received shows the number files that were received for this replicated folder.
     
  • RDC Size of Files Received

    RDC Size of Files Received shows the uncompressed size (in bytes) of the files received with remote differential compression (RDC) for this replicated  folder. This is the number of bytes that would have been received had neither compression nor RDC been used. This is not the actual bytes received over the  network.
     
  • Size of Files Received

    Size of Files Received shows the uncompressed size (in bytes) of the files received for this replicated folder. This is the number of bytes that would have  been received had DFS Replication compression not been used.
     
  • Staging Bytes Cleaned up

    Staging Bytes Cleaned up shows the total size (in bytes) of the files and folders that were cleaned up from the staging folder by the DFS Replication  service. The DFS Replication service stages files and folders in the staging folder before they are replicated, and automatically cleans up the staging  folder when it exceeds a pre-configured threshold of the quota.
     
  • Staging Bytes Generated

    Staging Bytes Generated shows the total size (in bytes) of replicated files and folders in the staging folder created by the DFS Replication service since  last restart and is monotonically increasing counter. The DFS Replication service stages files and folders in the staging folder before they are replicated,  and automatically cleans up the staging folder when it exceeds a pre-configured threshold of the quota.
     
  • Staging Files Cleaned up

    Staging Files Cleaned up  shows the number of files and folders that were cleaned up from the staging folder by the DFS Replication service. The DFS  Replication service stages files and folders in the staging folder before they are replicated, and automatically cleans up the staging folder when it exceeds  a pre-configured threshold of the quota.
     
  • Staging Files Generated

    Staging Files Generated shows the number of times replicated files and folders were staged by the DFS Replication service. The DFS Replication service stages  files and folders in a staging folder before they are replicated, and automatically cleans up the staging folder when it exceeds a pre-configured threshold  of the quota.
     
  • Staging Space In Use

    Staging Space In Use shows the total size (in bytes) of the files and folders currently in the staging folder used by the DFS Replication service. This  counter will fluctuate as staging space is reclaimed. The DFS Replication service stages files and folders in the staging folder before they are replicated,  and automatically cleans up the staging folder when it exceeds a pre-configured threshold of the quota.
     
  • Total Files Received

    Total Files Received shows the number of files that were received by this replicated folder.
     
  • Updates Dropped

    Updates Dropped shows the number of redundant file replication update records that were ignored by the DFS Replication service because they did not change  the replicated file or folder. For example, dropped updates can occur when access control lists (ACLs) are overwritten with identical ACLs on a file or  folder.

DFS Replication Connections Counters

  • Bandwidth Savings Using DFS Replication

    Bandwidth Savings Using DFS Replication shows the percentage of bandwidth that was saved by the DFS Replication service for this connection using a  combination of remote differential compression (RDC) and other compression technologies that minimize network bandwidth use. For example, a value of 20  indicates that the DFS Replication service used 20% less bandwidth than it would have used if it had transmitted the entire files uncompressed over the  network.
     
  • Bytes Received Per Second

    Bytes Received Per Second shows an estimate of the average number of bytes that were received each second over the past 30 seconds.
     
  • Compressed Size of Files Received

    Compressed Size of Files Received shows the compressed size of files (in bytes) received on the connection.
     
  • RDC Bytes Received

    RDC Bytes Received shows the bytes that were received on this connection while replicating files using remote differential compression (RDC). This is the  actual bytes received over the network without the networking protocol overhead.
     
  • RDC Compressed Size of Files Received

    RDC Compressed Size of Files Received shows the compressed size (in bytes) of files received with remote differential compression (RDC) for this connection.  This is the number of bytes that would have been received had RDC not been used. This is not the actual number of bytes received over the network.
     
  • RDC Number of Files Received

    RDC Number of Files Received shows the number files that were received on this connection.
     
  • RDC Size of Files Received

    RDC Size of Files Received shows the uncompressed size (in bytes) of files received with remote differential compression (RDC) for this connection. This is  the number of bytes that would have been received had neither compression nor RDC been used. This is not the actual number of bytes received over the  network.
     
  • Size of Files Received

    Size of Files Received shows the uncompressed size (in bytes) of the files received on this connection. This is the number of bytes that would have been  received had DFS Replication compression not been used.
     
  • Total Bytes Received

    Total Bytes Received shows the total number of bytes received on the connection. The bytes received value includes file data and replication metadata.
     
  • Total Files Received

    Total Files Received shows the number of files that were received on the connection.

DFS Replication Service Volumes Counters

  • Database Commits

    Database Commits shows the number of database commit operations performed by the DFS Replication service. This counter indicates how intensive the DFS  Replication service is from a database perspective.
     
  • Database Lookups

    Database Lookups shows the number of database search operations performed by the DFS Replication service This counter indicates how intensive the DFS  Replication service is from a database perspective.
     
  • USN Journal Records Accepted

    USN Journal Records Accepted shows the number of update sequence number (USN) journal records that were processed by the DFS Replication service. The DFS  Replication service processes all USN journal records for replicated content on a volume and ignores records for non-replicated files and folders on the  volume.
     
  • USN Journal Records Read

    USN Journal Records Read shows the number of update sequence number (USN) journal records that were read by the DFS Replication service.
     
  • USN Journal Unread Percentage

    USN Journal Unread Percentage shows the percent of the update sequence number (USN) journal that has not yet been read and processed by the DFS Replication  service. A journal wrap will occur if this counter reaches 100.