Solved

DEFWAKEUP status in sysprocesses with waittype = 0x0000

Posted on 2004-04-21
8
3,369 Views
Last Modified: 2007-12-19
I am getting DEFWAKEUP status in sysprocesses which tells me that the SPID is waiting on a resource, yet the waittype = 0x0000 and the lastwaittype = MISCELLANEOUS.

Any clue about what the SPID is waiting on?

Thanks,
Rick
0
Comment
  • 5
  • 3
8 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 10878709
Any backups or scheduled jobs running?  
0
 

Author Comment

by:essentialdatasolutions
ID: 10878850
No backups or scheduled jobs are running.
0
 
LVL 34

Expert Comment

by:arbert
ID: 10879363
Is this process using a paralell plan?  Multiple ECIDs for the SPID you're looking at?
0
 
LVL 34

Expert Comment

by:arbert
ID: 10879674
Usually on a parallel plan, you'll see a CXPacket wait.  HOWEVER, you can also see a defwakeup if one of the threads happen to be contending with another thread of the same process.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:essentialdatasolutions
ID: 10880277
It is a parallel plan with Multiple ECIDs
0
 
LVL 34

Accepted Solution

by:
arbert earned 250 total points
ID: 10880428
Ok, that's what it is then....

Is this a query you can run in analyzer?  If so, run the query and at the end add

option(maxdop 1)


See if you notice any difference.  However, the waits are just a nature of the parallel plans.
0
 

Author Comment

by:essentialdatasolutions
ID: 10880804
The query is a stored proc that is rather complex with nested procs and some cursors.  Earlier I wanted to add the maxdop 1 to take out the parallelism but this would involve adding it to several dozen queries.  I decided to investigate the DEFWAKEUP without a waittype first.

Thanks,
Rick
0
 
LVL 34

Expert Comment

by:arbert
ID: 10881425
You can also go into the server properties and up the value used to figure out when to use paralellism....
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
T-SQL:  Embedding a CTE 5 32
Help with SQL Server Stoplist 2 16
How to get time difference in minutes and seconds only between 2 dates 2 19
Sql Query 4 14
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

911 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

20 Experts available now in Live!

Get 1:1 Help Now