SlideShare a Scribd company logo
Dinesh Asanka
Database Specialist
Pearson Lanka (Pvt) Ltd.
http://twitter.com/dineshasanka
http://www.dbfriend.net/
dinesha@ecollege.com
RESOURCE GOVERNOR TO
CONTROL RESOURCE
UTILIZATION
Forum Post
• My SQL Server is accessed by several end user applications.
• When all the applications are in action my server performance is
bad.
• Some of those applications are business critical hence they should
not be disturbed by other application.
• How to allocate specific hardware resources for these business
critical applications?
What are your solutions for this?
• Move relevant databases to a different server.
• You can use SQL Server techniques like Mirroring, Log shipping,
Database Snapshot and Replication.
What We Want Is,
What is Resource Governor
• Resource Governor is a new technology in SQL Server 2008.
• Resource Governor enables you to differentiate these workloads
and allocate shared resources as they are requested, based on the
limits that you specify.
• Resource Governor is a quota system for SQL Server Resource.
• These resources are CPU and memory.
Types of Resource Issues
• “Non-Ending” queries.
• Unpredictable work loads.
• Limiting the CPU usage by backup jobs using backup compression.
• Setting workload priority.
RESOURCE
GOVERNOR
CONCEPTS
Workload Groups
• Way of grouping loads by tasks, connections
• Assigned to a specific resource pool
• Internal tasks are part of internal Workload Group.
• e.g. Checkpoint, Ghost Cleanup
• Internal groups do not have any limits and can over turn other groups
regardless of their limits.
• Default group for the behavior of no resource governor running and will
over turn by other groups.
Workload Groups Options
Option Description Default
IMPORTANCE
Importance between workload
groups using the same
resource pool.
MEDIUM
REQUEST_MAX_MEMORY_GRANT_PERCENT
Max memory grant from the
resource pool for query
execution.
25%
REQUEST_MEMORY_GRANT_TIMEOUT_SEC
How long to wait for a query
execution memory grant .
0
REQUEST_MAX_CPU_TIME_SEC
Max amount of CPU time a
request can use
0
MAX_DOP Max degree of parallelism. 0
GROUP_MAX_REQUESTS
Maximum concurrent requests
per group.
0
Classification
• Incoming connection are classified into Workload Groups.
• T-SQL function
• HOST_NAME, APP_NAME, SUSER_NAME, IS_MEMBER,
CONNECTIONPROPERTY are the system functions we can used.
Resource Pools
• A resource pool is to limit resource consumption for one or more
workload groups.
Option Default
MIN_CPU_PERCENT 0
MAX_CPU_PERCENT 100
MIN_MEMORY_PERCENT 0
MAX_MEMORY_PERCENT 100
• Default and internal pools has the above values which cannot be
altered.
• Number of pools should be less than 20
Source: MSDN
RESOURCE GOVERNER
Monitoring
• Perfmon
• SQLServer: Resource Pool Stats
• SQLServer:Workload Group Stats
• DMVs
• sys.dm_resource_governor_configuration
• sys.dm_resource_governor_workload_groups
• sys.dm_resource_governor_resource_pools
• Modified DMVS
• sys.dm_exec_requests
• sys.dm_os_memory_brokers
New in Denali
• Support for 64 resource pools
• Enhanced CPU usage controls
• Enhanced resource allocation
My Field Notes
• Alter large table with 150 millions rows without effecting current
load.
• One Column was changed varchar(8000) to nvarchar(max).
• Another Column was change to text to varchar(max)
• High CPU due to page splits and conversion took 7-8 hrs.
PN
• Resource Governor does not impose any controls on a dedicated
administrator connection aka DAC.
Limitations
• Resource management is limited to the SQL Server Database
Engine.
• There is limited workload monitoring or workload management
between SQL Server instances.
• Limit specification applies to CPU bandwidth and memory
managed by SQL Server.
• Resource Governor is available only on the Enterprise, Developer,
and Evaluation editions of SQL Server.
QUESTIONS &
ANSWERS
Resources
• http://www.sql-server-performance.com/2008/resource-governor-
in-sql-server-2008/
• http://msdn.microsoft.com/en-us/library/bb933866.aspx

More Related Content

What's hot

Sql server troubleshooting
Sql server troubleshootingSql server troubleshooting
Sql server troubleshooting
Nathan Winters
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffy
Anuradha
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologiesvenkatchs
 
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 EditionSQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
Mark Broadbent
 
Always on in SQL Server 2012
Always on in SQL Server 2012Always on in SQL Server 2012
Always on in SQL Server 2012
Fadi Abdulwahab
 
resource governor
resource governorresource governor
resource governor
Aaron Shilo
 
WebLogic Server Work Managers and Overload Protection
WebLogic Server Work Managers and Overload ProtectionWebLogic Server Work Managers and Overload Protection
WebLogic Server Work Managers and Overload Protection
James Bayer
 
Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101
IDERA Software
 
Analytics work space manager installation
Analytics work space manager installationAnalytics work space manager installation
Analytics work space manager installation
Ravi Kumar Lanke
 
Weblogic performance tuning1
Weblogic performance tuning1Weblogic performance tuning1
Weblogic performance tuning1
Aditya Bhuyan
 
Weblogic security
Weblogic securityWeblogic security
Weblogic security
Aditya Bhuyan
 
Alwayson AG enhancements
Alwayson AG enhancementsAlwayson AG enhancements
Alwayson AG enhancements
Harsh Chawla
 
JPA and Coherence with TopLink Grid
JPA and Coherence with TopLink GridJPA and Coherence with TopLink Grid
JPA and Coherence with TopLink GridJames Bayer
 
Weblogic performance tuning2
Weblogic performance tuning2Weblogic performance tuning2
Weblogic performance tuning2
Aditya Bhuyan
 
Weblogic plug in
Weblogic plug inWeblogic plug in
Weblogic plug in
Aditya Bhuyan
 
Sql server backup internals
Sql server backup internalsSql server backup internals
Sql server backup internals
Hamid J. Fard
 
שבוע אורקל 2016
שבוע אורקל 2016שבוע אורקל 2016
שבוע אורקל 2016Aaron Shilo
 
Fundamentals of SQL Server 2012 Availability groups
Fundamentals of SQL Server 2012 Availability groupsFundamentals of SQL Server 2012 Availability groups
Fundamentals of SQL Server 2012 Availability groupsEdwin M Sarmiento
 

What's hot (18)

Sql server troubleshooting
Sql server troubleshootingSql server troubleshooting
Sql server troubleshooting
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffy
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologies
 
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 EditionSQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
 
Always on in SQL Server 2012
Always on in SQL Server 2012Always on in SQL Server 2012
Always on in SQL Server 2012
 
resource governor
resource governorresource governor
resource governor
 
WebLogic Server Work Managers and Overload Protection
WebLogic Server Work Managers and Overload ProtectionWebLogic Server Work Managers and Overload Protection
WebLogic Server Work Managers and Overload Protection
 
Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101
 
Analytics work space manager installation
Analytics work space manager installationAnalytics work space manager installation
Analytics work space manager installation
 
Weblogic performance tuning1
Weblogic performance tuning1Weblogic performance tuning1
Weblogic performance tuning1
 
Weblogic security
Weblogic securityWeblogic security
Weblogic security
 
Alwayson AG enhancements
Alwayson AG enhancementsAlwayson AG enhancements
Alwayson AG enhancements
 
JPA and Coherence with TopLink Grid
JPA and Coherence with TopLink GridJPA and Coherence with TopLink Grid
JPA and Coherence with TopLink Grid
 
Weblogic performance tuning2
Weblogic performance tuning2Weblogic performance tuning2
Weblogic performance tuning2
 
Weblogic plug in
Weblogic plug inWeblogic plug in
Weblogic plug in
 
Sql server backup internals
Sql server backup internalsSql server backup internals
Sql server backup internals
 
שבוע אורקל 2016
שבוע אורקל 2016שבוע אורקל 2016
שבוע אורקל 2016
 
Fundamentals of SQL Server 2012 Availability groups
Fundamentals of SQL Server 2012 Availability groupsFundamentals of SQL Server 2012 Availability groups
Fundamentals of SQL Server 2012 Availability groups
 

Viewers also liked

Educational system in japan
Educational system in japanEducational system in japan
Educational system in japan
chiriter
 
Education in Japan
Education in JapanEducation in Japan
Education in JapanDarcidai
 
Education system in the USA
Education system in the USAEducation system in the USA
Education system in the USAjulia_martinez
 
Education in-pakistan
Education in-pakistanEducation in-pakistan
Education in-pakistanHumayoun Aziz
 
Educational policy
Educational policyEducational policy
Educational policy
International advisers
 
National policy on education
National policy on education National policy on education
National policy on education
Priyanka Chaurasia
 
PAKISTAN Education System
PAKISTAN Education SystemPAKISTAN Education System
PAKISTAN Education SystemHumaira Imran
 
Pakistan Education Plan
Pakistan Education PlanPakistan Education Plan
Pakistan Education PlanMinhaaj Rehman
 

Viewers also liked (9)

Educational System of Japan
Educational System of JapanEducational System of Japan
Educational System of Japan
 
Educational system in japan
Educational system in japanEducational system in japan
Educational system in japan
 
Education in Japan
Education in JapanEducation in Japan
Education in Japan
 
Education system in the USA
Education system in the USAEducation system in the USA
Education system in the USA
 
Education in-pakistan
Education in-pakistanEducation in-pakistan
Education in-pakistan
 
Educational policy
Educational policyEducational policy
Educational policy
 
National policy on education
National policy on education National policy on education
National policy on education
 
PAKISTAN Education System
PAKISTAN Education SystemPAKISTAN Education System
PAKISTAN Education System
 
Pakistan Education Plan
Pakistan Education PlanPakistan Education Plan
Pakistan Education Plan
 

Similar to Using Resource Governor to Control Resource Utilization

Investigate SQL Server Memory Like Sherlock Holmes
Investigate SQL Server Memory Like Sherlock HolmesInvestigate SQL Server Memory Like Sherlock Holmes
Investigate SQL Server Memory Like Sherlock Holmes
Richard Douglas
 
Capacity & Performance Management in Solaris Virtualized Environment
Capacity & Performance Management in Solaris Virtualized EnvironmentCapacity & Performance Management in Solaris Virtualized Environment
Capacity & Performance Management in Solaris Virtualized Environment
Neeraj Bhatia
 
high performance databases
high performance databaseshigh performance databases
high performance databases
mahdi_92
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
Monitorando performance no Azure SQL Database
Monitorando performance no Azure SQL DatabaseMonitorando performance no Azure SQL Database
Monitorando performance no Azure SQL Database
Vitor Fava
 
Presentation cloud control enterprise manager 12c
Presentation   cloud control enterprise manager 12cPresentation   cloud control enterprise manager 12c
Presentation cloud control enterprise manager 12c
xKinAnx
 
SQL 2014 In-Memory OLTP
SQL 2014 In-Memory  OLTPSQL 2014 In-Memory  OLTP
SQL 2014 In-Memory OLTP
Amber Keyse
 
Unit 2 oracle9i
Unit 2  oracle9i Unit 2  oracle9i
Unit 2 oracle9i
DrkhanchanaR
 
DB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerDB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource Manager
Maris Elsins
 
Geek Sync I Dealing with Bad Roommates - SQL Server Resource Governor
Geek Sync I Dealing with Bad Roommates - SQL Server Resource GovernorGeek Sync I Dealing with Bad Roommates - SQL Server Resource Governor
Geek Sync I Dealing with Bad Roommates - SQL Server Resource Governor
IDERA Software
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014
Ryusuke Kajiyama
 
Planning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMPlanning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMWASdev Community
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
Alessandro Melchiori
 
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim RadneyCommon SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
Embarcadero Technologies
 
SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type Explained
Confio Software
 
MySQL Optimization from a Developer's point of view
MySQL Optimization from a Developer's point of viewMySQL Optimization from a Developer's point of view
MySQL Optimization from a Developer's point of view
Sachin Khosla
 
How to improve your apache web server’s performance
How to improve your apache web server’s performanceHow to improve your apache web server’s performance
How to improve your apache web server’s performance
Andolasoft Inc
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Zohar Elkayam
 
MICROSOFT SQL Server
MICROSOFT SQL ServerMICROSOFT SQL Server
MICROSOFT SQL Serverwebhostingguy
 

Similar to Using Resource Governor to Control Resource Utilization (20)

Investigate SQL Server Memory Like Sherlock Holmes
Investigate SQL Server Memory Like Sherlock HolmesInvestigate SQL Server Memory Like Sherlock Holmes
Investigate SQL Server Memory Like Sherlock Holmes
 
Capacity & Performance Management in Solaris Virtualized Environment
Capacity & Performance Management in Solaris Virtualized EnvironmentCapacity & Performance Management in Solaris Virtualized Environment
Capacity & Performance Management in Solaris Virtualized Environment
 
high performance databases
high performance databaseshigh performance databases
high performance databases
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
 
Monitorando performance no Azure SQL Database
Monitorando performance no Azure SQL DatabaseMonitorando performance no Azure SQL Database
Monitorando performance no Azure SQL Database
 
Presentation cloud control enterprise manager 12c
Presentation   cloud control enterprise manager 12cPresentation   cloud control enterprise manager 12c
Presentation cloud control enterprise manager 12c
 
SQL 2014 In-Memory OLTP
SQL 2014 In-Memory  OLTPSQL 2014 In-Memory  OLTP
SQL 2014 In-Memory OLTP
 
Performance tuning in sql server
Performance tuning in sql serverPerformance tuning in sql server
Performance tuning in sql server
 
Unit 2 oracle9i
Unit 2  oracle9i Unit 2  oracle9i
Unit 2 oracle9i
 
DB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerDB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource Manager
 
Geek Sync I Dealing with Bad Roommates - SQL Server Resource Governor
Geek Sync I Dealing with Bad Roommates - SQL Server Resource GovernorGeek Sync I Dealing with Bad Roommates - SQL Server Resource Governor
Geek Sync I Dealing with Bad Roommates - SQL Server Resource Governor
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014
 
Planning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMPlanning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPM
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim RadneyCommon SQL Server Mistakes and How to Avoid Them with Tim Radney
Common SQL Server Mistakes and How to Avoid Them with Tim Radney
 
SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type Explained
 
MySQL Optimization from a Developer's point of view
MySQL Optimization from a Developer's point of viewMySQL Optimization from a Developer's point of view
MySQL Optimization from a Developer's point of view
 
How to improve your apache web server’s performance
How to improve your apache web server’s performanceHow to improve your apache web server’s performance
How to improve your apache web server’s performance
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
MICROSOFT SQL Server
MICROSOFT SQL ServerMICROSOFT SQL Server
MICROSOFT SQL Server
 

More from SQL Server Sri Lanka User Group

Minding SQL Server Memory
Minding SQL Server MemoryMinding SQL Server Memory
Minding SQL Server Memory
SQL Server Sri Lanka User Group
 
Using Extended Events
Using Extended EventsUsing Extended Events
Using Extended Events
SQL Server Sri Lanka User Group
 
Breaking a Myth in 600 Seconds: Seek is Always Better than Scan
Breaking a Myth in 600 Seconds: Seek is Always Better than ScanBreaking a Myth in 600 Seconds: Seek is Always Better than Scan
Breaking a Myth in 600 Seconds: Seek is Always Better than Scan
SQL Server Sri Lanka User Group
 
Windowing Functions in SQL Server
Windowing Functions in SQL ServerWindowing Functions in SQL Server
Windowing Functions in SQL Server
SQL Server Sri Lanka User Group
 
Anything SQL: Lightning Talks
Anything SQL: Lightning TalksAnything SQL: Lightning Talks
Anything SQL: Lightning Talks
SQL Server Sri Lanka User Group
 
Whirlwind DBA Demos
Whirlwind DBA DemosWhirlwind DBA Demos
Whirlwind DBA Demos
SQL Server Sri Lanka User Group
 
Why OLAP? How OLAP.
Why OLAP? How OLAP.Why OLAP? How OLAP.
Why OLAP? How OLAP.
SQL Server Sri Lanka User Group
 

More from SQL Server Sri Lanka User Group (7)

Minding SQL Server Memory
Minding SQL Server MemoryMinding SQL Server Memory
Minding SQL Server Memory
 
Using Extended Events
Using Extended EventsUsing Extended Events
Using Extended Events
 
Breaking a Myth in 600 Seconds: Seek is Always Better than Scan
Breaking a Myth in 600 Seconds: Seek is Always Better than ScanBreaking a Myth in 600 Seconds: Seek is Always Better than Scan
Breaking a Myth in 600 Seconds: Seek is Always Better than Scan
 
Windowing Functions in SQL Server
Windowing Functions in SQL ServerWindowing Functions in SQL Server
Windowing Functions in SQL Server
 
Anything SQL: Lightning Talks
Anything SQL: Lightning TalksAnything SQL: Lightning Talks
Anything SQL: Lightning Talks
 
Whirlwind DBA Demos
Whirlwind DBA DemosWhirlwind DBA Demos
Whirlwind DBA Demos
 
Why OLAP? How OLAP.
Why OLAP? How OLAP.Why OLAP? How OLAP.
Why OLAP? How OLAP.
 

Recently uploaded

一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
StarCompliance.io
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
ewymefz
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
AlejandraGmez176757
 

Recently uploaded (20)

一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
 

Using Resource Governor to Control Resource Utilization

  • 1. Dinesh Asanka Database Specialist Pearson Lanka (Pvt) Ltd. http://twitter.com/dineshasanka http://www.dbfriend.net/ dinesha@ecollege.com RESOURCE GOVERNOR TO CONTROL RESOURCE UTILIZATION
  • 2. Forum Post • My SQL Server is accessed by several end user applications. • When all the applications are in action my server performance is bad. • Some of those applications are business critical hence they should not be disturbed by other application. • How to allocate specific hardware resources for these business critical applications?
  • 3. What are your solutions for this? • Move relevant databases to a different server. • You can use SQL Server techniques like Mirroring, Log shipping, Database Snapshot and Replication.
  • 5. What is Resource Governor • Resource Governor is a new technology in SQL Server 2008. • Resource Governor enables you to differentiate these workloads and allocate shared resources as they are requested, based on the limits that you specify. • Resource Governor is a quota system for SQL Server Resource. • These resources are CPU and memory.
  • 6. Types of Resource Issues • “Non-Ending” queries. • Unpredictable work loads. • Limiting the CPU usage by backup jobs using backup compression. • Setting workload priority.
  • 8. Workload Groups • Way of grouping loads by tasks, connections • Assigned to a specific resource pool • Internal tasks are part of internal Workload Group. • e.g. Checkpoint, Ghost Cleanup • Internal groups do not have any limits and can over turn other groups regardless of their limits. • Default group for the behavior of no resource governor running and will over turn by other groups.
  • 9. Workload Groups Options Option Description Default IMPORTANCE Importance between workload groups using the same resource pool. MEDIUM REQUEST_MAX_MEMORY_GRANT_PERCENT Max memory grant from the resource pool for query execution. 25% REQUEST_MEMORY_GRANT_TIMEOUT_SEC How long to wait for a query execution memory grant . 0 REQUEST_MAX_CPU_TIME_SEC Max amount of CPU time a request can use 0 MAX_DOP Max degree of parallelism. 0 GROUP_MAX_REQUESTS Maximum concurrent requests per group. 0
  • 10. Classification • Incoming connection are classified into Workload Groups. • T-SQL function • HOST_NAME, APP_NAME, SUSER_NAME, IS_MEMBER, CONNECTIONPROPERTY are the system functions we can used.
  • 11. Resource Pools • A resource pool is to limit resource consumption for one or more workload groups. Option Default MIN_CPU_PERCENT 0 MAX_CPU_PERCENT 100 MIN_MEMORY_PERCENT 0 MAX_MEMORY_PERCENT 100 • Default and internal pools has the above values which cannot be altered. • Number of pools should be less than 20
  • 14. Monitoring • Perfmon • SQLServer: Resource Pool Stats • SQLServer:Workload Group Stats • DMVs • sys.dm_resource_governor_configuration • sys.dm_resource_governor_workload_groups • sys.dm_resource_governor_resource_pools • Modified DMVS • sys.dm_exec_requests • sys.dm_os_memory_brokers
  • 15. New in Denali • Support for 64 resource pools • Enhanced CPU usage controls • Enhanced resource allocation
  • 16. My Field Notes • Alter large table with 150 millions rows without effecting current load. • One Column was changed varchar(8000) to nvarchar(max). • Another Column was change to text to varchar(max) • High CPU due to page splits and conversion took 7-8 hrs.
  • 17. PN • Resource Governor does not impose any controls on a dedicated administrator connection aka DAC.
  • 18. Limitations • Resource management is limited to the SQL Server Database Engine. • There is limited workload monitoring or workload management between SQL Server instances. • Limit specification applies to CPU bandwidth and memory managed by SQL Server. • Resource Governor is available only on the Enterprise, Developer, and Evaluation editions of SQL Server.

Editor's Notes

  1. 7/8/2014 12:34 AM
  2. 7/8/2014 12:34 AM
  3. Presenters please use this slide to direct participants to websites, books, trials, product pages etc as a follow through to your presentation