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 Mohammed the most popular first name for boys born in Berlin in 2018?

Can I bring back Planetary Romance as a genre?

Are there vaccine ingredients which may not be disclosed ("hidden", "trade secret", or similar)?

How is Arya still alive?

What's the difference between "ricochet" and "bounce"?

Why was Sam Wilson chosen for this, but not Bucky?

How is it possible for this circuit to continue functioning correctly?

Which types of fruit can I give to my dog?

Why use steam instead of just hot air?

What is the Ancient One's mistake?

How to explain intravenous drug abuse to a 6-year-old?

Does Thread.yield() do anything if we have enough processors to service all threads?

How long can fsck take on a 30 TB volume?

Are wands in any sort of book going to be too much like Harry Potter?

How can I test a shell script in a "safe environment" to avoid harm to my computer?

Bulk API Error: UNABLE_TO_LOCK_ROW:unable to obtain exclusive access to this record or 124 records

Company stopped paying my salary. What are my options?

Logo selection for poster presentation

Thawing Glaciers return to hand interaction

Libertine font numbers have a different height than text

What are these round pads on the bottom of a PCB?

What's an appropriate age to involve kids in life changing decisions?

How to start your Starcraft II games vs AI immediately?

Origins of the "array like" strings in BASIC



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;








5















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




























    5















    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
























      5












      5








      5








      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 Apr 29 at 22:32









      sachin-SQLServernewbieesachin-SQLServernewbiee

      648




      648




















          1 Answer
          1






          active

          oldest

          votes


















          7














          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









            7














            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



























              7














              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

























                7












                7








                7







                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 Apr 29 at 23:46









                Joe ObbishJoe Obbish

                22.7k43496




                22.7k43496



























                    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

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos