Skip to content

Commit 7953aa9

Browse files
Merge pull request #34495 from dimitri-furman/dfurman/resource-governor
Clarify the lifetime of RG statistics
1 parent 29ce2ca commit 7953aa9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/relational-databases/system-dynamic-management-views/sys-dm-resource-governor-resource-pools-transact-sql.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ Returns information about the current resource pool state, the current configura
8686

8787
Resource governor workload groups and resource pools have a many-to-one mapping. As a result, many of the resource pool statistics are derived from the workload group statistics.
8888

89+
Statistics are tracked since the last start of the [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] and can be reset by executing `ALTER RESOURCE GOVERNOR RESET STATISTICS`.
90+
8991
This dynamic management view shows the in-memory configuration. To see the stored configuration metadata, use the `sys.resource_governor_resource_pools` catalog view.
9092

9193
## Permissions

docs/relational-databases/system-dynamic-management-views/sys-dm-resource-governor-workload-groups-transact-sql.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ms.custom:
2626

2727
[!INCLUDE [sql-asdb-asdbmi-asa-pdw](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)]
2828

29-
Returns workload group statistics and the current in-memory configuration of the workload group. This view can be joined with [sys.dm_resource_governor_resource_pools](sys-dm-resource-governor-resource-pools-transact-sql.md) to get the resource pool name.
29+
Returns workload group statistics and the current in-memory configuration of the workload group.
3030

3131
> [!NOTE]
3232
> To call this from [!INCLUDE[ssazuresynapse-md](../../includes/ssazuresynapse-md.md)] or [!INCLUDE[ssPDW](../../includes/sspdw-md.md)], use the name **sys.dm_pdw_nodes_resource_governor_workload_groups**. [!INCLUDE[synapse-analytics-od-unsupported-syntax](../../includes/synapse-analytics-od-unsupported-syntax.md)]
@@ -71,7 +71,9 @@ Returns workload group statistics and the current in-memory configuration of the
7171

7272
This dynamic management view shows the in-memory configuration. To see the stored configuration metadata, use the [sys.resource_governor_workload_groups](../../relational-databases/system-catalog-views/sys-resource-governor-workload-groups-transact-sql.md) catalog view.
7373

74-
When `ALTER RESOURCE GOVERNOR RESET STATISTICS` is successfully executed, the following counters are reset: `statistics_start_time`, `total_request_count`, `total_queued_request_count`, `total_cpu_limit_violation_count`, `total_cpu_usage_ms`, `max_request_cpu_time_ms`, `total_lock_wait_count`, `total_lock_wait_time_ms`, `total_query_optimization_count`, `total_suboptimal_plan_generation_count`, `total_reduced_memgrant_count`, `max_request_grant_memory_kb`, `peak_tempdb_data_space_kb`, and `total_tempdb_data_limit_violation_count`. The counter `statistics_start_time` is set to the current system date and time, and the other counters are set to zero (0).
74+
This view can be joined with [sys.dm_resource_governor_resource_pools](sys-dm-resource-governor-resource-pools-transact-sql.md) to get the resource pool name.
75+
76+
Statistics are tracked since the last start of the [!INCLUDE [ssDE-md](../../includes/ssde-md.md)]. When `ALTER RESOURCE GOVERNOR RESET STATISTICS` is executed, the following counters are reset: `statistics_start_time`, `total_request_count`, `total_queued_request_count`, `total_cpu_limit_violation_count`, `total_cpu_usage_ms`, `max_request_cpu_time_ms`, `total_lock_wait_count`, `total_lock_wait_time_ms`, `total_query_optimization_count`, `total_suboptimal_plan_generation_count`, `total_reduced_memgrant_count`, `max_request_grant_memory_kb`, `peak_tempdb_data_space_kb`, and `total_tempdb_data_limit_violation_count`. The counter `statistics_start_time` is set to the current system date and time, and the other counters are set to zero (`0`).
7577

7678
## Permissions
7779

0 commit comments

Comments
 (0)