“Resource Governor in SQL Server Performance Tuning”
Resource Governor is a feature that can manage SQL Server Workload and System Resource Consumption.
There are different nature of workloads like heavy, light workloads. SQL Server processes various types of workloads like SQL queries, transactions.
If heavy workload takes all the memory from CPU and because of that other operations to get affected then it is a very bad thing.
In order to process these workloads, the appropriate CPU power and RAM memory needs to be allocated. Resource governor is used for how much memory and CPU should be allocated to the resources.
Steps for the Resource Governor as follows -
- Firstly, go to the Management →Click on the Resource Governor →Create a New Resource Pool.
- Create a User-Defined Function →This function is created in the master database →It will map the incoming SQL request to the accurate workload.
- If there are different workloads running on SQL Server and each of the workloads needs different resources or when workloads are competing for resources with each other and affecting the performance of the whole server resource governor is an important task.
- For example, the resource governor helps to goes and create pulls and say that one process gives 80% and the other 20%.
- Workload groups are created under the MyRsourcePool.
- To see how memory allocated to the resources go to the performance monitor →For this run the command PerfMon.
- In this first, Remove all counters →Then Right-click on white space →Click on Add counters.
- After that add Resource pool stat counter →Add default, internal and MyResourcePool →Click on ok.
- For example, the resource governor helps to goes and create pulls and say that one process gives 80% and the other 20%.
- Finally, it will show the performance.
Comments
Post a Comment