Link to home
Start Free TrialLog in
Avatar of essentialdatasolutions
essentialdatasolutions

asked on

DEFWAKEUP status in sysprocesses with waittype = 0x0000

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
Avatar of arbert
arbert

Any backups or scheduled jobs running?  
Avatar of essentialdatasolutions

ASKER

No backups or scheduled jobs are running.
Is this process using a paralell plan?  Multiple ECIDs for the SPID you're looking at?
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.
It is a parallel plan with Multiple ECIDs
ASKER CERTIFIED SOLUTION
Avatar of arbert
arbert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
You can also go into the server properties and up the value used to figure out when to use paralellism....