{"id":89,"date":"2016-10-15T23:31:26","date_gmt":"2016-10-15T16:31:26","guid":{"rendered":"http:\/\/prosindo.com\/blog\/?p=89"},"modified":"2016-10-15T23:31:26","modified_gmt":"2016-10-15T16:31:26","slug":"raspberry-pi-raspbian-swap-configuration","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2016\/10\/15\/raspberry-pi-raspbian-swap-configuration\/","title":{"rendered":"Raspberry Pi Raspbian SWAP Configuration"},"content":{"rendered":"<p>Raspbian uses <a href=\"http:\/\/neil.franklin.ch\/Projects\/dphys-swapfile\/\">dphys-swapfile<\/a>, which is a swap-file based solution instead of the &#8220;standard&#8221; swap-partition based solution. It is much easier to change the size of the swap.<\/p>\n<p>The configuration file is:<\/p>\n<p><code>\/etc\/dphys-swapfile<\/code><\/p>\n<p>The content is very simple. By default my Raspbian has 100MB of swap:<\/p>\n<p><code>CONF_SWAPSIZE=100<\/code><\/p>\n<p>If you want to change the size, you need to modify the number and restart dphys-swapfile:<\/p>\n<p><code>\/etc\/init.d\/dphys-swapfile stop<br \/>\n\/etc\/init.d\/dphys-swapfile start<br \/>\n<\/code><br \/>\nEdit: On Raspbian the default location is <code>\/var\/swap<\/code>, which is (of course) located on the SD card. I think it is a bad idea, so I would like to point out, that the <code>\/etc\/dphys-swapfile<\/code> can have the following option too:<\/p>\n<p><code>CONF_SWAPFILE=\/media\/btsync\/swapfile<\/code><\/p>\n<p>I only problem with it, the usb storage is automounted, so a potential race here (automount vs. swapon)<\/p>\n<p>Source:<br \/>\n&#8211; http:\/\/raspberrypi.stackexchange.com\/questions\/70\/how-to-set-up-swap-space<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspbian uses dphys-swapfile, which is a swap-file based solution instead of the &#8220;standard&#8221; swap-partition based solution. It is much easier to change the size of the swap. The configuration file is: \/etc\/dphys-swapfile The content is very simple. By default my Raspbian has 100MB of swap: CONF_SWAPSIZE=100 If you want to change the size, you need &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2016\/10\/15\/raspberry-pi-raspbian-swap-configuration\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raspberry Pi Raspbian SWAP Configuration&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,21,26],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-raspberry-pi","tag-raspbian","tag-swap"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}