{"id":3014,"date":"2015-08-07T05:03:28","date_gmt":"2015-08-07T05:03:28","guid":{"rendered":"http:\/\/www.esds.co.in\/kb\/?p=3014"},"modified":"2015-08-07T05:03:28","modified_gmt":"2015-08-07T05:03:28","slug":"how-to-optimize-and-increase-swap-partition-file-with-enlight","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/","title":{"rendered":"How to optimize and increase Swap partition file with eNlight?"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-3011\" src=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/08\/linux-swap-644x250.jpg\" alt=\"How to optimize and increase Swap partition with eNlight?\" width=\"673\" height=\"343\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/08\/linux-swap-644x250.jpg 673w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/08\/linux-swap-644x250-300x153.jpg 300w\" sizes=\"(max-width: 673px) 100vw, 673px\" \/><\/p>\n<p><strong>Introduction<\/strong><\/p>\n<p>Swap file partition is the conception that glues only with Linux servers; it is not used with Windows server. Windows operating system comes altogether with complete single partition, whereas, Linux operating system has separate swap file partition. Swap space also known as\u00a0virtual memory on Linux server plays very important role in system performance. When the server runs out of memory, the kernel can move inactive processes to swap to make space for active processes in the working memory.<strong>\u00a0 <\/strong><\/p>\n<p><strong>Swap file partition need and optimization<\/strong><\/p>\n<p>The question is do I really need swap partition and will it really affect my system performance. Yes! Swap file partition can add up to your system performance if optimized and used in a proper way. Swap literally provides a way to run new application, if the memory has gone full. Below are advantages of Swap file partition:<\/p>\n<ul>\n<li>Facilitates runoff space memory (RAM) fills up entirely<\/li>\n<li>Rarely-used applications can be moved to Swap, for giving room for mostly used.<\/li>\n<li>Enables Hibernation<\/li>\n<\/ul>\n<p>The use of swap space can be controlled by altering the system\u2019s swappiness value, it is recommended to be \u20181\u2019 for Linux VMs running on eNlight Cloud Platform.<\/p>\n<p>open\u00a0\/etc\/sysctl.conf file and put the following entry : vm.swappiness = 1<\/p>\n<p>Then apply the changes using the following command : sysctl \u2013p<\/p>\n<p><strong>Increase in Swap file partition<\/strong><\/p>\n<p>Before increasing the Swap space on the server, it is necessary to check for enough free space available on the partition atleast larger than that of Swap size. Follow these simple steps for successful increase in swap space.<\/p>\n<p>Step 1:- #dd if=\/dev\/zero of=\/swapfile bs=1024 count=1572864 : This command creates the free space for file \/swapfile to 1.5 GB<\/p>\n<p>Step 2:- #mkswap \/swapfile<\/p>\n<p>Step 3:- #chown root:root \/swapfile<\/p>\n<p>Step 4:- #chmod 0600 \/swapfile1<\/p>\n<p>Step 5:- #swapon \/swapfile1<\/p>\n<p>Step 6:- #vi \/etc\/fstab : enter this at the end of file &#8220;\/swapfile1 swap swap defaults 0 0&#8221;<\/p>\n<p>Step 7:- # mount -a or free -m (check swap file size for your confirmation)<\/p>\n<p>&nbsp;<\/p>\n<p>There you go! Your increased Swap file partition is ready.<\/p>\n<p>For further queries <a href=\"https:\/\/www.esds.co.in\/contactus.php\">contact our Exuberant Customer support team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Swap partition file introduction along with detailed steps and commands for optimization of swap space and increasing the swap partition file successfully. <\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[423,43,658],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to optimize and increase Swap partition file with eNlight?<\/title>\n<meta name=\"description\" content=\"Swap partition file introduction along with detailed steps and commands for optimization of swap space and increasing the swap partition file successfully.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to optimize and increase Swap partition file with eNlight?\" \/>\n<meta property=\"og:description\" content=\"Swap partition file introduction along with detailed steps and commands for optimization of swap space and increasing the swap partition file successfully.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-07T05:03:28+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/08\/linux-swap-644x250.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/08\/linux-swap-644x250.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/\",\"name\":\"How to optimize and increase Swap partition file with eNlight?\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/#primaryimage\"},\"datePublished\":\"2015-08-07T05:03:28+00:00\",\"dateModified\":\"2015-08-07T05:03:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/807313e67c0638369bb6094b4941ae25\"},\"description\":\"Swap partition file introduction along with detailed steps and commands for optimization of swap space and increasing the swap partition file successfully.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/how-to-optimize-and-increase-swap-partition-file-with-enlight\/\",\"name\":\"How to optimize and increase Swap partition file with eNlight?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/807313e67c0638369bb6094b4941ae25\",\"name\":\"Vaishnavi Kulkarni\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7535bc3cc45bc3c067caa9ed33f0f689?s=96&d=mm&r=g\",\"caption\":\"Vaishnavi Kulkarni\"},\"description\":\"Vaishnavi is an Engineer and a blogger with an acute inclination to technology, especially the computing technologies. At ESDS, she explores cases of PaaS and related technologies and gives consultation by means of blogs. Connect with her over Twitter and Facebook\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/3014"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=3014"}],"version-history":[{"count":1,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/3014\/revisions"}],"predecessor-version":[{"id":3015,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/3014\/revisions\/3015"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=3014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=3014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=3014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}