{"id":70,"date":"2016-05-05T08:41:58","date_gmt":"2016-05-05T08:41:58","guid":{"rendered":"https:\/\/www.hostingahead.com\/blog\/?p=70"},"modified":"2016-05-06T07:27:13","modified_gmt":"2016-05-06T07:27:13","slug":"add-swap-memory-linux","status":"publish","type":"post","link":"https:\/\/www.hostingahead.com\/blog\/add-swap-memory-linux\/","title":{"rendered":"How to add swap memory on Linux"},"content":{"rendered":"<p>Here were are going to create a 4GB SWAP memory. You can do this buy specifying a block size of 1GB with a count of 4. You can specify your own swap size.<\/p>\n<blockquote><p>sudo dd if=\/dev\/zero of=\/swapfile bs=1G count=4<\/p><\/blockquote>\n<p><strong>Enabling the Swap File<\/strong><br \/>\nMake sure the file has proper permission.<\/p>\n<blockquote><p>sudo chmod 600 \/swapfile<\/p><\/blockquote>\n<p><strong>Now format the file so that operating system can understand this is a swap file .<\/strong><\/p>\n<blockquote><p>sudo mkswap \/swapfile<\/p><\/blockquote>\n<p>Now enable the swap memory<\/p>\n<blockquote><p>sudo swapon \/swapfile<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here were are going to create a 4GB SWAP memory. You can do this buy specifying a block size of 1GB with a count of 4. You can specify your own swap size. sudo dd if=\/dev\/zero of=\/swapfile bs=1G count=4 Enabling the Swap File Make sure the file has proper permission. sudo chmod 600 \/swapfile Now &#8230;<\/p>\n","protected":false},"author":101012,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1,4,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/posts\/70"}],"collection":[{"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/users\/101012"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":1,"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostingahead.com\/blog\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}