Limit max CPU usage SQL SERVER with WSRMSQL Server performing slowSQL Server Maximum and Minimum memory configurationLimit CPU usage without Resource GovernorMonitoring sql serverHow to troubleshoot how resource governed query is being throttled in SQL 2012?Resource Governor on 2014 - CPU Not Being ThrottledSql Server 2016 Counter Reporting ZeroSQL Server not using all NUMA memory with 20 core limit and affinity maskWhy low cpu usage on sql server developer edition 2014SQL Server 2016 with high tempdb usage and low RAM usage

15% tax on $7.5k earnings. Is that right?

Why is the Sun approximated as a black body at ~ 5800 K?

The IT department bottlenecks progress, how should I handle this?

Permission on Database

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

How can I write humor as character trait?

Review your own paper in Mathematics

Circuit Analysis: Obtaining Close Loop OP - AMP Transfer function

Giving feedback to someone without sounding prejudiced

What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?

Which was the first story featuring espers?

How do I fix the group tension caused by my character stealing and possibly killing without provocation?

Which Article Helped Get Rid of Technobabble in RPGs?

Can I turn my anal-retentiveness into a career?

Are cause and effect the same as in our Universe in a non-relativistic, Newtonian Universe in which the speed of light is infinite?

How to preserve electronics (computers, iPads and phones) for hundreds of years

"before" and "want" for the same systemd service?

How does electrical safety system work on ISS?

Is a Java collection guaranteed to be in a valid, usable state after a ConcurrentModificationException?

How could a planet have erratic days?

Does the reader need to like the PoV character?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Is it allowed to activate the ability of multiple planeswalkers in a single turn?

How to convince somebody that he is fit for something else, but not this job?



Limit max CPU usage SQL SERVER with WSRM


SQL Server performing slowSQL Server Maximum and Minimum memory configurationLimit CPU usage without Resource GovernorMonitoring sql serverHow to troubleshoot how resource governed query is being throttled in SQL 2012?Resource Governor on 2014 - CPU Not Being ThrottledSql Server 2016 Counter Reporting ZeroSQL Server not using all NUMA memory with 20 core limit and affinity maskWhy low cpu usage on sql server developer edition 2014SQL Server 2016 with high tempdb usage and low RAM usage













7















I have a physical server running one instance of SQL Server.



I notice that quite often this server is running at 100% CPU usage.



My IT team is not happy about this, and suggested we reserve 2 of the 32 cores for the OS.



This works great, now max usage peak just under 90%. Additionally, slow data retrieval from various users is no longer reported.



Is there any reason NOT to use WSRM (Windows System Resource Manager) in this way - instead of SQL Resource Governor?










share|improve this question
























  • Do you really want to use all the CPU? Saving a couple of cores for the OS seems prudent doesn't it? On my workstation, if I use all cores for some number crunching my machine grinds to a halt. I always keep a few cores free. Would this not be good practice on a machine dedicated to SQL Server too?

    – ManInMoon
    yesterday











  • What kind of load is running on this server? What type of process is using 100% of CPU? Is this OLTP or analytics or graph or ?

    – Max Vernon
    yesterday











  • @Forrest When you say tuning - do you mean the SQL Server itself - or the queries/table structure? If you mean SQL Server, please give me a link to what to look at. If queiries/tables, then I optmise them when I can, but some users are less design conscious!

    – ManInMoon
    yesterday















7















I have a physical server running one instance of SQL Server.



I notice that quite often this server is running at 100% CPU usage.



My IT team is not happy about this, and suggested we reserve 2 of the 32 cores for the OS.



This works great, now max usage peak just under 90%. Additionally, slow data retrieval from various users is no longer reported.



Is there any reason NOT to use WSRM (Windows System Resource Manager) in this way - instead of SQL Resource Governor?










share|improve this question
























  • Do you really want to use all the CPU? Saving a couple of cores for the OS seems prudent doesn't it? On my workstation, if I use all cores for some number crunching my machine grinds to a halt. I always keep a few cores free. Would this not be good practice on a machine dedicated to SQL Server too?

    – ManInMoon
    yesterday











  • What kind of load is running on this server? What type of process is using 100% of CPU? Is this OLTP or analytics or graph or ?

    – Max Vernon
    yesterday











  • @Forrest When you say tuning - do you mean the SQL Server itself - or the queries/table structure? If you mean SQL Server, please give me a link to what to look at. If queiries/tables, then I optmise them when I can, but some users are less design conscious!

    – ManInMoon
    yesterday













7












7








7








I have a physical server running one instance of SQL Server.



I notice that quite often this server is running at 100% CPU usage.



My IT team is not happy about this, and suggested we reserve 2 of the 32 cores for the OS.



This works great, now max usage peak just under 90%. Additionally, slow data retrieval from various users is no longer reported.



Is there any reason NOT to use WSRM (Windows System Resource Manager) in this way - instead of SQL Resource Governor?










share|improve this question
















I have a physical server running one instance of SQL Server.



I notice that quite often this server is running at 100% CPU usage.



My IT team is not happy about this, and suggested we reserve 2 of the 32 cores for the OS.



This works great, now max usage peak just under 90%. Additionally, slow data retrieval from various users is no longer reported.



Is there any reason NOT to use WSRM (Windows System Resource Manager) in this way - instead of SQL Resource Governor?







sql-server configuration windows resource-governor






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 19 hours ago









Paul White

53.3k14284457




53.3k14284457










asked yesterday









ManInMoonManInMoon

1815




1815












  • Do you really want to use all the CPU? Saving a couple of cores for the OS seems prudent doesn't it? On my workstation, if I use all cores for some number crunching my machine grinds to a halt. I always keep a few cores free. Would this not be good practice on a machine dedicated to SQL Server too?

    – ManInMoon
    yesterday











  • What kind of load is running on this server? What type of process is using 100% of CPU? Is this OLTP or analytics or graph or ?

    – Max Vernon
    yesterday











  • @Forrest When you say tuning - do you mean the SQL Server itself - or the queries/table structure? If you mean SQL Server, please give me a link to what to look at. If queiries/tables, then I optmise them when I can, but some users are less design conscious!

    – ManInMoon
    yesterday

















  • Do you really want to use all the CPU? Saving a couple of cores for the OS seems prudent doesn't it? On my workstation, if I use all cores for some number crunching my machine grinds to a halt. I always keep a few cores free. Would this not be good practice on a machine dedicated to SQL Server too?

    – ManInMoon
    yesterday











  • What kind of load is running on this server? What type of process is using 100% of CPU? Is this OLTP or analytics or graph or ?

    – Max Vernon
    yesterday











  • @Forrest When you say tuning - do you mean the SQL Server itself - or the queries/table structure? If you mean SQL Server, please give me a link to what to look at. If queiries/tables, then I optmise them when I can, but some users are less design conscious!

    – ManInMoon
    yesterday
















Do you really want to use all the CPU? Saving a couple of cores for the OS seems prudent doesn't it? On my workstation, if I use all cores for some number crunching my machine grinds to a halt. I always keep a few cores free. Would this not be good practice on a machine dedicated to SQL Server too?

– ManInMoon
yesterday





Do you really want to use all the CPU? Saving a couple of cores for the OS seems prudent doesn't it? On my workstation, if I use all cores for some number crunching my machine grinds to a halt. I always keep a few cores free. Would this not be good practice on a machine dedicated to SQL Server too?

– ManInMoon
yesterday













What kind of load is running on this server? What type of process is using 100% of CPU? Is this OLTP or analytics or graph or ?

– Max Vernon
yesterday





What kind of load is running on this server? What type of process is using 100% of CPU? Is this OLTP or analytics or graph or ?

– Max Vernon
yesterday













@Forrest When you say tuning - do you mean the SQL Server itself - or the queries/table structure? If you mean SQL Server, please give me a link to what to look at. If queiries/tables, then I optmise them when I can, but some users are less design conscious!

– ManInMoon
yesterday





@Forrest When you say tuning - do you mean the SQL Server itself - or the queries/table structure? If you mean SQL Server, please give me a link to what to look at. If queiries/tables, then I optmise them when I can, but some users are less design conscious!

– ManInMoon
yesterday










2 Answers
2






active

oldest

votes


















12














Is there any reason NOT to use the approach you've defined? Absolutely.



Imagine you had bought a car - a car that when you hit 50MPH the engine starts to overheat. Would your reaction to this situation be to artificially limit the car to 49MPH, or to find out what the fault is with the engine?



Why should you limit your car to 49MPH? The manufacturer stated that it could drive as fast as 80MPH - you like to drive your car fast so you want to get it to this speed - if it wasn't for that damn overheating issue.



The car you bought was also really, really expensive. Each engine cylinder needs to be utilised to the max so you aren't wasting that money!



By artificially limiting SQL Servers access to the CPU, you are missing out on performance. You may have temporarily resolved the performance issues by ensuring the CPU is available for the OS to use, but you haven't answered the real question - WHY is SQL Server using 100% of the CPU?



My advice is as follows:



Find out what the real issue is, and fix it. Don't cover the issue up with what is effectively a kludge. The issue WILL reappear and smack you in the face down the line when the workload of the server naturally increases with growth.



As a temporary fix, resource governor can be used to lower the CPU used, UNTIL YOU FIND THE REAL PROBLEM.






share|improve this answer

























  • Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

    – TomTom
    yesterday


















9














Erik Darling mentioned the biggest practical reason for not using WSRM in a comment on your question:




...there's no reciprocal limiting of CPU use in other processes. SQL Server may not use those two cores, but other things may use the other 30 SQL Server is using. It's a crapshoot, really.




If this is working for you, then stick with it - we're all busy, and you can only spend so much time on any given problem. The ideal solution would be to fix the underlying queries / issues that are driving CPU to the point of user-noticeable problems (which George covers in his excellent answer).



Erik goes on to say




Plus, you're paying SQL Server licensing for them.




From a business standpoint, this is probably the worst part of the WSRM deal - you're paying per-core licensing for 2 cores that are explicitly not being used. At the time of this writing, that's $3k or $14k left on the table (depending on Standard vs Enterprise).






share|improve this answer






















    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%2f232605%2flimit-max-cpu-usage-sql-server-with-wsrm%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    12














    Is there any reason NOT to use the approach you've defined? Absolutely.



    Imagine you had bought a car - a car that when you hit 50MPH the engine starts to overheat. Would your reaction to this situation be to artificially limit the car to 49MPH, or to find out what the fault is with the engine?



    Why should you limit your car to 49MPH? The manufacturer stated that it could drive as fast as 80MPH - you like to drive your car fast so you want to get it to this speed - if it wasn't for that damn overheating issue.



    The car you bought was also really, really expensive. Each engine cylinder needs to be utilised to the max so you aren't wasting that money!



    By artificially limiting SQL Servers access to the CPU, you are missing out on performance. You may have temporarily resolved the performance issues by ensuring the CPU is available for the OS to use, but you haven't answered the real question - WHY is SQL Server using 100% of the CPU?



    My advice is as follows:



    Find out what the real issue is, and fix it. Don't cover the issue up with what is effectively a kludge. The issue WILL reappear and smack you in the face down the line when the workload of the server naturally increases with growth.



    As a temporary fix, resource governor can be used to lower the CPU used, UNTIL YOU FIND THE REAL PROBLEM.






    share|improve this answer

























    • Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

      – TomTom
      yesterday















    12














    Is there any reason NOT to use the approach you've defined? Absolutely.



    Imagine you had bought a car - a car that when you hit 50MPH the engine starts to overheat. Would your reaction to this situation be to artificially limit the car to 49MPH, or to find out what the fault is with the engine?



    Why should you limit your car to 49MPH? The manufacturer stated that it could drive as fast as 80MPH - you like to drive your car fast so you want to get it to this speed - if it wasn't for that damn overheating issue.



    The car you bought was also really, really expensive. Each engine cylinder needs to be utilised to the max so you aren't wasting that money!



    By artificially limiting SQL Servers access to the CPU, you are missing out on performance. You may have temporarily resolved the performance issues by ensuring the CPU is available for the OS to use, but you haven't answered the real question - WHY is SQL Server using 100% of the CPU?



    My advice is as follows:



    Find out what the real issue is, and fix it. Don't cover the issue up with what is effectively a kludge. The issue WILL reappear and smack you in the face down the line when the workload of the server naturally increases with growth.



    As a temporary fix, resource governor can be used to lower the CPU used, UNTIL YOU FIND THE REAL PROBLEM.






    share|improve this answer

























    • Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

      – TomTom
      yesterday













    12












    12








    12







    Is there any reason NOT to use the approach you've defined? Absolutely.



    Imagine you had bought a car - a car that when you hit 50MPH the engine starts to overheat. Would your reaction to this situation be to artificially limit the car to 49MPH, or to find out what the fault is with the engine?



    Why should you limit your car to 49MPH? The manufacturer stated that it could drive as fast as 80MPH - you like to drive your car fast so you want to get it to this speed - if it wasn't for that damn overheating issue.



    The car you bought was also really, really expensive. Each engine cylinder needs to be utilised to the max so you aren't wasting that money!



    By artificially limiting SQL Servers access to the CPU, you are missing out on performance. You may have temporarily resolved the performance issues by ensuring the CPU is available for the OS to use, but you haven't answered the real question - WHY is SQL Server using 100% of the CPU?



    My advice is as follows:



    Find out what the real issue is, and fix it. Don't cover the issue up with what is effectively a kludge. The issue WILL reappear and smack you in the face down the line when the workload of the server naturally increases with growth.



    As a temporary fix, resource governor can be used to lower the CPU used, UNTIL YOU FIND THE REAL PROBLEM.






    share|improve this answer















    Is there any reason NOT to use the approach you've defined? Absolutely.



    Imagine you had bought a car - a car that when you hit 50MPH the engine starts to overheat. Would your reaction to this situation be to artificially limit the car to 49MPH, or to find out what the fault is with the engine?



    Why should you limit your car to 49MPH? The manufacturer stated that it could drive as fast as 80MPH - you like to drive your car fast so you want to get it to this speed - if it wasn't for that damn overheating issue.



    The car you bought was also really, really expensive. Each engine cylinder needs to be utilised to the max so you aren't wasting that money!



    By artificially limiting SQL Servers access to the CPU, you are missing out on performance. You may have temporarily resolved the performance issues by ensuring the CPU is available for the OS to use, but you haven't answered the real question - WHY is SQL Server using 100% of the CPU?



    My advice is as follows:



    Find out what the real issue is, and fix it. Don't cover the issue up with what is effectively a kludge. The issue WILL reappear and smack you in the face down the line when the workload of the server naturally increases with growth.



    As a temporary fix, resource governor can be used to lower the CPU used, UNTIL YOU FIND THE REAL PROBLEM.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited yesterday

























    answered yesterday









    George.PalaciosGeorge.Palacios

    2,448826




    2,448826












    • Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

      – TomTom
      yesterday

















    • Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

      – TomTom
      yesterday
















    Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

    – TomTom
    yesterday





    Add to that that the CPU is NOT used in most cases a lot - in most cases high CPU is a symptom of EXTREMELY badly written SQL (like joins with integer on one side and char on the other because someone did not bother to make his data fields in foreign keys of identical definition=.

    – TomTom
    yesterday













    9














    Erik Darling mentioned the biggest practical reason for not using WSRM in a comment on your question:




    ...there's no reciprocal limiting of CPU use in other processes. SQL Server may not use those two cores, but other things may use the other 30 SQL Server is using. It's a crapshoot, really.




    If this is working for you, then stick with it - we're all busy, and you can only spend so much time on any given problem. The ideal solution would be to fix the underlying queries / issues that are driving CPU to the point of user-noticeable problems (which George covers in his excellent answer).



    Erik goes on to say




    Plus, you're paying SQL Server licensing for them.




    From a business standpoint, this is probably the worst part of the WSRM deal - you're paying per-core licensing for 2 cores that are explicitly not being used. At the time of this writing, that's $3k or $14k left on the table (depending on Standard vs Enterprise).






    share|improve this answer



























      9














      Erik Darling mentioned the biggest practical reason for not using WSRM in a comment on your question:




      ...there's no reciprocal limiting of CPU use in other processes. SQL Server may not use those two cores, but other things may use the other 30 SQL Server is using. It's a crapshoot, really.




      If this is working for you, then stick with it - we're all busy, and you can only spend so much time on any given problem. The ideal solution would be to fix the underlying queries / issues that are driving CPU to the point of user-noticeable problems (which George covers in his excellent answer).



      Erik goes on to say




      Plus, you're paying SQL Server licensing for them.




      From a business standpoint, this is probably the worst part of the WSRM deal - you're paying per-core licensing for 2 cores that are explicitly not being used. At the time of this writing, that's $3k or $14k left on the table (depending on Standard vs Enterprise).






      share|improve this answer

























        9












        9








        9







        Erik Darling mentioned the biggest practical reason for not using WSRM in a comment on your question:




        ...there's no reciprocal limiting of CPU use in other processes. SQL Server may not use those two cores, but other things may use the other 30 SQL Server is using. It's a crapshoot, really.




        If this is working for you, then stick with it - we're all busy, and you can only spend so much time on any given problem. The ideal solution would be to fix the underlying queries / issues that are driving CPU to the point of user-noticeable problems (which George covers in his excellent answer).



        Erik goes on to say




        Plus, you're paying SQL Server licensing for them.




        From a business standpoint, this is probably the worst part of the WSRM deal - you're paying per-core licensing for 2 cores that are explicitly not being used. At the time of this writing, that's $3k or $14k left on the table (depending on Standard vs Enterprise).






        share|improve this answer













        Erik Darling mentioned the biggest practical reason for not using WSRM in a comment on your question:




        ...there's no reciprocal limiting of CPU use in other processes. SQL Server may not use those two cores, but other things may use the other 30 SQL Server is using. It's a crapshoot, really.




        If this is working for you, then stick with it - we're all busy, and you can only spend so much time on any given problem. The ideal solution would be to fix the underlying queries / issues that are driving CPU to the point of user-noticeable problems (which George covers in his excellent answer).



        Erik goes on to say




        Plus, you're paying SQL Server licensing for them.




        From a business standpoint, this is probably the worst part of the WSRM deal - you're paying per-core licensing for 2 cores that are explicitly not being used. At the time of this writing, that's $3k or $14k left on the table (depending on Standard vs Enterprise).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        Josh DarnellJosh Darnell

        6,97022140




        6,97022140



























            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%2f232605%2flimit-max-cpu-usage-sql-server-with-wsrm%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

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해