MAX worker thread in SQL server 2012/14/16












1















I was just browsing the system health extended event to come across an event with diagnostic result for query processing showing status for worker threads:




  1. why max worker threads showing 2994 when i have 80 logical processors which as per msdn calculation here 512 + ((logical CPU's - 4) * 16) does not looks correct. However per the latest link here makes sense for logical processors greater than 64 where calculation for 16 changes to 32. But that link says starting SQL 2017, however the number 2994 i am getting is for SQL2012, 14 16 where no of logical processors is 80. Am i missing something here?


max worker setting within sp_configure is set to '0'




  1. Coming back to that system health event status shows WARNING for below no:



maxWorkers="2944" workersCreated="456" workersIdle="314"
tasksCompletedWithinInterval="1021881" pendingTasks="1"




Should i be checking something else or can this be ignored?










share|improve this question





























    1















    I was just browsing the system health extended event to come across an event with diagnostic result for query processing showing status for worker threads:




    1. why max worker threads showing 2994 when i have 80 logical processors which as per msdn calculation here 512 + ((logical CPU's - 4) * 16) does not looks correct. However per the latest link here makes sense for logical processors greater than 64 where calculation for 16 changes to 32. But that link says starting SQL 2017, however the number 2994 i am getting is for SQL2012, 14 16 where no of logical processors is 80. Am i missing something here?


    max worker setting within sp_configure is set to '0'




    1. Coming back to that system health event status shows WARNING for below no:



    maxWorkers="2944" workersCreated="456" workersIdle="314"
    tasksCompletedWithinInterval="1021881" pendingTasks="1"




    Should i be checking something else or can this be ignored?










    share|improve this question



























      1












      1








      1








      I was just browsing the system health extended event to come across an event with diagnostic result for query processing showing status for worker threads:




      1. why max worker threads showing 2994 when i have 80 logical processors which as per msdn calculation here 512 + ((logical CPU's - 4) * 16) does not looks correct. However per the latest link here makes sense for logical processors greater than 64 where calculation for 16 changes to 32. But that link says starting SQL 2017, however the number 2994 i am getting is for SQL2012, 14 16 where no of logical processors is 80. Am i missing something here?


      max worker setting within sp_configure is set to '0'




      1. Coming back to that system health event status shows WARNING for below no:



      maxWorkers="2944" workersCreated="456" workersIdle="314"
      tasksCompletedWithinInterval="1021881" pendingTasks="1"




      Should i be checking something else or can this be ignored?










      share|improve this question
















      I was just browsing the system health extended event to come across an event with diagnostic result for query processing showing status for worker threads:




      1. why max worker threads showing 2994 when i have 80 logical processors which as per msdn calculation here 512 + ((logical CPU's - 4) * 16) does not looks correct. However per the latest link here makes sense for logical processors greater than 64 where calculation for 16 changes to 32. But that link says starting SQL 2017, however the number 2994 i am getting is for SQL2012, 14 16 where no of logical processors is 80. Am i missing something here?


      max worker setting within sp_configure is set to '0'




      1. Coming back to that system health event status shows WARNING for below no:



      maxWorkers="2944" workersCreated="456" workersIdle="314"
      tasksCompletedWithinInterval="1021881" pendingTasks="1"




      Should i be checking something else or can this be ignored?







      sql-server sql-server-2012 sql-server-2014 cpu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago







      BeginnerDBA

















      asked 3 hours ago









      BeginnerDBABeginnerDBA

      5131417




      5131417






















          1 Answer
          1






          active

          oldest

          votes


















          3
















          1. why max worker threads showing 2994 when i have 80 logical processors […]




          It seems there is a documentation error when the item was copied over from MSDN to Docs. What you see in Dorr's post is correct and is applicable back to 2012 SP4 + latest CUs. I'll make the required documentation changes.





          1. Coming back to that system health event status shows WARNING for below no […]




          The reason you have a warning is because you have pendingTasks="1". This could indicate an issue with a scheduler and should be investigated.






          share|improve this answer
























          • Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

            – BeginnerDBA
            1 hour ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f229560%2fmax-worker-thread-in-sql-server-2012-14-16%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3
















          1. why max worker threads showing 2994 when i have 80 logical processors […]




          It seems there is a documentation error when the item was copied over from MSDN to Docs. What you see in Dorr's post is correct and is applicable back to 2012 SP4 + latest CUs. I'll make the required documentation changes.





          1. Coming back to that system health event status shows WARNING for below no […]




          The reason you have a warning is because you have pendingTasks="1". This could indicate an issue with a scheduler and should be investigated.






          share|improve this answer
























          • Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

            – BeginnerDBA
            1 hour ago
















          3
















          1. why max worker threads showing 2994 when i have 80 logical processors […]




          It seems there is a documentation error when the item was copied over from MSDN to Docs. What you see in Dorr's post is correct and is applicable back to 2012 SP4 + latest CUs. I'll make the required documentation changes.





          1. Coming back to that system health event status shows WARNING for below no […]




          The reason you have a warning is because you have pendingTasks="1". This could indicate an issue with a scheduler and should be investigated.






          share|improve this answer
























          • Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

            – BeginnerDBA
            1 hour ago














          3












          3








          3









          1. why max worker threads showing 2994 when i have 80 logical processors […]




          It seems there is a documentation error when the item was copied over from MSDN to Docs. What you see in Dorr's post is correct and is applicable back to 2012 SP4 + latest CUs. I'll make the required documentation changes.





          1. Coming back to that system health event status shows WARNING for below no […]




          The reason you have a warning is because you have pendingTasks="1". This could indicate an issue with a scheduler and should be investigated.






          share|improve this answer















          1. why max worker threads showing 2994 when i have 80 logical processors […]




          It seems there is a documentation error when the item was copied over from MSDN to Docs. What you see in Dorr's post is correct and is applicable back to 2012 SP4 + latest CUs. I'll make the required documentation changes.





          1. Coming back to that system health event status shows WARNING for below no […]




          The reason you have a warning is because you have pendingTasks="1". This could indicate an issue with a scheduler and should be investigated.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Sean GallardySean Gallardy

          15.8k22548




          15.8k22548













          • Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

            – BeginnerDBA
            1 hour ago



















          • Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

            – BeginnerDBA
            1 hour ago

















          Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

          – BeginnerDBA
          1 hour ago





          Thanks Sean. I see pending task count varying sometimes 2, 4 , 8 or even higher. Can you guide me a link what needs to be check or if you can expand the answer as i am not sure when you say issue with scheduler. thanks again

          – BeginnerDBA
          1 hour ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f229560%2fmax-worker-thread-in-sql-server-2012-14-16%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection