{"id":2563,"date":"2014-07-23T00:03:56","date_gmt":"2014-07-22T16:03:56","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2563"},"modified":"2014-07-23T00:03:56","modified_gmt":"2014-07-22T16:03:56","slug":"write-failed-cannot-allocate-memory","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2014\/07\/23\/write-failed-cannot-allocate-memory\/","title":{"rendered":"Write failed: Cannot allocate memory"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u5728\u4e00\u53f0\u6a5f\u5668\u8981 rsync \u6771\u897f\u7684\u6642\u5019\uff0c\u9047\u5230\u9019\u500b\u8a0a\u606f<\/p>\n<pre>Write failed: Cannot allocate memory<\/pre>\n<p>\u767c\u73fe\u662f\u50b3\u5927\u6a94\u51fa\u554f\u984c\uff0c\u9996\u5148\u61f7\u7591 zfs \u9020\u6210\u7684\uff0c\u4f46\u662f\u8a18\u61b6\u9ad4\u9084\u5269\u5f88\u591a\uff0c\u800c\u4e14 rsync \u5230\u540c\u4e00\u53f0\u6a5f\u5668\u6c92\u554f\u984c\uff0c\u4e1f\u5230\u5225\u53f0\u4e0d\u7ba1\u662f\u54ea\u53f0\u90fd\u6703\u51fa\u554f\u984c\uff0c\u90a3\u5927\u6982\u5c31\u4e0d\u662f\u6a94\u6848\u7cfb\u7d71\u7684\u4e8b\u4e86\u3002\u627e\u770b\u770b\u6709\u6c92\u6709\u8ddf\u7db2\u8def\u50b3\u5927\u6a94\u6709\u95dc\u7684\u8a0e\u8ad6\uff0c\u7d50\u679c\u5728<a href=\"http:\/\/lists.freebsd.org\/pipermail\/freebsd-emulation\/2011-July\/008957.html\">\u9019\u7bc7<\/a>\u88e1\u9762\u63cf\u8ff0\u7684\u60c5\u6cc1\u8ddf\u9047\u5230\u7684\u72c0\u6cc1\u5f88\u985e\u4f3c\uff0c\u9019\u53f0\u6a5f\u5668\u525b\u597d\u5c31\u662f\u6709\u88dd VirtualBox \u800c\u4e14\u9084\u6709 VM \u6b63\u5728\u8dd1\uff0c\u63a5\u8457\u5728<a href=\"http:\/\/lists.freebsd.org\/pipermail\/freebsd-emulation\/2011-July\/008977.html\">\u9019\u7bc7<\/a>\u88e1\u9762\u6709\u63d0\u5230\u89e3\u6cd5\uff1a<\/p>\n<p>\u5728 \/boot\/loader.conf \u88e1\u9762\u52a0\u4e0a net.graph.maxdata=65535<\/p>\n<p>\u8a2d\u597d\u91cd\u958b\u6a5f\u4e4b\u5f8c\uff0c\u679c\u7136\u554f\u984c\u5c31\u89e3\u6c7a\u4e86\u3002<\/p>\n<p>\u53e6\u5916\u4f3c\u4e4e VirtualBox \u7528\u7684\u7db2\u5361\u8ddf\u9023\u5916\u7684\u7db2\u5361\u4e0d\u540c\u5f35\u7684\u8a71\u5c31\u4e0d\u6703\u9047\u5230\u9019\u500b\u554f\u984c\uff0c\u6709\u4eba\u6574\u7406\u4e86\u4e00\u4e0b\u653e\u5728<a href=\"http:\/\/www.bmtsolutions.us\/wiki\/article:freebsd:errors:write_failed_cannot_allocate_memory\">\u9019\u88e1<\/a>\uff0c\u6709\u7a7a\u7684\u8a71\u518d\u4f86\u8a66\u8a66\u9019\u7a2e\u8a2d\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u5728\u4e00\u53f0\u6a5f\u5668\u8981 rsync \u6771\u897f\u7684\u6642\u5019\uff0c\u9047\u5230\u9019\u500b\u8a0a\u606f Write failed: Cannot allocate memory \u767c\u73fe\u662f\u50b3\u5927\u6a94\u51fa\u554f\u984c\uff0c\u9996\u5148\u61f7\u7591 zfs \u9020\u6210\u7684\uff0c\u4f46\u662f\u8a18\u61b6\u9ad4\u9084\u5269\u5f88\u591a\uff0c\u800c\u4e14 rsync \u5230\u540c\u4e00\u53f0\u6a5f\u5668\u6c92\u554f\u984c\uff0c\u4e1f\u5230\u5225\u53f0\u4e0d\u7ba1\u662f\u54ea\u53f0\u90fd\u6703\u51fa\u554f\u984c\uff0c\u90a3\u5927\u6982\u5c31\u4e0d\u662f\u6a94\u6848\u7cfb\u7d71\u7684\u4e8b\u4e86\u3002\u627e\u770b\u770b\u6709\u6c92\u6709\u8ddf\u7db2\u8def\u50b3\u5927\u6a94\u6709\u95dc\u7684\u8a0e\u8ad6\uff0c\u7d50\u679c\u5728\u9019\u7bc7\u88e1\u9762\u63cf\u8ff0\u7684\u60c5\u6cc1\u8ddf\u9047\u5230\u7684\u72c0\u6cc1\u5f88\u985e\u4f3c\uff0c\u9019\u53f0\u6a5f\u5668\u525b\u597d\u5c31\u662f\u6709\u88dd VirtualBox \u800c\u4e14\u9084\u6709 VM \u6b63\u5728\u8dd1\uff0c\u63a5\u8457\u5728\u9019\u7bc7\u88e1\u9762\u6709\u63d0\u5230\u89e3\u6cd5\uff1a \u5728 \/boot\/loader.conf \u88e1\u9762\u52a0\u4e0a net.graph.maxdata=65535 \u8a2d\u597d\u91cd\u958b\u6a5f\u4e4b\u5f8c\uff0c\u679c\u7136\u554f\u984c\u5c31\u89e3\u6c7a\u4e86\u3002 \u53e6\u5916\u4f3c\u4e4e VirtualBox \u7528\u7684\u7db2\u5361\u8ddf\u9023\u5916\u7684\u7db2\u5361\u4e0d\u540c\u5f35\u7684\u8a71\u5c31\u4e0d\u6703\u9047\u5230\u9019\u500b\u554f\u984c\uff0c\u6709\u4eba\u6574\u7406\u4e86\u4e00\u4e0b\u653e\u5728\u9019\u88e1\uff0c\u6709\u7a7a\u7684\u8a71\u518d\u4f86\u8a66\u8a66\u9019\u7a2e\u8a2d\u5b9a\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4591,4587],"class_list":["post-2563","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-freebsd","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2563"}],"version-history":[{"count":2,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2563\/revisions"}],"predecessor-version":[{"id":2566,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2563\/revisions\/2566"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}