{"id":151579,"date":"2019-07-29T09:16:52","date_gmt":"2019-07-29T01:16:52","guid":{"rendered":"https:\/\/gulass.cn\/?p=151579"},"modified":"2019-07-23T09:18:18","modified_gmt":"2019-07-23T01:18:18","slug":"more-faster-oxfs","status":"publish","type":"post","link":"https:\/\/gulass.cn\/more-faster-oxfs.html","title":{"rendered":"\u66f4\u5feb\u7684\u7f51\u7edc\u6587\u4ef6\u7cfb\u7d71 \u2014 Oxfs"},"content":{"rendered":"
\u505a\u5d4c\u5165\u5f0f\u7684\u540c\u5b66\u7ecf\u5e38\u4f1a\u4f7f\u7528 NFS \u5c06 host \u4e0a\u7684\u67d0\u4e2a\u76ee\u5f55\u6302\u8f7d\u5230\u5f00\u53d1\u677f\u4e0a\uff0c\u65b9\u4fbf host \u4e0a\u7f16\u8bd1\u6784\u5efa\u540e\u80fd\u76f4\u63a5\u5728\u677f\u5b50\u4e0a\u8fd0\u884c\uff0c\u51cf\u5c11\u624b\u5de5\u62f7\u8d1d\u64cd\u4f5c\u3002
\n\u7f51\u7ad9\u5f00\u53d1\u65f6\uff0c\u5728 host \u4e0a\u5229\u7528 IDE \u8fdb\u884c\u5f00\u53d1\u540e\uff0c\u53d1\u5230\u7ebf\u4e0a\u673a\u5668\u4e0a\u8fd0\u884c\u6d4b\u8bd5\u65f6\uff0c\u4f7f\u7528\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\u80fd\u66f4\u5feb\u7684\u51cf\u5c11\u6570\u636e\u540c\u6b65\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002
\nC\/C++ \u7b49\u5927\u578b\u9879\u76ee\u5f00\u53d1\u65f6\uff0c\u56e2\u961f\u4f7f\u7528\u7edf\u4e00\u7684\u5f00\u53d1\u673a\u6784\u5efa\u4ee3\u7801\u65f6\uff0c\u4f7f\u7528\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\u80fd\u591f\u6302\u8f7d\u5f00\u53d1\u673a\u6587\u4ef6\u5230\u672c\u5730\uff0c\u4f60\u53ef\u4ee5\u65b9\u4fbf\u7684\u4f7f\u7528\u6613\u7528\u7684\u56fe\u5f62\u5316\u7f16\u8f91\u5668\u5199\u4ee3\u7801\u3002
\n\u5404\u79cd\u5404\u6837\u7684\u539f\u56e0\uff0c\u4f60\u9700\u8981\u4f7f\u7528\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff0c\u4f46\u662f\u4f60\u7684\u7f51\u7edc\u591f\u5feb\u5417\uff1f\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\u8fd8\u80fd\u518d\u5feb\u5417\uff1f<\/p>\n
\u5c0f\u7f16\u7528\u8fc7 NFS\uff0c\u4e5f\u7528\u8fc7 SSHF\uff0c\u90fd\u633a\u4e0d\u9519\u3002\u4f46\u662f\u5728\u7f51\u7edc\u6761\u4ef6\u4e0d\u7406\u60f3\u7684\u65f6\u5019\uff0c\u5361\u987f\u73b0\u8c61\u975e\u5e38\u660e\u663e\u3002
\n\u7f51\u7edc\u6761\u4ef6\u4e0d\u591f\u7406\u60f3\u65f6\u4f7f\u7528\u56fe\u5f62\u5316\u7684\u8f6f\u4f53\u7f16\u8f91\u8fdc\u7a0b\u6587\u4ef6\u4f53\u9a8c\u5f88\u5dee\uff0c\u5c24\u5176\u662f\u4f7f\u7528 oh my zsh \u8fd9\u6837\u91cd\u91cf\u7ea7\u7684\u63d2\u4ef6\u5de5\u4f5c\u5728\u8fdc\u7aef\u7684\u76ee\u5f55\u65f6\u3002
\n\u7f51\u4e0a\u66fe\u6709\u4eba\u5bf9\u6bd4\u8fc7 NFS \u548c SSHFS \uff08http:\/\/www.admin-magazine.com\/HPC\/Articles\/Sharing-Data-with-SSHFS\uff09\uff0cSSHFS \u786e\u5b9e\u76f8\u5bf9\u6765\u8bf4\u5f88\u4e0d\u9519\u3002
\n\u76f4\u5230\u7528\u4e0a\u4e86 Oxfs \u4ee5\u540e\uff0c\u5361\u987f\u95ee\u9898\u7ec8\u4e8e\u7f13\u89e3\u4e86 \uff1a\uff09<\/p>\n
Oxfs \u662f\u4e00\u4e2a\u7c7b\u4f3c\u4e0e SSHFS \u7684\u7528\u6237\u6001\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff0c\u5e95\u5c42\u6570\u636e\u4f20\u8f93\u57fa\u4e8e SFTP \u534f\u8bae\u3002
\nOxfs \u5f15\u5165\u975e\u540c\u6b65\u5237\u65b0\u7b56\u7565\u89e3\u51b3\u7f51\u7edc\u901f\u5ea6\u4e0e\u7528\u6237\u64cd\u4f5c\u6587\u4ef6\u8bfb\u901f\u5ea6\u4e0d\u5339\u914d\u5f15\u8d77\u7684\u5361\u987f\u95ee\u9898\u3002
\nOxfs \u5199\u6587\u4ef6\u65f6\uff0c\u4f1a\u9996\u5148\u5199\u5165\u672c\u5730\u7f13\u5b58\u6587\u4ef6\uff0c\u5e76\u63d0\u4ea4\u975e\u540c\u6b65\u66f4\u65b0\u4efb\u52a1\u5c06\u5185\u5bb9\u66f4\u65b0\u5230\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u3002
\n\u540c\u6837\u7684\uff0c\u8bfb\u6587\u4ef6\u65f6\u4f18\u5148\u4ece\u672c\u5730\u7f13\u5b58\u6587\u4ef6\u4e2d\u8fdb\u884c\u8bfb\u53d6\u3002
\nOxfs \u7684\u6570\u636e\u7f13\u5b58\u6700\u7ec8\u843d\u5230\u78c1\u789f\uff0c\u5373\u4fbf\u662f\u91cd\u65b0\u6302\u8f7d\uff0c\u4f9d\u65e7\u53ef\u4ee5\u5229\u7528\u5386\u53f2\u7f13\u5b58\u3002
\n\u540c\u6837\u7684\uff0cOxfs \u4e5f\u5f15\u5165\u4e86\u6587\u4ef6\u5c5e\u6027\uff0c\u76ee\u5f55\u7ed3\u6784\u7684 Memory \u7f13\u5b58\uff0c\u529f\u80fd\u4e0a\u5bf9\u9f50\u4e86 SSHFS\u3002
\n\u53ef\u4ee5\u8bf4\uff0cOxfs \u662f\u66ff\u4ee3 SSHFS \u7684\u4e00\u4e2a\u66f4\u597d\u9009\u62e9 \uff1a\uff09<\/p>\n
Oxfs \u7684\u5b89\u88c5\u975e\u5e38\u7b80\u5355\u3002<\/p>\n
$ pip install oxfs\r\n<\/pre>\nOxfs \u7684\u7528\u6cd5\u4e5f\u5f88\u7b80\u5355\u3002<\/p>\n
$ mkdir remote\r\n$ sudo oxfs -s user@xxx.xxx.xxx.xxx -m remote -r \/home\/oxfs -p \/tmp\/oxfs\r\n<\/pre>\n-s \u914d\u7f6e\u8fdc\u7a0b\u4e3b\u673a\u8bbf\u95ee\u7684\u5730\u5740\u548c\u7528\u6237\uff0c\u8981\u6c42\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u914d\u7f6e\u4e86\u5f53\u524d\u673a\u5668\u7684 SSH \u516c\u94a5\u3002
\n-m \u8bbe\u7f6e\u672c\u5730\u6302\u8f7d\u70b9\u3002
\n-r \u8bbe\u7f6e\u8981\u6302\u8f7d\u5230\u672c\u5730\u7684\u8fdc\u7a0b\u4e3b\u673a\u76ee\u5f55\u3002
\n-p \u8bbe\u7f6e Oxfs \u8fd0\u884c\u65f6\u5de5\u4f5c\u76ee\u5f55\uff0c\u7528\u4e8e\u6570\u636e\u7f13\u5b58<\/p>\n","protected":false},"excerpt":{"rendered":"\u505a\u5d4c\u5165\u5f0f\u7684\u540c\u5b66\u7ecf\u5e38\u4f1a\u4f7f\u7528 NFS \u5c06 host \u4e0a\u7684\u67d0\u4e2a\u76ee\u5f55\u6302\u8f7d\u5230\u5f00\u53d1\u677f\u4e0a\uff0c\u65b9\u4fbf host \u4e0a\u7f16\u8bd1\u6784\u5efa\u540e\u80fd\u76f4\u63a5 […]<\/p>\n","protected":false},"author":1476,"featured_media":151586,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-151579","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\/151579","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\/1476"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=151579"}],"version-history":[{"count":5,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/151579\/revisions"}],"predecessor-version":[{"id":151648,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/151579\/revisions\/151648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/151586"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=151579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=151579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=151579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}