Presentation is loading. Please wait.

Presentation is loading. Please wait.

DBI311.  Resource Governor – Feature Overview  Architecture Overview  “What”, “Why”, “How” of IO governance  What has Changed- XEvents, DMVs & PerfMon.

Similar presentations


Presentation on theme: "DBI311.  Resource Governor – Feature Overview  Architecture Overview  “What”, “Why”, “How” of IO governance  What has Changed- XEvents, DMVs & PerfMon."— Presentation transcript:

1 DBI311

2  Resource Governor – Feature Overview  Architecture Overview  “What”, “Why”, “How” of IO governance  What has Changed- XEvents, DMVs & PerfMon  Feature DEMO  Real-Time workload- TPC DEMO  Summary & Call to Action

3 Resource Governor was first introduced CPU and Memory governance Resource Governor- Feature Overview Affinity CPU_CAP_PERCENT 20122008 IO Governance 2014 3 Feature Goals Minimize run-away queries Improve predictability of query execution

4 Attaining Balanced System 4 What is a balanced system? A system where most expensive resource can be leveraged to its maximum without any other components in the system bottlenecking it The five main components of a Balanced System Concept: Juergen Thomas Microsoft

5 Resource Governor Architecture 5 ……. Attributes

6 Why govern IOs?

7 What can be governed? SSAS SSISSSRS Yes Read I/O Write I/O (some caveats) Physical Reads Data Files No Internal Pool Logical Reads Log Files Future Improvements? Network I/O Better support for Hekaton (In-Memory)

8

9 ALTER RESOURCE GOVERNOR { DISABLE | RECONFIGURE } | WITH ( CLASSIFIER_FUNCTION = { schema_name.function_name | NULL } ) | RESET STATISTICS | WITH ( MAX_OUTSTANDING_IO_PER_VOLUME = value) [ ; ]

10 10 Newly added columns (sys.dm_resource_governor_resource_pools) min_iops_per_volume, Int, NullableThe Min IOPS per Volume setting for this Pool. Null if Pool is not governed for IO, i.e. Min=0, Max=INF max_iops_per_volume, Int, NullableThe Max IOPS per Volume setting for this Pool. Null if unlimited. read_ios_queued_total, Int, NullableThe total read IOs enqueued since we reset the RG statistics. read_ios_issued_total, Int, NullableThe total read IOs issued since we reset the RG statistics. read_ios_completed_total, Int, NotNullThe total read IOs completed since we reset the RG statistics. read_bytes_total, Bigint, NotNullThe total bytes read since we reset the RG statistics. read_io_stall_total_ms, Bigint, NullableTotal time between read IO issue and completion read_io_stall_queued_ms, Bigint, Nullable Total time between read IO arrival and completion. read_io_stall_queued_ms - read_io_stall_total_ms is the latency introduced because of IO resource governance.

11 Newly added DMV for IO Workload (sys.dm_resource_governor_resource_pool_volu mes) pool_id, Int, NotNullID of the resource pool volume_name, String, NotNullName of the disk volume read_ios_queued_total, Int, NullableThe total read IOs enqueued since we reset the RG statistics. read_ios_issued_total, Int, NullableThe total read IOs issued since we reset the RG statistics. read_ios_completed_total, Int, NotNullThe total read IOs completed since we reset the RG statistics. read_bytes_total, Bigint, NotNullThe total bytes read since we reset the RG statistics. read_io_stall_total_ms, Bigint, NullableTotal time between read IO issue and completion read_io_stall_queued_ms, Bigint, Nullable Total time between read IO arrival and completion. read_io_stall_queued_ms - read_io_stall_total_ms is the latency introduced because of IO resource governance.

12 12 XEvent Additions NameData file_read_enqueuedmode file_handle offset database_id file_id filegroup_id size path NameData file_write_enqueuedmode file_handle offset database_id file_id filegroup_id size path io_data

13 What has Changed- PerfMon 13 Disk Read IOs/secNumber of read operations from the disk in the last second Disk Read Bytes/secNumber of bytes read from the disk in the last second Avg. Disk Read IO (ms) Average time, in milliseconds, of a read operation from the disk Disk Write IOs/secNumber of write operations to the disk in the last second Disk Write Bytes/secNumber of bytes written to the disk in the last second Avg. Disk Write IO (ms) Average time, in milliseconds, of a write operation to the disk

14

15

16 Tricks MAX_OUTSTANDING_IO_PER_VOL UME There is no recommended value (max = 100). We suggest users to test the performance with different values (i.e. using SQLIO) CLASSIFIER function Should be in master Triggered at connect Tricks to efficiently utilize IO_PER_VOL

17

18 Subscribe to our fortnightly newsletter http://aka.ms/technetnz http://aka.ms/msdnnz Free Virtual Hands-on Labs http://aka.ms/ch9nz Free Online Learning http://aka.ms/mva http://aka.ms/technetlabs Sessions on Demand

19

20


Download ppt "DBI311.  Resource Governor – Feature Overview  Architecture Overview  “What”, “Why”, “How” of IO governance  What has Changed- XEvents, DMVs & PerfMon."

Similar presentations


Ads by Google