{"id":562,"date":"2020-11-07T19:33:39","date_gmt":"2020-11-07T11:33:39","guid":{"rendered":"http:\/\/124.244.86.40:8080\/wordpress\/?p=562"},"modified":"2020-11-10T17:42:19","modified_gmt":"2020-11-10T09:42:19","slug":"%e5%90%8c%e6%ad%a5%e4%b8%8a%e8%bc%89%e8%88%87-ram-%e4%b8%8d%e8%b6%b3%e7%9a%84%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/imuslab.com\/wordpress\/2020\/11\/07\/%e5%90%8c%e6%ad%a5%e4%b8%8a%e8%bc%89%e8%88%87-ram-%e4%b8%8d%e8%b6%b3%e7%9a%84%e5%95%8f%e9%a1%8c\/","title":{"rendered":"\u540c\u6b65\u4e0a\u8f09\u8207 RAM \u4e0d\u8db3\u7684\u554f\u984c"},"content":{"rendered":"\n<p>\u5728 Raspberry Pi \u4e0a\u9762\u57f7\u884c\u985e\u4f3c arozos \u4e4b\u985e\u7684\u5927\u578b\u7cfb\u7d71\u4e0d\u514d\u6703\u51fa\u73fe\u4e00\u500b\u554f\u984c\uff0c\u5c31\u662f\u7576\u8981\u8655\u7406\u5927\u91cf IO \u7684\u6642\u5019\u7e3d\u6703\u5361\u4f4f\uff08\u7562\u7adf\u6700\u5feb\u7684\u5132\u5b58\u5668\uff08 RAM\u3001\u8a18\u61b6\u9ad4\uff09 \u53ea\u6709\u90a3 2 &#8211; 4GB\uff0c\u96d6\u7136\u8aaa\u73fe\u5728\u5df2\u7d93\u51fa\u5230 8GB \u4e86\uff0c\u4f46\u662f\u90a3\u500b\u50f9\u683c\u6211\u5012\u4e0d\u5982\u8cb7\u53f0\u4e8c\u624b\u7684 ThinkCentre M73\uff1f\uff09\uff0c\u6240\u4ee5\u8981\u5982\u4f55\u5728\u6709\u9650 RAM \u7684\u60c5\u6cc1\u4e0b\u8b93\u6a94\u6848\u4e0a\u4e0b\u8f09\u901f\u5ea6\u6700\u4f73\u5316\u662f\u5176\u4e2d\u4e00\u500b\u5f88\u6709\u8da3\u7684\u7814\u7a76\u65b9\u5411\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0a\u8f09\u7684\u65b9\u5f0f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Single-thread Upload \uff08\u55ae\u57f7\u884c\u7dd2\u4e0a\u8f09\uff09<\/h3>\n\n\n\n<p>\u6211\u5011\u5c31\u5148\u7531\u6b63\u5e38\u7684\u4e0a\u8f09\u60c5\u6cc1\u8aaa\u8d77\u5427\uff0c\u6211\u5728\u9019\u88e1\u8aaa\u7684\u5c31\u662f\u4e00\u822c\u7684 HTML5 Form \u7684\u6a94\u6848\u4e0a\u8f09\u3002\u6bcf\u6b21\u4e00\u500b\u6a94\u6848\uff0c\u5f88\u7c21\u55ae\u5427\uff1f\u53ef\u662f\u9019\u901f\u5ea6\u5be6\u5728\u592a\u6162\u4e86\uff0c\u4f8b\u5982 Google Drive \u4e4b\u985e\u7684\u5f88\u4e45\u4e4b\u524d\u5c31\u5df2\u7d93\u7528\u4e86\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09\u4e86\uff0c\u6240\u4ee5\u8981\u4e00\u500b\u4e00\u500b\u6a94\u6848\u4e0a\u8f09\u7684\u8a71\uff0c\u901f\u5ea6\u662f\u7121\u6cd5\u63a5\u53d7\u7684\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> Multi-thread Upload (\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09)<\/h3>\n\n\n\n<p>\u5c31\u662f\u5982\u6b64\uff0c\u6211\u5728\u9019\u6587\u7ae0\u88e1\u8aaa\u7684\u4e3b\u8981\u662f\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09\u6a21\u5f0f\u3002\u7c21\u55ae\u4f86\u8aaa Multi-thread Upload \u5c31\u662f\u7531 Browser \u5c0d\u4f3a\u670d\u5668\u7684\u4e0a\u8f09\u63a5\u9ede\u6253\u958b\u591a\u500b request\uff0c\u4e26\u540c\u6642\u5411\u63a5\u9ede\u4e0a\u8f09\u8cc7\u6599\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u90a3 Multi-thread Upload \u53c8\u6709\u751a\u9ebc\u554f\u984c\uff1f<\/h2>\n\n\n\n<p>Multi-thread Upload \u96d6\u7136\u80fd\u5920\u7e2e\u77ed\u4f7f\u7528\u8005\u4e0a\u8f09\u6a94\u6848\u7684\u6642\u9593\uff0c\u80fd\u5920\u76e1\u7528 bandwidth\uff0c\u4f46\u662f\u4f3a\u670d\u5668\u4e5f\u8981\u8655\u7406\u77ed\u6642\u9593\u5167\u540c\u6642\u4e0a\u8f09\u7684\u6a94\u6848\uff0c\u5c0e\u81f4\u7cfb\u7d71\u7684\u958b\u767c\u6709\u9ede\u8003\u529f\u592b\uff0c\u6709\u6642\u5019\u751a\u81f3\u8981\u8003\u616e <a href=\"https:\/\/en.wikipedia.org\/wiki\/Race_condition\">Race Condition<\/a> \u554f\u984c\u3002<\/p>\n\n\n\n<p>\u5728\u4ee5\u524d\u7d14 PHP 5 + Apache 2\u7684\u5e74\u4ee3\uff0c\u4f3a\u670d\u5668\u6bcf\u6b21\u53ea\u80fd\u5920\u540c\u6642\u8655\u7406\u4e00\u500b\u8981\u6c42\uff0c\u56e0\u6b64\u5f88\u5c11\u6703\u51fa\u73fe\u8cc7\u6e90\u4e0d\u8db3\u7684\u9019\u500b\u554f\u984c\u3002\u4f46\u662f\u5230\u73fe\u5728\uff0c\u5f88\u591a\u4eba\u90fd\u8f49\u7528\u66f4\u5148\u9032\u7684\u8a9e\u8a00\u4f86\u958b\u767c\u7db2\u9801\u4f3a\u670d\u5668\u4e86\uff0c\u81ea\u7136\u4e5f\u9700\u8981\u8655\u7406\u5230\u8cc7\u6e90\u5206\u914d\u7684\u554f\u984c\u3002\u4ee5\u4e0b\u6211\u5c31\u4ee5 Go \u4f5c\u70ba\u300c\u601d\u8003\u8a9e\u8a00\u300d\u4f86\u5206\u6790\u4e00\u4e0b\u5427\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5148 Buffer \uff08\u7de9\u5b58\uff09\u5230 RAM \u4e0d\u5c31\u884c\u4e86\u55ce\uff1f<\/h3>\n\n\n\n<p>Buffering \u662f\u4e00\u500b\u5e38\u7528\u4f86\u8655\u7406 IO \u7684\u65b9\u6cd5\uff0c\u7531\u65bc\u4e0b\u8f09\u7684\u6642\u5019\u5c31\u662f\u7531\u4f5c\u696d\u7cfb\u7d71\u8ddf\u786c\u789f\u7684\u7de9\u5b58\u6a5f\u5236\u8655\u7406\uff0c\u6240\u4ee5\u6211\u5011\u53ea\u9700\u8981\u8655\u7406\u4e0a\u8f09\u5c31\u597d\u3002\u6211\u5011\u5c31\u5148\u5047\u8a2d\u7cfb\u7d71\u63a1\u7528\u4ee5\u4e0b\u7684\u4e00\u500b\u908f\u8f2f\u8655\u7406\u4f7f\u7528\u8005\u4e0a\u8f09\u7684\u6a94\u6848<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u5efa\u7acb\u4e00\u500b 25MB \u7684 Buffer\nr.ParseMultipartForm(25 &lt;&lt; 20) \n\n\/\/\u5f9e POST \u4e2d\u53d6\u5f97 file\nfile, handler, _ := r.FormFile(\"file\")\n\n\/\/\u5efa\u7acb\u5132\u5b58\u7684\u6a94\u6848\ndest, _ := os.Create(handler.Filename)\n\n\/\/\u5f9e File \u628a\u5167\u5bb9\u8907\u5236\u5230 dest\nif _, err := io.Copy(dest, file); err != nil {\n\tpanic(err)\n}\n\n\/\/\u95dc\u9589\u6253\u958b\u4e86\u7684 file descriptor (\u901a\u7a31 fd\uff0c\u5373\u6a94\u6848\u63cf\u8ff0\u7b26)\nfile.Close()\ndest.Close()<\/code><\/pre>\n\n\n\n<p>\u4f60\u90a3\u770b\u5230\uff0c\u5728\u6a94\u6848\u4e0a\u8f09\u5230\u4f3a\u670d\u5668\u7684\u4e00\u523b\uff0c\u4f3a\u670d\u5668\u5df2\u7d93\u5206\u914d\u4e86 25MB \u7684\u8a18\u61b6\u9ad4\u7d66\u9019\u500b request \u4e86\u3002\u800c\u9019\u500b request \u6703\u628a\u9019\u7a7a\u9593\u5361\u4f4f\uff0c\u76f4\u5230 file.Close() \u4e4b\u524d\u90fd\u4e0d\u6703\u628a\u8a18\u61b6\u9ad4\u9084\u7d66\u4f5c\u696d\u7cfb\u7d71\uff0c\u56e0\u6b64\u6bcf\u4e0a\u8f09\u4e00\u500b\u6a94\u6848 = \u5403\u6389\u4e00\u500b\u4e0d\u5c11\u65bc\u6a94\u6848\u5927\u5c0f\u7684\u8a18\u61b6\u7a7a\u9593\u3002\u800c\u5728 file.Close() \u4e4b\u524d\u9084\u6709\u4e00\u500b blocking \u7684 io.Copy() \u628a\u4e0a\u8f09\u7684\u8cc7\u6599\u8907\u5236\u5230\u6700\u7d42\u7684\u5132\u5b58\u4f4d\u7f6e\uff08\u4f8b\u5982\u786c\u789f\uff09\uff0c\u6240\u4ee5\u6700\u5f8c\u5c31\u662f\u8981\u7b49\u786c\u789f\u5beb\u5b8c\u624d\u80fd\u628a\u8a18\u61b6\u9ad4\u91cb\u653e\u51fa\u4f86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"165\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-27-42-1024x165.png\" alt=\"\" class=\"wp-image-567\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-27-42-1024x165.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-27-42-300x48.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-27-42-768x124.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-27-42-1200x194.png 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-27-42.png 1319w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u7c21\u55ae\u4f86\u8aaa\u5c31\u662f\u9019\u6a23<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6240\u4ee5\uff0c\u9019\u6771\u897f\u5f88\u6162\uff01<\/h2>\n\n\n\n<p>\u70ba\u4e86\u89e3\u6c7a\u6162\u7684\u554f\u984c\uff0c\u6211\u5011\u4f86\u505a\u591a\u57f7\u884c\u7dd2\u7684\u6a94\u6848\u642c\u904b\u5427\uff01<br>Go-routine \u662f\u4e00\u500b\u5f88\u795e\u5947\u7684\u6771\u897f\uff0c\u4e0d\u9700\u8981\u5e7e\u884c\u6211\u5011\u5c31\u53ef\u4ee5\u5beb\u51fa\u652f\u63f4 Multi-threading \u7684\u7a0b\u5f0f\uff0c\u53ea\u8981\u6211\u5011\u628a io.Copy \u7684\u90e8\u5206\u6539\u6210\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\/\/\u5efa\u7acb\u5132\u5b58\u7684\u6a94\u6848\ndest, _ := os.Create(handler.Filename)\n\n\/\/\u628a\u8907\u5236\u7684\u90e8\u5206\u653e\u5230 Go routine\uff0c\u8b93\u5ba2\u6236\u7aef\u7e7c\u7e8c\u4e0a\u8f09\u4e0b\u4e00\u500b\u6a94\u6848\ngo func(dest *os.File, file *os.File)\n    \/\/\u5f9e File \u628a\u5167\u5bb9\u8907\u5236\u5230 dest\n    if _, err := io.Copy(dest, file); err != nil {\n\tpanic(err)\n    }\n    \/\/\u95dc\u9589\u6253\u958b\u4e86\u7684 file descriptor (\u901a\u7a31 fd\uff0c\u5373\u6a94\u6848\u63cf\u8ff0\u7b26)\n    file.Close()\n    dest.Close()\n}(dest, file)\n\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"218\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-28-45-1024x218.png\" alt=\"\" class=\"wp-image-568\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-28-45-1024x218.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-28-45-300x64.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-28-45-768x163.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-28-45.png 1172w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u65b0\u7684\u65b9\u6cd5\u770b\u8d77\u4f86\u50cf\u9019\u6a23\uff0c\u6bd4\u8d77\u4e0a\u9762\u7684\u65b9\u6cd5\u5feb\u591a\u4e86<\/figcaption><\/figure>\n\n\n\n<p>\u5c0d\uff0c\u9019\u6a23\u6a94\u6848\u4e0a\u8f09\u7684\u901f\u5ea6\u5feb\u591a\u4e86\uff0c\u800c\u4e14\u9084\u80fd\u540c\u6642\u767c\u8d77\u5e7e\u500b\u4e0a\u8f09\u7684\u8981\u6c42\uff0c\u4f46\u662f\u9019\u9084\u5728\u6a94\u6848\u6bd4\u8f03\u5c0f\uff0cRAM \u88dd\u5f97\u4e0b\u7684\u60c5\u6cc1\u4e0b\u90fd\u9084\u597d\uff0c\u4f46\u662f\u6a94\u6848\u5927\u7684\u6642\u5019\u8a72\u600e\u9ebc\u8fa6\uff1f  <\/p>\n\n\n\n<p>\u4f8b\u5982\u8aaa\uff0c\u5728\u53ea\u6709 2GB RAM \u7684 Raspberry Pi \u4e0a\u8f09\u4e00\u500b 4GB \u7684\u6a94\u6848\uff0c\u7528\u4e0a\u9762\u7684\u90a3\u500b\u65b9\u6cd5\u4f86\u8655\u7406\u7684\u8a71\uff0c\u901a\u5e38\u53ea\u6703\u6709\u9019\u500b\u7d50\u679c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>RAM \u88ab\u4e0a\u8f09\u7684\u8cc7\u6599\u585e\u6eff\u4e86<\/li><li>\u4e0a\u50b3\u7684\u8cc7\u6599\u88ab\u585e\u9032 page\uff0c\u7136\u5f8c\u4e0a\u8f09\u5f97\u8d85\u6162\uff08\u5c31\u662f\u4f60\u786c\u789f\u7684\u5beb\u5165\u901f\u5ea6\uff09<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u6240\u4ee5\uff0c\u89e3\u6c7a\u5b8c\u901f\u5ea6\u554f\u984c\u4e4b\u5f8c\u5c31\u662f\u5132\u5b58\u7a7a\u9593\u4e0d\u8db3\u7684\u554f\u984c\u554a\uff01\uff1f<\/h2>\n\n\n\n<p>\u5176\u5be6\u9019\u500b\u73fe\u50cf\u6709\u4e00\u500b\u5b78\u540d\uff0c\u53eb\uff1a<a href=\"https:\/\/en.wikipedia.org\/wiki\/Space%E2%80%93time_tradeoff\">Space\u2013time tradeoff<\/a><br>\u7c21\u55ae\u4f86\u8aaa\uff0c\u5c0d\u65bc\u4efb\u4f55\u4e00\u500b\u6f14\u7b97\u6cd5\u6216\u662f\u7a0b\u5f0f\u908f\u8f2f\uff0c\u4f60\u7e3d\u662f\u53ef\u4ee5\u7528\u5132\u5b58\u7a7a\u9593\u4f86\u63db\u53d6\u904b\u7b97\u6642\u9593\uff0c\u53cd\u4e4b\u4ea6\u8a00\u3002<\/p>\n\n\n\n<p>\u8209\u500b\u4f8b\u5b50\uff1a\u4f8b\u5982\u8aaa\u8457\u540d\u7684\u300c<a href=\"https:\/\/en.wikipedia.org\/wiki\/Brute-force_attack\">Brute Force \uff08\u66b4\u529b\u7834\u89e3\uff09<\/a>\u300d\u6f14\u7b97\u6cd5\uff0c\u6240\u9700\u7684\u7a7a\u9593\u5f88\u5c11\uff0c\u4f46\u662f\u9700\u8981\u5f88\u9577\u6642\u9593\u53bb\u904b\u7b97\u8981\u5617\u8a66\u7684\u8b8a\u6578\uff1b\u8207\u4e4b\u76f8\u53cd\u7684\u5c31\u662f\u300c<a href=\"https:\/\/en.wikipedia.org\/wiki\/Rainbow_table\">Rainbow Table \uff08\u5f69\u8679\u8868\uff09<\/a>\u300d\uff0c\u63a1\u7528\u9810\u5148\u904b\u7b97\u7684\u7d50\u679c\u4f86\u6e2c\u8a66\u8b8a\u6578\uff0c\u4f46\u662f\u56e0\u70ba Rainbow Table \u672c\u8eab\u5c31\u662f\u4e00\u500b\u8d85\u9577\u7684\u5217\u8868\uff0c\u6240\u4ee5\u9700\u8981\u300c\u5927\u91cf \u300d\u7684\u5132\u5b58\u7a7a\u9593\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u70ba\u751a\u9ebc\u5132\u5b58\u7a7a\u9593\u6703\u662f\u4e00\u500b\u554f\u984c\uff1f<\/h3>\n\n\n\n<p>\u5728\u4e00\u4e9b RAM \u66f4\u5c11\u7684\u958b\u767c\u677f\u4f8b\u5982 Orange Pi Zero \u6216\u662f Nano Pi \u7cfb\u5217\uff0cMulti-thread Upload \u5c0e\u81f4 RAM \u4e0d\u8db3\u7684\u554f\u984c\u5c31\u66f4\u591a\u660e\u986f\u4e86\u3002\u6b64\u65b9\u5f0f\u4e0a\u8f09\u6a94\u6848\u5f88\u5bb9\u6613\u6703\u5c0e\u653f RAM \u7528\u91cf\u4e0d\u7a69\u5b9a\uff0c\u751a\u81f3\u6709\u6642\u5019\u6703\u8d85\u51fa\u9650\u5236\u7684\u4f7f\u7528\u91cf\uff0c\u518d\u52a0\u4e0a\u4f7f\u7528 SD \u5361\u4f5c\u70ba\u5132\u5b58\u5a92\u4ecb\uff0c\u7576\u6a94\u6848\u771f\u7684\u88ab\u5beb\u5165 page \u7684\u6642\u5019\u5c31\u6703\u6162\u5f97\u8b93\u4f60\u60f3\u76f4\u63a5\u62d4\u6389\u96fb\u6e90\u628a\u958b\u767c\u677f\u6389\u51fa\u7a97\u5916\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"382\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20-1024x382.png\" alt=\"\" class=\"wp-image-564\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20-1024x382.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20-300x112.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20-768x286.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20-1536x573.png 1536w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20-1200x447.png 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-20.png 1628w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e2d\u5eb8\u4e4b\u9053\uff1a\u6709\u9650\u5236\u7684\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u6709\u7528 Google Drive \u7684\u7fd2\u6163\uff0c\u4f60\u61c9\u8a72\u4e5f\u6703\u767c\u73fe Google Drive \u53ea\u6703\u8b93\u4f60\u6bcf\u500b Tab \u540c\u6642\u4e0a\u8f09\u5169\u500b\u6a94\u6848\u3002\u9019\u539f\u4f86\u662f\u6709\u539f\u56e0\u7684\u554a\uff01\u5c31\u662f\u70ba\u4e86\u7d66\u4f3a\u670d\u5668\u7de9\u885d\u7684\u7a7a\u9593\uff0c\u53bb\u8655\u7406\u8cc7\u6e90\u5206\u914d\u7684\u554f\u984c\uff0c\u628a\u8a18\u61b6\u9ad4\u6e05\u7a7a\u4e86\u518d\u63a5\u4f60\u4e0b\u4e00\u6279\u6a94\u6848\u3002\u5728\u9019\u60c5\u6cc1\u4e0b\u7121\u8ad6\u4f60\u600e\u6a23\u4e0a\u8f09\u6a94\u6848\uff0c\u6bcf\u500b\u5ba2\u6236\u6240\u4f54\u7528\u7684\u4f3a\u670d\u5668\u8cc7\u6e90\u4e5f\u662f\u7a69\u5b9a\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00-1024x397.png\" alt=\"\" class=\"wp-image-565\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00-1024x397.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00-300x116.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00-768x298.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00-1536x596.png 1536w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00-1200x465.png 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/11\/2020-11-07_19-06-00.png 1612w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u81f3\u65bc\u600e\u6a23\u8655\u7406\u6bd4 RAM \u9084\u8981\u5927\u7684\u6a94\u6848\u7684\u65b9\u6cd5\u561b\uff1f<\/p>\n\n\n\n<p>\u9019\u500b\u4e4b\u5f8c\u6703\u53e6\u5916\u5beb\u4e00\u7bc7\u6587\u7ae0\u8b1b\u89e3\u600e\u6a23\u5728 Linux \u4e0b\u589e\u6307\u5b9a page \u4f7f\u7528\u7684\u786c\u789f \/ SSD\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Raspberry Pi \u4e0a\u9762\u57f7\u884c\u985e\u4f3c arozos \u4e4b\u985e\u7684\u5927\u578b\u7cfb\u7d71\u4e0d\u514d\u6703\u51fa\u73fe\u4e00\u500b\u554f\u984c\uff0c\u5c31\u662f\u7576\u8981\u8655\u7406\u5927\u91cf IO \u7684\u6642\u5019\u7e3d\u6703\u5361\u4f4f\uff08\u7562\u7adf\u6700\u5feb\u7684\u5132\u5b58\u5668\uff08 RAM\u3001\u8a18\u61b6\u9ad4\uff09 \u53ea\u6709\u90a3 2 &#8211; 4GB\uff0c\u96d6\u7136\u8aaa\u73fe\u5728\u5df2\u7d93\u51fa\u5230 8GB \u4e86\uff0c\u4f46\u662f\u90a3\u500b\u50f9\u683c\u6211\u5012\u4e0d\u5982\u8cb7\u53f0\u4e8c\u624b\u7684 ThinkCentre M73\uff1f\uff09\uff0c\u6240\u4ee5\u8981\u5982\u4f55\u5728\u6709\u9650 RAM \u7684\u60c5\u6cc1\u4e0b\u8b93\u6a94\u6848\u4e0a\u4e0b\u8f09\u901f\u5ea6\u6700\u4f73\u5316\u662f\u5176\u4e2d\u4e00\u500b\u5f88\u6709\u8da3\u7684\u7814\u7a76\u65b9\u5411\u3002 \u4e0a\u8f09\u7684\u65b9\u5f0f Single-thread Upload \uff08\u55ae\u57f7\u884c\u7dd2\u4e0a\u8f09\uff09 \u6211\u5011\u5c31\u5148\u7531\u6b63\u5e38\u7684\u4e0a\u8f09\u60c5\u6cc1\u8aaa\u8d77\u5427\uff0c\u6211\u5728\u9019\u88e1\u8aaa\u7684\u5c31\u662f\u4e00\u822c\u7684 HTML5 Form \u7684\u6a94\u6848\u4e0a\u8f09\u3002\u6bcf\u6b21\u4e00\u500b\u6a94\u6848\uff0c\u5f88\u7c21\u55ae\u5427\uff1f\u53ef\u662f\u9019\u901f\u5ea6\u5be6\u5728\u592a\u6162\u4e86\uff0c\u4f8b\u5982 Google Drive \u4e4b\u985e\u7684\u5f88\u4e45\u4e4b\u524d\u5c31\u5df2\u7d93\u7528\u4e86\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09\u4e86\uff0c\u6240\u4ee5\u8981\u4e00\u500b\u4e00\u500b\u6a94\u6848\u4e0a\u8f09\u7684\u8a71\uff0c\u901f\u5ea6\u662f\u7121\u6cd5\u63a5\u53d7\u7684\u3002 Multi-thread Upload (\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09) \u5c31\u662f\u5982\u6b64\uff0c\u6211\u5728\u9019\u6587\u7ae0\u88e1\u8aaa\u7684\u4e3b\u8981\u662f\u591a\u57f7\u884c\u7dd2\u4e0a\u8f09\u6a21\u5f0f\u3002\u7c21\u55ae\u4f86\u8aaa Multi-thread Upload \u5c31\u662f\u7531 Browser \u5c0d\u4f3a\u670d\u5668\u7684\u4e0a\u8f09\u63a5\u9ede\u6253\u958b\u591a\u500b request\uff0c\u4e26\u540c\u6642\u5411\u63a5\u9ede\u4e0a\u8f09\u8cc7\u6599\u7684\u65b9\u5f0f\u3002 \u90a3 Multi-thread Upload \u53c8\u6709\u751a\u9ebc\u554f\u984c\uff1f Multi-thread Upload \u96d6\u7136\u80fd\u5920\u7e2e\u77ed\u4f7f\u7528\u8005\u4e0a\u8f09\u6a94\u6848\u7684\u6642\u9593\uff0c\u80fd\u5920\u76e1\u7528 bandwidth\uff0c\u4f46\u662f\u4f3a\u670d\u5668\u4e5f\u8981\u8655\u7406\u77ed\u6642\u9593\u5167\u540c\u6642\u4e0a\u8f09\u7684\u6a94\u6848\uff0c\u5c0e\u81f4\u7cfb\u7d71\u7684\u958b\u767c\u6709\u9ede\u8003\u529f\u592b\uff0c\u6709\u6642\u5019\u751a\u81f3\u8981\u8003\u616e Race Condition \u554f\u984c\u3002 \u5728\u4ee5\u524d\u7d14 PHP 5 + [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,5,3],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-aroz-online-system","category-development-logs","category-instructions-and-information"],"_links":{"self":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":5,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/562\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}