{"id":226,"date":"2015-07-06T11:07:11","date_gmt":"2015-07-06T11:07:11","guid":{"rendered":"http:\/\/www.howtolearnlinux.com\/?p=226"},"modified":"2019-01-26T03:45:13","modified_gmt":"2019-01-26T03:45:13","slug":"linux-swap-memory","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=226","title":{"rendered":"Linux SWAP Memory"},"content":{"rendered":"<p>Listed delow is the procedure to create a swap space in Linux:<\/p>\n<p># fdisk \/dev\/sda : Create a partition in Linux<br \/>\n# mkswap -v1 \/dev\/sda10 : Make and format swap partition using this command<br \/>\n# swapon \/de\/sda10 : Add the new swap space to the existing swap area using this command (this is temporary)<br \/>\n# free -m : Check the total swap memory<\/p>\n<p># swapoff \/dev\/sda10 : Take off the additional swap space<br \/>\n# swapon -s : Check existing partition in swap area<\/p>\n<p>Use FSTAB to permanently add the new partition<\/p>\n<p>Procedure to add a swap page:<\/p>\n<p># dd if=\/dev\/zero of swapfile bs=1024 count=10000<br \/>\n# mkswap swapfile<br \/>\n# swapon swapfile<br \/>\n# free -m<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Listed delow is the procedure to create a swap space in Linux: # fdisk \/dev\/sda : Create a partition in Linux # mkswap -v1 \/dev\/sda10 <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=226\" title=\"Linux SWAP Memory\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":252,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=226"}],"version-history":[{"count":1,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":227,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/226\/revisions\/227"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}