Solved

LATCH_EX with CXPACKET causing query performance degradation

Posted on 2009-05-13
1
1,924 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
ID: 24381764
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQl Query to find x consecutive Nbrs in a Table 30 94
query question 12 32
SSRS Deployment problem 5 63
SQL create line numbers for data sampling 11 26
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

792 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