Solved

LATCH_EX with CXPACKET causing query performance degradation

Posted on 2009-05-13
1
1,904 Views
Last Modified: 2012-06-27
SQL Server 2000 SP4 Build 2187. When runing simple SELECT query with INNER joins causing LATCH_EX waittype with huge number of CXPACKET causing consistent high CPU with performance degradation. Indexes are in place with stats updated. Moving data files to different disk didn't make any difference. Execution plans are changing with and without 'TOP' clause. With 'TOP' clause plans are generating with 'INDEX SEEK, Nested Loop' while without 'TOP' clause changing to 'INDEX SCAN, Table Spool, Hash Match, Merge Join'. WHY? Can anyone give some action plan?
0
Comment
Question by:info2rafiq
1 Comment
 
LVL 51

Accepted Solution

by:
Mark Wills earned 500 total points
Comment Utility
Hi info2rafig,  

sounds like some I/O problems maybe...

Are you running profiler by chance ? http://support.microsoft.com/kb/929728

There is a fairly high level overview of wait types and what to look for : http://www.sqldev.net/misc/waittypes.htm

A fella by the name of Thomas Davidson is the guru on 2000 performance. There is a whitepaper floating around, but his presentation is a bit more graphic : http://www.sqldev.net/events.htm#SQL_Connections_12-15_October_2003,_Palm_Springs_CA_  look for the one in the middle : SPR-201-4

Apologies about all the links, but performance is a minefield potentially, and best to understand what might be causing it first. So, have a look and read, and then come back with some more questions if needed - OK ?
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now