{"id":1385,"date":"2016-08-27T08:31:51","date_gmt":"2016-08-27T00:31:51","guid":{"rendered":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=1385"},"modified":"2019-02-12T20:11:44","modified_gmt":"2019-02-12T12:11:44","slug":"linux%e6%80%a7%e8%83%bd%e8%b0%83%e4%bc%98%e7%9a%84%e4%b8%a4%e4%b8%aa%e5%8f%82%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2016\/08\/27\/linux%e6%80%a7%e8%83%bd%e8%b0%83%e4%bc%98%e7%9a%84%e4%b8%a4%e4%b8%aa%e5%8f%82%e6%95%b0\/","title":{"rendered":"Linux\u6027\u80fd\u8c03\u4f18\u7684\u4e24\u4e2a\u53c2\u6570"},"content":{"rendered":"<p>\u53ef\u4ee5\u4fee\u6539\/etc\/sysctl.conf\u6587\u4ef6\uff0c\u6dfb\u52a0\u6216\u8005\u4fee\u6539\u4ee5\u4e0b\u4e24\u4e2a\u53c2\u6570\uff0c\u5bf9linux\u6027\u80fd\u8fdb\u884c\u8c03\u4f18\uff1a<\/p>\n<pre>vm.swappiness = 10\r\nvm.vfs_cache_pressure = 200<\/pre>\n<p>swappiness\u9ed8\u8ba4\u503c\u662f60\uff0c\u503c\u8d8a\u5c0f\uff0c\u5219linux\u8d8a\u591a\u5229\u7528\u5185\u5b58\u3001\u5c11\u7528swap\u3002<\/p>\n<p>vfs_cache_pressure\u9ed8\u8ba4\u503c\u662f100\uff0c\u503c\u8d8a\u5927\uff0c\u5219linux\u5c3d\u53ef\u80fd\u65e9\u56de\u6536\u5185\u5b58\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u4fee\u6539\/etc\/sysctl.conf\u6587\u4ef6\uff0c\u6dfb\u52a0\u6216\u8005\u4fee\u6539\u4ee5\u4e0b\u4e24\u4e2a\u53c2\u6570\uff0c\u5bf9linux\u6027\u80fd\u8fdb\u884c\u8c03\u4f18\uff1a vm.swappiness = 10 vm.vfs_cach&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2016\/08\/27\/linux%e6%80%a7%e8%83%bd%e8%b0%83%e4%bc%98%e7%9a%84%e4%b8%a4%e4%b8%aa%e5%8f%82%e6%95%b0\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[11,571,416],"class_list":["post-1385","post","type-post","status-publish","format-standard","hentry","category-6","tag-linux","tag-571","tag-416"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=1385"}],"version-history":[{"count":1,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1385\/revisions"}],"predecessor-version":[{"id":1386,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1385\/revisions\/1386"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=1385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=1385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=1385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}