Disabling Resource Governor in SQL ServerLimit CPU usage without Resource GovernorTroubleshooting Resource Governor / Classification FunctionSql Server 2014 IO Resource GovernorSQL Server 2014, Volumes in Resource GovernorDoes Resource Governor help protect page life expectancy?Resource Governor seems to increase resource usageHundreds of sessions queued in suspended stateSQL Server Resource governor user-defined resource poolsResource Governor not limiting CPU / RAMUsing Resource Governor with SQL Agent Jobs

Was the ancestor of SCSI, the SASI protocol, nothing more than a draft?

Is this homebrew race based on the Draco Volans lizard species balanced?

Applying a function to a nested list

Is it the same airport YUL and YMQ in Canada?

Why do money exchangers give different rates to different bills

When and why did journal article titles become descriptive, rather than creatively allusive?

Is lying to get "gardening leave" fraud?

Power LED from 3.3V Power Pin without Resistor

Any examples of headwear for races with animal ears?

Entropy as a function of temperature: is temperature well defined?

Pressure to defend the relevance of one's area of mathematics

What happens if I start too many background jobs?

Can fracking help reduce CO2?

Was Unix ever a single-user OS?

Why was Germany not as successful as other Europeans in establishing overseas colonies?

How to get SEEK accessing converted ID via view

How did Arya manage to disguise herself?

An 'if constexpr branch' does not get discarded inside lambda that is inside a template function

Topological Spaces homeomorphic

Who died in the Game of Thrones episode, "The Long Night"?

Why debootstrap can only run as root?

What is the limiting factor for a CAN bus to exceed 1Mbps bandwidth?

Is it cheaper to drop cargo than to land it?

What was the state of the German rail system in 1944?



Disabling Resource Governor in SQL Server


Limit CPU usage without Resource GovernorTroubleshooting Resource Governor / Classification FunctionSql Server 2014 IO Resource GovernorSQL Server 2014, Volumes in Resource GovernorDoes Resource Governor help protect page life expectancy?Resource Governor seems to increase resource usageHundreds of sessions queued in suspended stateSQL Server Resource governor user-defined resource poolsResource Governor not limiting CPU / RAMUsing Resource Governor with SQL Agent Jobs






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















Should we restart SQL Server after disabling Resource Governor? What is the best practice?



Why I am asking this, because I am worried about the existing open sessions in SQL Server. Will their behavior change(in terms of CPU, Memory and IO) to default if we only disable Resource Governor and not restart SQL Services?



For example if a particular session was capped to use 30% of total memory of system because of resource governor. So if we disable Resource governor now alone, will it start using more than 30% instantaneously?










share|improve this question




























    3















    Should we restart SQL Server after disabling Resource Governor? What is the best practice?



    Why I am asking this, because I am worried about the existing open sessions in SQL Server. Will their behavior change(in terms of CPU, Memory and IO) to default if we only disable Resource Governor and not restart SQL Services?



    For example if a particular session was capped to use 30% of total memory of system because of resource governor. So if we disable Resource governor now alone, will it start using more than 30% instantaneously?










    share|improve this question
























      3












      3








      3








      Should we restart SQL Server after disabling Resource Governor? What is the best practice?



      Why I am asking this, because I am worried about the existing open sessions in SQL Server. Will their behavior change(in terms of CPU, Memory and IO) to default if we only disable Resource Governor and not restart SQL Services?



      For example if a particular session was capped to use 30% of total memory of system because of resource governor. So if we disable Resource governor now alone, will it start using more than 30% instantaneously?










      share|improve this question














      Should we restart SQL Server after disabling Resource Governor? What is the best practice?



      Why I am asking this, because I am worried about the existing open sessions in SQL Server. Will their behavior change(in terms of CPU, Memory and IO) to default if we only disable Resource Governor and not restart SQL Services?



      For example if a particular session was capped to use 30% of total memory of system because of resource governor. So if we disable Resource governor now alone, will it start using more than 30% instantaneously?







      sql-server resource-governor






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      sachin-SQLServernewbieesachin-SQLServernewbiee

      548




      548




















          1 Answer
          1






          active

          oldest

          votes


















          4














          I change Resource Governor settings quite often without restarting SQL Server. I am not aware of any need to restart SQL Server after changing Resource Governor settings except possibly for a classifier function change. A few things that might be helpful to know:



          • Once a session is assigned to a Resource Governor workload group it stays there, even if the classifier function changes.

          • I have never seen query plan compilation account for Resource Governor settings.

          • Some aspects of query execution are decided at the start of query execution, such as MAXDOP and query memory. Note that there are some exceptions where that isn't always true such as certain types of index creation or queries that execute in batch mode.

          A precise answer that fully answers when the changes are applied to queries (whether or not it is "instantaneous") is likely outside the scope of an answer here. I suggest figuring out what you care about and doing testing as needed to convince yourself that what SQL Server is doing is okay with your workload. For example, consider the MAXDOP limit available through Resource Governor workload group configuration. For nearly all queries MAXDOP is decided at query execution time, so I wouldn't expect disabling Resource Governor to change the MAXDOP of a currently executing query. However, the next query that starts for the session will no longer be limited in MAXDOP. However, what happens if there's a Scalar UDF executing many times during a query with a parallel plan? I'd expect MAXDOP to possibly change for that query, but I've never tested that and don't care to test it. If I had to guess, I suspect that all of the following will be updated "instantaneously":



          • MIN_CPU_PERCENT

          • MAX_CPU_PERCENT

          • CAP_CPU_PERCENT

          • MIN_IOPS_PER_VOLUME

          • MAX_IOPS_PER_VOLUME

          • IMPORTANCE

          • REQUEST_MAX_CPU_TIME_SEC

          • GROUP_MAX_REQUESTS

          and all of these to update only after the next query starts executing:



          • MIN_MEMORY_PERCENT

          • MAX_MEMORY_PERCENT

          • AFFINITY

          • REQUEST_MAX_MEMORY_GRANT_PERCENT

          • REQUEST_MEMORY_GRANT_TIMEOUT_SEC

          • MAX_DOP





          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%2f236976%2fdisabling-resource-governor-in-sql-server%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









            4














            I change Resource Governor settings quite often without restarting SQL Server. I am not aware of any need to restart SQL Server after changing Resource Governor settings except possibly for a classifier function change. A few things that might be helpful to know:



            • Once a session is assigned to a Resource Governor workload group it stays there, even if the classifier function changes.

            • I have never seen query plan compilation account for Resource Governor settings.

            • Some aspects of query execution are decided at the start of query execution, such as MAXDOP and query memory. Note that there are some exceptions where that isn't always true such as certain types of index creation or queries that execute in batch mode.

            A precise answer that fully answers when the changes are applied to queries (whether or not it is "instantaneous") is likely outside the scope of an answer here. I suggest figuring out what you care about and doing testing as needed to convince yourself that what SQL Server is doing is okay with your workload. For example, consider the MAXDOP limit available through Resource Governor workload group configuration. For nearly all queries MAXDOP is decided at query execution time, so I wouldn't expect disabling Resource Governor to change the MAXDOP of a currently executing query. However, the next query that starts for the session will no longer be limited in MAXDOP. However, what happens if there's a Scalar UDF executing many times during a query with a parallel plan? I'd expect MAXDOP to possibly change for that query, but I've never tested that and don't care to test it. If I had to guess, I suspect that all of the following will be updated "instantaneously":



            • MIN_CPU_PERCENT

            • MAX_CPU_PERCENT

            • CAP_CPU_PERCENT

            • MIN_IOPS_PER_VOLUME

            • MAX_IOPS_PER_VOLUME

            • IMPORTANCE

            • REQUEST_MAX_CPU_TIME_SEC

            • GROUP_MAX_REQUESTS

            and all of these to update only after the next query starts executing:



            • MIN_MEMORY_PERCENT

            • MAX_MEMORY_PERCENT

            • AFFINITY

            • REQUEST_MAX_MEMORY_GRANT_PERCENT

            • REQUEST_MEMORY_GRANT_TIMEOUT_SEC

            • MAX_DOP





            share|improve this answer



























              4














              I change Resource Governor settings quite often without restarting SQL Server. I am not aware of any need to restart SQL Server after changing Resource Governor settings except possibly for a classifier function change. A few things that might be helpful to know:



              • Once a session is assigned to a Resource Governor workload group it stays there, even if the classifier function changes.

              • I have never seen query plan compilation account for Resource Governor settings.

              • Some aspects of query execution are decided at the start of query execution, such as MAXDOP and query memory. Note that there are some exceptions where that isn't always true such as certain types of index creation or queries that execute in batch mode.

              A precise answer that fully answers when the changes are applied to queries (whether or not it is "instantaneous") is likely outside the scope of an answer here. I suggest figuring out what you care about and doing testing as needed to convince yourself that what SQL Server is doing is okay with your workload. For example, consider the MAXDOP limit available through Resource Governor workload group configuration. For nearly all queries MAXDOP is decided at query execution time, so I wouldn't expect disabling Resource Governor to change the MAXDOP of a currently executing query. However, the next query that starts for the session will no longer be limited in MAXDOP. However, what happens if there's a Scalar UDF executing many times during a query with a parallel plan? I'd expect MAXDOP to possibly change for that query, but I've never tested that and don't care to test it. If I had to guess, I suspect that all of the following will be updated "instantaneously":



              • MIN_CPU_PERCENT

              • MAX_CPU_PERCENT

              • CAP_CPU_PERCENT

              • MIN_IOPS_PER_VOLUME

              • MAX_IOPS_PER_VOLUME

              • IMPORTANCE

              • REQUEST_MAX_CPU_TIME_SEC

              • GROUP_MAX_REQUESTS

              and all of these to update only after the next query starts executing:



              • MIN_MEMORY_PERCENT

              • MAX_MEMORY_PERCENT

              • AFFINITY

              • REQUEST_MAX_MEMORY_GRANT_PERCENT

              • REQUEST_MEMORY_GRANT_TIMEOUT_SEC

              • MAX_DOP





              share|improve this answer

























                4












                4








                4







                I change Resource Governor settings quite often without restarting SQL Server. I am not aware of any need to restart SQL Server after changing Resource Governor settings except possibly for a classifier function change. A few things that might be helpful to know:



                • Once a session is assigned to a Resource Governor workload group it stays there, even if the classifier function changes.

                • I have never seen query plan compilation account for Resource Governor settings.

                • Some aspects of query execution are decided at the start of query execution, such as MAXDOP and query memory. Note that there are some exceptions where that isn't always true such as certain types of index creation or queries that execute in batch mode.

                A precise answer that fully answers when the changes are applied to queries (whether or not it is "instantaneous") is likely outside the scope of an answer here. I suggest figuring out what you care about and doing testing as needed to convince yourself that what SQL Server is doing is okay with your workload. For example, consider the MAXDOP limit available through Resource Governor workload group configuration. For nearly all queries MAXDOP is decided at query execution time, so I wouldn't expect disabling Resource Governor to change the MAXDOP of a currently executing query. However, the next query that starts for the session will no longer be limited in MAXDOP. However, what happens if there's a Scalar UDF executing many times during a query with a parallel plan? I'd expect MAXDOP to possibly change for that query, but I've never tested that and don't care to test it. If I had to guess, I suspect that all of the following will be updated "instantaneously":



                • MIN_CPU_PERCENT

                • MAX_CPU_PERCENT

                • CAP_CPU_PERCENT

                • MIN_IOPS_PER_VOLUME

                • MAX_IOPS_PER_VOLUME

                • IMPORTANCE

                • REQUEST_MAX_CPU_TIME_SEC

                • GROUP_MAX_REQUESTS

                and all of these to update only after the next query starts executing:



                • MIN_MEMORY_PERCENT

                • MAX_MEMORY_PERCENT

                • AFFINITY

                • REQUEST_MAX_MEMORY_GRANT_PERCENT

                • REQUEST_MEMORY_GRANT_TIMEOUT_SEC

                • MAX_DOP





                share|improve this answer













                I change Resource Governor settings quite often without restarting SQL Server. I am not aware of any need to restart SQL Server after changing Resource Governor settings except possibly for a classifier function change. A few things that might be helpful to know:



                • Once a session is assigned to a Resource Governor workload group it stays there, even if the classifier function changes.

                • I have never seen query plan compilation account for Resource Governor settings.

                • Some aspects of query execution are decided at the start of query execution, such as MAXDOP and query memory. Note that there are some exceptions where that isn't always true such as certain types of index creation or queries that execute in batch mode.

                A precise answer that fully answers when the changes are applied to queries (whether or not it is "instantaneous") is likely outside the scope of an answer here. I suggest figuring out what you care about and doing testing as needed to convince yourself that what SQL Server is doing is okay with your workload. For example, consider the MAXDOP limit available through Resource Governor workload group configuration. For nearly all queries MAXDOP is decided at query execution time, so I wouldn't expect disabling Resource Governor to change the MAXDOP of a currently executing query. However, the next query that starts for the session will no longer be limited in MAXDOP. However, what happens if there's a Scalar UDF executing many times during a query with a parallel plan? I'd expect MAXDOP to possibly change for that query, but I've never tested that and don't care to test it. If I had to guess, I suspect that all of the following will be updated "instantaneously":



                • MIN_CPU_PERCENT

                • MAX_CPU_PERCENT

                • CAP_CPU_PERCENT

                • MIN_IOPS_PER_VOLUME

                • MAX_IOPS_PER_VOLUME

                • IMPORTANCE

                • REQUEST_MAX_CPU_TIME_SEC

                • GROUP_MAX_REQUESTS

                and all of these to update only after the next query starts executing:



                • MIN_MEMORY_PERCENT

                • MAX_MEMORY_PERCENT

                • AFFINITY

                • REQUEST_MAX_MEMORY_GRANT_PERCENT

                • REQUEST_MEMORY_GRANT_TIMEOUT_SEC

                • MAX_DOP






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                Joe ObbishJoe Obbish

                22.5k43494




                22.5k43494



























                    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%2f236976%2fdisabling-resource-governor-in-sql-server%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

                    Log på Navigationsmenu

                    Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen

                    Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse