{"id":1467,"date":"2021-09-28T11:15:09","date_gmt":"2021-09-28T02:15:09","guid":{"rendered":"https:\/\/ahnbk.com\/?p=1467"},"modified":"2021-09-28T11:29:26","modified_gmt":"2021-09-28T02:29:26","slug":"set-cpu-governor-policy-always-performance-on-ubuntu","status":"publish","type":"post","link":"https:\/\/ahnbk.com\/?p=1467","title":{"rendered":"Set CPU governor policy always &#8220;Performance&#8221; on Ubuntu"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">$ sudo apt-get install cpufrequtils<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\/etc\/default\/cpufrequtils \ud30c\uc77c \uc0dd\uc131. \uc788\uc73c\uba74 \uc218\uc815.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">$ sudo nano \/etc\/default\/cpufrequtils<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">GOVERNOR=\"performance\"\nMIN_SPEED=\"2000MHz\"<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>MIN_SPEED\ub294 \uac01\uc790\uc758 CPU \uc131\ub2a5\uc5d0 \ub530\ub77c \uc124\uc815\ud568.<\/p>\n\n\n\n<p>ondemand \uc11c\ube44\uc2a4\ub97c \ube44\ud65c\uc131\ud654<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">$ sudo systemctl disable ondemand<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\ud30c\uc77c\uc774 \uc0dd\uc131\ub418\uba74, cpufrequtils \uc11c\ube44\uc2a4\ub97c \uc7ac\uc2e4\ud589<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">$ sudo systemctl restart cpufrequtils<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\uc774\uc81c cpufreq-info\ub97c \ud1b5\ud574 \ud655\uc778\ud574\ubcf4\uba74&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">$ cpufreq-info                                                                                                                                                         \ncpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009                                                                                                                                          \nReport errors and bugs to cpufreq@vger.kernel.org, please.                                                                                                                                              \nanalyzing CPU 0:                                                                                                                                                                                        \n  driver: intel_pstate                                                                                                                                                                                  \n  CPUs which run at the same hardware frequency: 0                                                                                                                                                      \n  CPUs which need to have their frequency coordinated by software: 0                                                                                                                                    \n  maximum transition latency: 4294.55 ms.                                                                                                                                                               \n  hardware limits: 800 MHz - 5.10 GHz                                                                                                                                                                   \n  available cpufreq governors: performance, powersave                                                                                                                                                   \n  current policy: frequency should be within 3.00 GHz and 5.10 GHz.                                                                                                                                     \n                  The governor \"performance\" may decide which speed to use                                                                                                                              \n                  within this range.                                                                                                                                                                    \n  current CPU frequency is 4.91 GHz.                                                                                                                                                                    \nanalyzing CPU 1:                                                                                                                                                                                        \n  driver: intel_pstate                                                                                                                                                                                  \n  CPUs which run at the same hardware frequency: 1                                                                                                                                                      \n  CPUs which need to have their frequency coordinated by software: 1                                                                                                                                    \n  maximum transition latency: 4294.55 ms.                                                                                                                                                               \n  hardware limits: 800 MHz - 5.10 GHz                                                                                                                                                                   \n  available cpufreq governors: performance, powersave                                                                                                                                                   \n  current policy: frequency should be within 3.00 GHz and 5.10 GHz.                                                                                                                                     \n                  The governor \"performance\" may decide which speed to use                                                                                                                              \n                  within this range.                                                                                                                                                                    \n  current CPU frequency is 4.73 GHz.           <\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\uc704\uc640 \uac19\uc774 performance \ubaa8\ub4dc\ub85c \uc14b\ud305\ub418\uc5b4 \uc788\uace0, CPU frequency\uac00 \uc62c\ub77c\uac00 \uc788\uc74c\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc74c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/etc\/default\/cpufrequtils \ud30c\uc77c \uc0dd\uc131. \uc788\uc73c\uba74 \uc218\uc815. MIN_SPEED\ub294 \uac01\uc790\uc758 CPU \uc131\ub2a5\uc5d0 \ub530\ub77c \uc124\uc815\ud568. ondemand \uc11c\ube44\uc2a4\ub97c \ube44\ud65c\uc131\ud654 \ud30c\uc77c\uc774 \uc0dd\uc131\ub418\uba74, cpufrequtils \uc11c\ube44\uc2a4\ub97c \uc7ac\uc2e4\ud589 \uc774\uc81c cpufreq-info\ub97c \ud1b5\ud574 \ud655\uc778\ud574\ubcf4\uba74&#8230; \uc704\uc640 \uac19\uc774 performance \ubaa8\ub4dc\ub85c \uc14b\ud305\ub418\uc5b4 \uc788\uace0, CPU frequency\uac00 \uc62c\ub77c\uac00 \uc788\uc74c\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc74c.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[59],"tags":[326,325,327,18],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXSW-nF","jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1467"}],"collection":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1467"}],"version-history":[{"count":3,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1467\/revisions"}],"predecessor-version":[{"id":1470,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1467\/revisions\/1470"}],"wp:attachment":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}