\u6709\u65f6\u4eba\u4eec\u8fd8\u4f1a\u589e\u52a0 vm.dirty_expire_centisecs \u53c2\u6570\u4ee5\u5141\u8bb8\u7f13\u5b58\u4e2d\u66f4\u591a\u65f6\u95f4\u3002\u9664\u4e86\u6570\u636e\u4e22\u5931\u7684\u98ce\u9669\u589e\u52a0\u4e4b\u5916\uff0c\u5982\u679c\u7f13\u5b58\u5df2\u6ee1\u5e76\u9700\u8981\u8f6c\u50a8\uff0c\u8fd8\u9762\u4e34\u957f\u65f6\u95f4 I\/O \u6682\u505c\u7684\u98ce\u9669\uff0c\u56e0\u4e3a\u5728\u5927\u578b VM \u4e0a\uff0c\u7f13\u5b58\u4e2d\u4f1a\u6709\u5927\u91cf\u6570\u636e\u3002\u65b9\u6cd53\uff1a\u53cc\u5411\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u7cfb\u7edf\u5fc5\u987b\u5904\u7406\u4e0d\u9891\u7e41\u7684\u7a81\u53d1\u6d41\u91cf\u5230\u6162\u901f\u78c1\u76d8\uff08\u6574\u70b9\u9876\u90e8\u7684\u6279\u5904\u7406\u4f5c\u4e1a\u3001\u5348\u591c\u3001\u5199\u5165 Raspberry Pi \u4e0a\u7684 SD \u5361\u7b49\uff09\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4e00\u79cd\u65b9\u6cd5\u53ef\u80fd\u662f\u5141\u8bb8\u5c06\u6240\u6709\u5199\u5165 I\/O \u5b58\u653e\u5728\u7f13\u5b58\u4e2d\uff0c\u4ee5\u4fbf\u540e\u53f0\u5237\u65b0\u64cd\u4f5c\u53ef\u4ee5\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\u5f02\u6b65\u5904\u7406\u5b83\uff1a<\/p>\n
vm.dirty_background_ratio = 5\r\nvm.dirty_ratio = 80<\/pre>\n\u5728\u8fd9\u91cc\uff0c\u540e\u53f0\u8fdb\u7a0b\u5728\u8fbe\u5230 5% \u7684\u4e0a\u9650\u65f6\u5c06\u7acb\u5373\u5f00\u59cb\u5199\u5165\uff0c\u4f46\u7cfb\u7edf\u4e0d\u4f1a\u5f3a\u5236\u540c\u6b65 I\/O\uff0c\u76f4\u5230\u5b83\u8fbe\u5230 80% \u6ee1\u3002\u4ece\u90a3\u91cc\uff0c\u60a8\u53ea\u9700\u8c03\u6574\u7cfb\u7edfRAM\u7684\u5927\u5c0f\uff0cvm.dirty_ratio\u5c31\u53ef\u4ee5\u6d88\u8017\u6240\u6709\u5199\u5165\u7684\u6570\u636e\u3002\u540c\u6837\uff0c\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u4e00\u81f4\u6027\u9700\u8981\u6743\u8861\uff0c\u8fd9\u8f6c\u5316\u4e3a\u6570\u636e\u98ce\u9669\u3002\u8d2d\u4e70 UPS \u5e76\u786e\u4fdd\u60a8\u53ef\u4ee5\u5728 UPS \u65ad\u7535\u4e4b\u524d\u8f6c\u50a8\u7f13\u5b58\u3002:)\u65e0\u8bba\u60a8\u9009\u62e9\u54ea\u79cd\u8def\u7ebf\uff0c\u60a8\u90fd\u5e94\u8be5\u59cb\u7ec8\u6536\u96c6\u786c\u6570\u636e\u6765\u652f\u6301\u60a8\u7684\u66f4\u6539\uff0c\u5e76\u5e2e\u52a9\u60a8\u786e\u5b9a\u662f\u6b63\u5728\u6539\u8fdb\u8fd8\u662f\u4f7f\u4e8b\u60c5\u53d8\u5f97\u66f4\u7cdf\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4ece\u8bb8\u591a\u4e0d\u540c\u7684\u4f4d\u7f6e\u83b7\u53d6\u6570\u636e\uff0c\u5305\u62ec\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u3001\/proc\/vmstat\u3001\/proc\/meminfo\u3001iostat\u3001vmstat \u4ee5\u53ca \/proc\/sys\/vm \u4e2d\u7684\u8bb8\u591a\u5185\u5bb9\u3002\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u810f\u9875\u914d\u7f6e\u4e5f\u662f\u4e00\u79cd\u827a\u672f\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4e0b\u8c03\u6574\uff0c\u6ce8\u610fvm.dirty_background_ratio\u914d\u7f6e\u7684\u6bd4\u4f8b\u662f\u7f13\u5b58\u548c\u7a7a\u95f2\u5185\u5b58\u7684\u6bd4\u4f8b\uff0cvm.dirty_ratio\u662f\u603b\u5185\u5b58\u7684\u6bd4\u4f8b\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4eec\u8ba8\u8bba\u4e86Linux\u5ba2\u6237\u673a\u4e0a\u7684\u5185\u5b58\u5982\u4f55\u7528\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\uff08\u5185\u6838\uff0c\u7f13\u51b2\u533a\u7b49\uff09\uff0c\u5e94\u7528\u7a0b\u5e8f\u4ee5\u53ca\u6587\u4ef6\u7f13\u5b58\u3002\u6587\u4ef6\u7f13\u5b58\u662f\u4e00\u9879 […]<\/p>\n","protected":false},"author":323,"featured_media":260403,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-261080","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/261080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=261080"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/261080\/revisions"}],"predecessor-version":[{"id":261082,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/261080\/revisions\/261082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/260403"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=261080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=261080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=261080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}