Solved

DEFWAKEUP status in sysprocesses with waittype = 0x0000

Posted on 2004-04-21
8
3,374 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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
 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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 needed to find duplicate entries and remove entry 16 42
Count with a subquery showing details 10 40
Attaching Database Failed ? 3 37
create an aggregate function 9 31
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

813 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

10 Experts available now in Live!

Get 1:1 Help Now