Site sponsored by: Idera Try Idera’s new SQL admin toolset
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


FAQ Topics

All FAQ's
General DBA
General Developer
DBA Performance Tuning
Developer Performance Tuning
Clustering
Error Messages

Write for Us

Share you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Resource Governor in SQL Server 2008
Tweaks in SQL Server Reporting Services
Configure Filestream in SQL Server 2008
Capture DDL Changes using Change Data Capture with SQL Server 2008 ...

More     
 
Latest FAQ's

SQL Server Reporting Server (SSRS) service is failing to start ...
Cannot Start SQL Server Service
Users are able to connect to report manager but not able ...
Errors when SQL Server Snapshot Replication is Running

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

Is there any way to allocate processor utilization to SQL Server jobs?



Question

In the past couple of weeks, we have been running some jobs that take a lot of the CPU usage. I would like to know if there is any possible way to :

1. Distribute between
processors, the scheduled jobs.
2. Minimize the maximum amount of CPU usage that a job can take.

If there are any other
solutions, I would grateful to accept them and learn them.

 

Answer

Your question is a very common one, unfortunately, there is no good answer. While SQL
Server has some limited ability to control how many CPUs it uses, and there is the ability to give the mssqlserver service a priority boost over other applications running on the same physical server, there is no way to assign specific SQL Server processes or jobs to a specific CPU. Nor is there any way to assign only a portion of a CPUs resources to a specific process or job.

I assume you are asking this question because you want to more efficiently make use of the CPU resources on your server, and perhaps because the CPU utilization of your server has hit a bottleneck.

Assuming you have a CPU bottleneck, these are some of the most common ways to overcome it:

  • Get faster CPUs, or add additional CPUs.

  • Get CPUs with a larger L2 cache.

  • Tune your application so that it doesn't have SQL Server does not have to access the disk as often. For example, add indexes so table scans aren't needed, normalize your database to eliminate redundant data, etc.)

  • Schedule jobs so that they don't overlap.

  • Tune your queries to reduce the CPU load.

  • Move some of the processing load to another SQL Server.

  • Consider turning on Windows NT fibers.

  • Be sure that both OLTP and OLAP queries are not being run on the same server. These different database applications should be performed on separate servers.

  • Ensure that SQL Server is the only application running on the server (other than server management utilities).

  • Remove or disable all unnecessary services.

I mentioned earlier that SQL Server has some limited ability to control the number of CPUs it can use, and that there is the ability to give the mssqlserver service a priority boost over other applications running on the same physical server. Generally, if you are running SQL Server on a dedicated physical server, then there is little or no advantage in taking such action, and I don't personally recommend playing with the SQL Server settings that permit this.

If you are running SQL Server on a shared server (which I don't recommend from a performance perspective) fiddling with the above options might provide some benefits. But be prepared to do a lot of testing to be sure you get the results you expect.








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved