{"id":744,"date":"2014-09-09T01:26:09","date_gmt":"2014-09-09T01:26:09","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=744"},"modified":"2014-11-19T11:54:11","modified_gmt":"2014-11-19T11:54:11","slug":"os-kernel-parameter-swappiness-warning","status":"publish","type":"post","link":"https:\/\/www.theSQLReport.com\/?p=744","title":{"rendered":"OS Kernel Parameter: swappiness Warning"},"content":{"rendered":"<p>Recently I was installing the Oracle Grid Infrastructure &#8211; 11g2R on a virtual Linux server.\u00a0 When the install process came to the Perform Prerequisite Checks screen, I received a warning on the OS Kernel Parameter: swappiness.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-749 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness.jpg\" alt=\"Warning_Swappiness\" width=\"820\" height=\"640\" \/><\/a><\/p>\n<p>The lower text box displayed the following details:<\/p>\n<pre>This is a prerequisite condition to test whether the OS kernel parameter \"swappiness\" is properly set.\r\nExpected Value\r\n :\u00a0Current=100; Configured=100\r\n Actual Value\r\n :\u00a0Current=60; Configured=unknown<\/pre>\n<p>When I clicked on the &#8220;more details&#8221; link, a pop-up box gave me similar information as the lower text box.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_Details.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-750 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_Details.jpg\" alt=\"Warning_Swappiness_Details\" width=\"423\" height=\"247\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_Details.jpg 423w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_Details-300x175.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_Details-210x122.jpg 210w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/a>Below is the text from the &#8220;Details&#8221; pop-up box:<\/p>\n<pre>OS Kernel Parameter: swappiness - This is a prerequisite condition to test whether the OS kernel parameter \"swappiness\" is properly set.\r\n Expected Value\r\n :\u00a0Current=100; Configured=100\r\n Actual Value\r\n :\u00a0Current=60; Configured=unknown\r\n Details:\r\n -\r\n PRVG-1201 : OS kernel parameter \"swappiness\" does not have proper value on node \"hlpoem01\" [Expected = \"100\" ; Current = \"60\"; Configured = \"unknown\"].\r\n- Cause:\u00a0&lt;null&gt;\r\n- Action:\u00a0&lt;null&gt;<\/pre>\n<h3>Resolution (MUST BE DONE AS ROOT):<\/h3>\n<p>In a different session window as root or a super user, I update the OS swappiness parameter.\u00a0 Below is the text I used, which in bold is nice for cutting &amp; pasting.<\/p>\n<p>First, view the current contents of the \/proc\/sys\/vm\/swappiness file.<\/p>\n<pre>&gt; <strong>cat \/proc\/sys\/vm\/swappiness<\/strong><\/pre>\n<p>The default linux OS parameter is 60.<\/p>\n<p>To fix the OS until the next server reboot:<\/p>\n<pre>&gt; <strong>echo 100 &gt; \/proc\/sys\/vm\/swappiness<\/strong><\/pre>\n<p>Then to fix the OS settings permanently after the next server reboot:<\/p>\n<pre>&gt; <strong>echo vm.swappiness=100 &gt;&gt; \/etc\/sysctl.conf<\/strong><\/pre>\n<p>Then I verified the change so that I could continue installing the Oracle Grid Infrastructure:<\/p>\n<pre>&gt; <strong>cat \/proc\/sys\/vm\/swappiness<\/strong><\/pre>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Linux_Swappiness_Change.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-747 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Linux_Swappiness_Change.jpg\" alt=\"Linux_Swappiness_Change\" width=\"513\" height=\"209\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Linux_Swappiness_Change.jpg 513w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Linux_Swappiness_Change-300x122.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Linux_Swappiness_Change-210x85.jpg 210w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/a><\/p>\n<p>I clicked on the Check Again button.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_CheckAgain.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-751 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_CheckAgain.jpg\" alt=\"Warning_Swappiness_CheckAgain\" width=\"820\" height=\"640\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_CheckAgain.jpg 820w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_CheckAgain-300x234.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Warning_Swappiness_CheckAgain-210x163.jpg 210w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><\/p>\n<p>Finally, the warning was gone.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Swappiness_Succeeded.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-748 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Swappiness_Succeeded.jpg\" alt=\"Swappiness_Succeeded\" width=\"823\" height=\"644\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Swappiness_Succeeded.jpg 823w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Swappiness_Succeeded-300x234.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/09\/Swappiness_Succeeded-210x164.jpg 210w\" sizes=\"(max-width: 823px) 100vw, 823px\" \/><\/a><\/p>\n<p>The Wikipedia page on <a title=\"Swappiness\" href=\"http:\/\/en.wikipedia.org\/wiki\/Swappiness\" target=\"_blank\">Swappiness<\/a> has more details on this parameter.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was installing the Oracle Grid Infrastructure &#8211; 11g2R on a virtual Linux server.\u00a0 When the install process came to the Perform Prerequisite Checks screen, I received a warning &hellip; <a class=\"readmore\" href=\"https:\/\/www.theSQLReport.com\/?p=744\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":749,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[33,32,31],"class_list":["post-744","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oracle","tag-oracle-grid","tag-os-kernel","tag-swappiness"],"_links":{"self":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/744"}],"collection":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=744"}],"version-history":[{"count":13,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/744\/revisions"}],"predecessor-version":[{"id":763,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/744\/revisions\/763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/749"}],"wp:attachment":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}