{"id":126652,"date":"2018-11-28T09:10:30","date_gmt":"2018-11-28T01:10:30","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=126652"},"modified":"2018-11-05T11:12:30","modified_gmt":"2018-11-05T03:12:30","slug":"facebook-linux-tool","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/facebook-linux-tool.html","title":{"rendered":"\u53c8\u4e00\u6279Linux\u5185\u6838\u7ec4\u4ef6\u4e0e\u5de5\u5177\u5f00\u6e90\uff01\u6765\u81eaFacebook\uff01"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u8fd1\u65e5\uff0cFacebook \u5f00\u6e90\u4e86\u4e00\u5957\u89e3\u51b3\u91cd\u8981\u8ba1\u7b97\u96c6\u7fa4\u7ba1\u7406\u95ee\u9898\u7684 Linux \u5185\u6838\u7ec4\u4ef6\u548c\u76f8\u5173\u5de5\u5177\uff0c\u8fd9\u4e9b\u9879\u76ee\u8986\u76d6\u4e86\u8d44\u6e90\u63a7\u5236\u3001\u8d44\u6e90\u5229\u7528\u3001\u5de5\u4f5c\u8d1f\u8f7d\u9694\u79bb\u3001\u8d1f\u8f7d\u5747\u8861\u3001\u6d4b\u91cf\u548c\u76d1\u63a7\u7b49\u65b9\u9762\uff1aBPF\u3001Btrfs\u3001Netconsd\u3001Cgroup2\u3001PSI\u3001Oomd\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8fd1\u65e5\uff0cFacebook \u5f00\u6e90\u4e86\u4e00\u5957\u89e3\u51b3\u91cd\u8981\u8ba1\u7b97\u96c6\u7fa4\u7ba1\u7406\u95ee\u9898\u7684 Linux \u5185\u6838\u7ec4\u4ef6\u548c\u76f8\u5173\u5de5\u5177\uff0c\u8fd9\u4e9b\u9879\u76ee\u8986\u76d6\u4e86\u8d44\u6e90\u63a7\u5236\u3001\u8d44\u6e90\u5229\u7528\u3001\u5de5\u4f5c\u8d1f\u8f7d\u9694\u79bb\u3001\u8d1f\u8f7d\u5747\u8861\u3001\u6d4b\u91cf\u548c\u76d1\u63a7\u7b49\u65b9\u9762\uff1aBPF\u3001Btrfs\u3001Netconsd\u3001Cgroup2\u3001PSI\u3001Oomd\u3002<\/p>\n

\"\"<\/p>\n

Facebook \u8868\u793a\u8fd9\u4e9b\u9879\u76ee\u73b0\u5728\u5df2\u5927\u89c4\u6a21\u7528\u4e8e\u5176\u6240\u6709\u57fa\u7840\u8bbe\u65bd\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5e76\u7528\u4e8e\u5176\u5b83\u8bb8\u591a\u4f01\u4e1a\u7ec4\u7ec7\u7684\u73af\u5883\u4e2d\u3002<\/p>\n

BPF<\/strong><\/div>\n

BPF \u662f Linux \u5185\u6838\u4e2d\u4e00\u79cd\u9ad8\u5ea6\u7075\u6d3b\u3001\u9ad8\u6548\u7387\u7684\u4ee3\u7801\u6267\u884c\u5f15\u64ce\uff0c\u53ef\u4ee5\u8ba9\u5b57\u8282\u7801\u5728\u5404\u4e2a hook \u70b9\u8fd0\u884c\uff0c\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4ee3\u7801\u3002\u867d\u7136 BPF \u5df2\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u5305\u8fc7\u6ee4\uff0c\u4f46\u662f BPF \u7684\u6307\u4ee4\u96c6\u5177\u6709\u5f88\u5f3a\u7684\u901a\u7528\u6027\u548c\u7075\u6d3b\u6027\uff0c\u8db3\u4ee5\u652f\u6301\u548c\u5141\u8bb8\u9664\u7f51\u7edc\u4e4b\u5916\u7684\u4f17\u591a\u4f7f\u7528\u573a\u5408\uff0c\u6bd4\u5982\u8ddf\u8e2a\u548c\u5b89\u5168\uff08\u6bd4\u5982\u6c99\u7bb1\uff09\u3002<\/p>\n

https:\/\/facebookmicrosites.github.io\/bpf\/<\/p>\n

Btrfs<\/strong><\/div>\n

Btrfs \u662f\u4e0b\u4e00\u4ee3\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u4ee5\u5f53\u4e0b\u7684\u6570\u636e\u4e2d\u5fc3\u4e3a\u57fa\u7840\u3002\u5b83\u662f\u4e00\u4e2a\u5199\u65f6\u590d\u5236\uff08CoW\uff09\u6587\u4ef6\u7cfb\u7edf\uff0c\u4e13\u6ce8\u4e8e\u9ad8\u7ea7\u529f\u80fd\u5b9e\u73b0\u3001\u5bb9\u9519\u3001\u4fee\u590d\u548c\u8f7b\u677e\u7ba1\u7406\u3002Btrfs \u65e8\u5728\u89e3\u51b3\u548c\u7ba1\u7406\u5927\u578b\u5b58\u50a8\u5b50\u7cfb\u7edf\uff0c\u5e76\u652f\u6301\u5feb\u7167\u3001\u8054\u673a\u788e\u7247\u6574\u7406\u3001\u6c60\u5316\u548c\u96c6\u6210\u7684\u591a\u8bbe\u5907\u652f\u6301\u7b49\u529f\u80fd\u3002<\/p>\n

https:\/\/facebookmicrosites.github.io\/btrfs\/<\/p>\n

Netconsd<\/strong><\/div>\n

Netconsd \u662f\u4e00\u4e2a\u57fa\u4e8e UDP \u7684 netconsole \u5b88\u62a4\u7a0b\u5e8f\uff0c\u4e3a Linux netconsole \u6d88\u606f\u63d0\u4f9b\u8f7b\u91cf\u7ea7\u4f20\u8f93\u3002\u5b83\u63a5\u6536\u5e76\u5904\u7406\u6765\u81ea Linux \u5185\u6838\u7684\u65e5\u5fd7\u6570\u636e\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u7ed3\u6784\u5316\u6570\u636e\u63d0\u4f9b\u4ee5\u7ed9\u751f\u4ea7\u5de5\u7a0b\u5e08\u4ee5\u5feb\u901f\u8bc6\u522b\u96c6\u7fa4\u4e2d\u95ee\u9898\u3002<\/p>\n

https:\/\/facebookmicrosites.github.io\/netconsd\/<\/p>\n

Cgroup2<\/strong><\/div>\n

Cgroup2 \u662f\u4e0b\u4e00\u4ee3 Linux \u5185\u6838\u673a\u5236\uff0c\u7528\u4e8e\u5206\u7ec4\u548c\u6784\u9020\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u4ee5\u53ca\u63a7\u5236\u5206\u914d\u7ed9\u6bcf\u4e2a\u7ec4\u7684\u7cfb\u7edf\u8d44\u6e90\u91cf\u3002\u5b83\u5177\u6709\u5185\u5b58\u3001I\/O\u3001\u4e2d\u592e\u5904\u7406\u5355\u5143\u7b49\u63a7\u5236\u5668\uff0c\u5b83\u8fd8\u5141\u8bb8\u9694\u79bb\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u5e76\u4e3a\u6bcf\u4e2a\u5de5\u4f5c\u8d1f\u8f7d\u786e\u5b9a\u8d44\u6e90\u5206\u914d\u7684\u4f18\u5148\u7ea7\u548c\u914d\u7f6e\u3002<\/p>\n

https:\/\/facebookmicrosites.github.io\/cgroup2\/<\/p>\n

PSI<\/strong><\/div>\n

PSI\uff08Pressure Stall Information\uff0c\u538b\u529b\u5931\u901f\u4fe1\u606f\uff09\u9996\u6b21\u63d0\u4f9b\u4e86\u4e00\u79cd\u89c4\u8303\uff0c\u901a\u8fc7\u5185\u5b58\u3001CPU \u548c I\/O \u8fd9\u4e09\u79cd\u4e3b\u8981\u8d44\u6e90\u7684\u65b0\u538b\u529b\u6307\u6807\u6765\u91cf\u5316\u8d44\u6e90\u77ed\u7f3a\u3002\u8fd9\u4e9b\u538b\u529b\u6307\u6807\u4e0e\u6b64\u6b21\u5f00\u6e90\u7684\u5176\u5b83\u5185\u6838\u548c\u7528\u6237\u7a7a\u95f4\u5de5\u5177\u76f8\u7ed3\u5408\uff0c\u53ef\u4ee5\u5728\u667a\u80fd\u5f00\u53d1\u548c\u54cd\u5e94\u65f6\u68c0\u6d4b\u8d44\u6e90\u77ed\u7f3a\u3002PSI \u7edf\u8ba1\u6570\u636e\u4e3a\u5373\u5c06\u53d1\u751f\u7684\u8d44\u6e90\u77ed\u7f3a\u63d0\u4f9b\u65e9\u671f\u9884\u8b66\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u79ef\u6781\u4e3b\u52a8\u3001\u7ec6\u81f4\u7684\u54cd\u5e94\u3002<\/p>\n

https:\/\/facebookmicrosites.github.io\/psi\/<\/p>\n

Oomd<\/strong><\/div>\n

Oomd \u662f\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4 OOM\uff08\u5185\u5b58\u4e0d\u8db3\uff09\u8fdb\u7a0b\u6740\u624b\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u4e86\u89e3\u7cfb\u7edf\u4e0a\u8fd0\u884c\u7684\u8fdb\u7a0b\u7684\u4e0a\u4e0b\u6587\u548c\u4f18\u5148\u7ea7\u3002\u5b83\u5141\u8bb8\u914d\u7f6e\u5bf9 OOM \u6761\u4ef6\u7684\u54cd\u5e94\uff0c\u4f8b\u5982\u6682\u505c\u6216\u7ec8\u6b62\u975e\u5fc5\u9700\u9879\u3001\u91cd\u65b0\u5206\u914d\u7cfb\u7edf\u4e2d\u7684\u5185\u5b58\u7b49\u64cd\u4f5c\u3002<\/p>\n

https:\/\/facebookmicrosites.github.io\/oomd\/<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fd1\u65e5\uff0cFacebook \u5f00\u6e90\u4e86\u4e00\u5957\u89e3\u51b3\u91cd\u8981\u8ba1\u7b97\u96c6\u7fa4\u7ba1\u7406\u95ee\u9898\u7684 Linux \u5185\u6838\u7ec4\u4ef6\u548c\u76f8\u5173\u5de5\u5177\uff0c\u8fd9\u4e9b\u9879\u76ee\u8986\u76d6\u4e86\u8d44 […]<\/p>\n","protected":false},"author":1898,"featured_media":126655,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[177],"class_list":["post-126652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-facebook"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/126652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1898"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=126652"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/126652\/revisions"}],"predecessor-version":[{"id":127051,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/126652\/revisions\/127051"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/126655"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=126652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=126652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=126652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}