January 14, 2020 at 12:07 pm
Hello,
I have only question about some interesting issues
I tested yesterday some query, where was problem with running. Long time wasnt some problem, but last week is problem with this.
Default MAXDOP is 8, there is 32 cores 64 logicals CPU, 2sockets . This is AG , I executed on Secondary server with Read where was 1-3% CPU because secondary replica is for reportings.
We found that with MAXDOP hint in query directly
with more maxdop looks like "frozen", I checked also Live query view and know where was "frozen", but could not see some problem only CXPACKETS block on this session where i run.
I was thinking about update statistics, but problem is that is every day, and this query wasnt possible run longer time not only yesterday.
Does somebody experience or ideas what can i check else?
I am waiting now till night if there will be also problem or not.
January 14, 2020 at 12:19 pm
It could be a PSP issue, do you capture the execution plan to compare each time of run high vs low time taken.
What is the SQL version are you using it.
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
January 14, 2020 at 1:09 pm
Hi,
plans are different
yesterday:
for maxdop 1 is diff
for maxdop 2,3 was same
another wasnt possibel to finish so i dont know
today
for maxdop 1 is diff
for maxdop 2,3,4 same
for maxdop 5,6,7,8 same
not sure if there is really MAXDOP or some another issue
January 14, 2020 at 1:46 pm
Is it possible to share the execution plan.
Have you find the code developer why it has added a maxdop hint.
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
January 14, 2020 at 2:44 pm
<li style="list-style-type: none;">
- yesterday about 13-17hours was possible run this query only with MAXDOP 1,2,3,4
<li style="list-style-type: none;">
- yesterday after 18 and more was possible run only with MAXDOP 1,2
What you mean by "MAXDOP 1,2,3,4" as it only has one parameter?
January 14, 2020 at 3:19 pm
What you mean by "MAXDOP 1,2,3,4" as it only has one parameter?
I'm thinking that it means that he tried all 4 settings.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 14, 2020 at 3:30 pm
Tony... what is your Cost Threshold of Parallelism set to?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 15, 2020 at 6:38 pm
yes i tried all of these settings.
we have 50. I checked that this query costs about 1400-1500 for MAXDOP 1 , of course then is worked.
Only question is what can be issue, if someone has something like this, because now is still working without problem , so not sure what could be there, and i guess that maybe will not find till next same issue . But i couldnot find nothing except this CXpacket and only testing with MAXDOP .
Thanks
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply