Re: CPU usage on SQL server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: David Gugick (davidg-nospam_at_imceda.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 13:19:03 -0400

Meg wrote:
> Hi,
>
> I have a quad processor clustered database server that is experiencing
> significant performance problems. There are multiple user databases
> on ther server, and the issues manifest themselves in different ways.
> We have had users unable to save to a database to complete slow down
> of the whole server. The issues seem to be more prevalent in the
> morning, but we have had them throughout the day as well. In
> monitoring the CPU usage we noticed that most of the activity is
> going through only 1 of the CPU's. CPU 0 can peak at 100%
> utilisation, and the other 3 have little or no activity at all.
> There has been no changes to any settings and the SQL Server install
> is pretty standard. Does anyone have any ideas?

Have you assigned SQL Server all CPUs? Are you using MAXDOP 1 option in
your queries or have you set the "max degree of parallelism" option on
the server? I would think SQL Server would use all CPUs even if MAXDOP 1
were used when running multiple queries. It's probably some bad query
that is running on a single CPU that is causing the CPU spike. Many
query operations run on a single CPU. And blocking is probably the
problem, not the CPU per se. Although the high CPU is probably causing
extended locking and blocking problems.

You need to profile your database and see how your queries are
performing and figure out which ones are running for long periods and
locking resources required by other SPIDs.

-- 
David Gugick
Imceda Software
www.imceda.com 


Relevant Pages

  • Re: SQL 2005 Performance
    ... we had a complaint at my current gig about 70% CPU utilization at ... SQL Server MVP ... this one database. ... I've got 141 databases on this server. ...
    (microsoft.public.sqlserver.server)
  • Horrible (8x) Client-Server Performance
    ... App Server- 8 logical xeon 2.8ghz cpu, ... Fibre Channel SAN housing the database ... the Application server connecting to the DB server via client-server ... We have eliminated network to be the constraint by connecting both ...
    (comp.databases.progress)
  • Performance Problems.. Server hardware smoked by $500 box?
    ... webserver with a separate db/file server sitting behind it. ... Now granted the development machine has the most Mhz, ... CPU: Intel Pentium III Origin = ... Ubench CPU: 25713 ...
    (freebsd-performance)
  • Performance Problems.. Server hardware smoked by $500 box?
    ... webserver with a separate db/file server sitting behind it. ... Now granted the development machine has the most Mhz, ... CPU: Intel Pentium III Origin = ... Ubench CPU: 25713 ...
    (freebsd-questions)
  • Re: Processor Based License Model
    ... > CPU SMP system under Windows is that you don't necessarily get the same ... > Maybe for databases what we really need is a license that permits X number ... > upgrade w/o increasing your licensing costs for the database. ... > certainly allow you to have a large SMP server and put a database ...
    (comp.os.vms)