{"id":2251,"date":"2015-10-05T02:21:25","date_gmt":"2015-10-05T00:21:25","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2251"},"modified":"2017-05-11T09:42:36","modified_gmt":"2017-05-11T07:42:36","slug":"ubuntu-swap-ram","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/ubuntu-swap-ram\/","title":{"rendered":"Ubuntu swap &#038; ram"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\nALT+F2\r\ngksudo gedit \/etc\/sysctl.conf\r\n#append or modify (if already exists) the following:\r\n#0 .. 100 (0 = no swap)\r\nvm.swappiness=1\r\n\r\n# http:\/\/askubuntu.com\/questions\/1357\/how-to-empty-swap-if-there-is-free-ram\r\n# swap info\r\nswapon -s\r\ncat \/proc\/swaps\r\nvmstat 1\r\nsystemctl list-units --type=swap\r\nsystemctl list-units | grep \\.swap\r\n# clear swap cache\r\nsudo swapoff -a\r\nsudo swapon -a\r\n\r\n# comment swap lines in \/etc\/fstab and stop & mask them with systemd:\r\nsudo systemctl status dev-sda3.swap\r\nsudo systemctl stop dev-sda3.swap\r\n# or stop and disable the swap:\r\nsudo systemctl --now mask dev-sda3.swap\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ALT+F2 gksudo gedit \/etc\/sysctl.conf #append or modify (if already exists) the following: #0 .. 100 (0 = no swap) vm.swappiness=1 # http:\/\/askubuntu.com\/questions\/1357\/how-to-empty-swap-if-there-is-free-ram # swap info swapon -s cat \/proc\/swaps vmstat 1 systemctl list-units &#8211;type=swap systemctl list-units | grep \\.swap # [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/ubuntu-swap-ram\/#more-2251\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Ubuntu swap &#038; ram<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11,33],"tags":[105,104,103],"class_list":["post-2251","post","type-post","status-publish","format-standard","hentry","category-configuration","category-linux","category-ubuntu","tag-memory","tag-ram","tag-swap"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=2251"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2251\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}