{"id":164962,"date":"2020-09-30T21:45:25","date_gmt":"2020-09-30T13:45:25","guid":{"rendered":"http:\/\/4563.org\/?p=164962"},"modified":"2020-09-30T21:45:25","modified_gmt":"2020-09-30T13:45:25","slug":"%e6%9c%89%e7%94%a8-nextcloud-%e7%9a%84%e5%a4%a7%e4%bd%ac%e6%b2%a1%ef%bc%8c-%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f-io-%e5%b7%a8%e9%ab%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=164962","title":{"rendered":"\u6709\u7528 NextCloud \u7684\u5927\u4f6c\u6ca1\uff0c \u6587\u4ef6\u7cfb\u7edf IO \u5de8\u9ad8"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u7528 NextCloud \u7684\u5927\u4f6c\u6ca1\uff0c \u6587\u4ef6\u7cfb\u7edf IO \u5de8\u9ad8               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Nextclud 19 @ Ubuntu 20.04<\/p>\n<p>\u60c5\u51b5\uff1a<\/p>\n<p>\u6211\u6709\u4e00\u4e2a SMB \u5171\u4eab\uff0c\u7531\u4e8e Nextcloud \u4f7f\u7528\u7684 smbclient \u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u4e0d\u652f\u6301 smb3 \u7684\u6302\u8f7d\uff0c \u5916\u90e8\u5b58\u50a8\u6dfb\u52a0 smb \u6b7b\u6d3b\u6dfb\u52a0\u4e0d\u4e0a\u3002<\/p>\n<p>\u53ea\u80fd\u8d70\u8fc2\u56de\u65b9\u6cd5\uff1a\u672c\u5730\u6302\u8f7d cifs\uff0c\u7136\u540e NextCloud \u91cc\u9762\u6dfb\u52a0\u672c\u5730\u5b58\u50a8\u8bbf\u95ee\u5b83\u3002<\/p>\n<p>\u53e6\u4eba\u7a92\u606f\u7684\u6765\u4e86\uff1a \u6211\u5728\u6d4f\u89c8\u5668\u4e0a\u8bbf\u95ee\u6587\u4ef6\uff08\u89c6\u9891\u6587\u4ef6\uff09\u5728\u7ebf\u64ad\u653e\uff0c\u7136\u540e SMB \u670d\u52a1\u5668\u7684\u78c1\u76d8 IO \u5c31\u88ab\u5403\u6ee1\u4e86\uff0c\u611f\u89c9 NextCloud \u5728\u628a\u6587\u4ef6\u672c\u8eab\u5168\u90e8\u8bfb\u53d6\u4e00\u904d\u90a3\u79cd\u52a8\u4f5c\uff0c\u5de8\u5361\u3002\u5373\u4f7f\u505c\u6b62\u64ad\u653e\u4ecd\u7136\u5360\u7528\u5927\u91cf IO \u5230\u5f88\u4e45\uff0c\u8d44\u6e90\u76d1\u89c6\u91cc\u9762\u53ef\u4ee5\u770b\u5230\u88ab\u70b9\u51fb\u7684\u6587\u4ef6\u548c\u540c\u6587\u4ef6\u5939\u7684\u5176\u5b83\u6587\u4ef6\u88ab\u8bfb\u53d6\u4e2d\u3002<\/p>\n<p>\u6000\u7591\u662f SMB \u7684\u95ee\u9898\uff0c\u62f7\u4e86\u51e0\u4e2a\u5927\u6587\u4ef6\u5230\u672c\u5730\u78c1\u76d8\uff0c\u7ed3\u679c\u53d1\u73b0 NextCloud \u7684\u884c\u4e3a\u4ecd\u7136\u4e00\u81f4\uff0cweb \u4e0a\u70b9\u51fb\u6587\u4ef6\u64ad\u653e\uff0cNextCloud \u540e\u53f0\u5c31\u80fd\u628a\u78c1\u76d8 IO \u5403\u6ee1\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3625363\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hjc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u89c6\u9891\u6682\u505c\u540e\u6d4f\u89c8\u5668\u4ecd\u7136\u5728\u7ee7\u7eed\u7f13\u51b2\u540e\u9762\u7684\u5185\u5bb9\u5427\u3002\u5173\u6389\u6d4f\u89c8\u5668\u5e94\u8be5\u5c31\u597d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625364\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pupboss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.v2ex.com\/t\/699954#reply0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625365\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7f13\u51b2\u901f\u5ea6\u4e0d\u53ef\u80fd\u6709 300MBytes\/s \u5427                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625366\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pupboss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u6ed1\u53d1\u51fa\u53bb\u4e86\uff0c\u73b0\u5728\u4e5f\u4e0d\u80fd\u8d34\u94fe\u63a5\u4e86\uff0c\u6c42\u52a9\u8fc7\u597d\u51e0\u4e2a\u5e16\u5b50\uff0c\u90fd\u6ca1\u5375\u7528\uff0c\u5efa\u8bae\u4e0d\u7528\u5b83\u5b58\u5927\u6587\u4ef6\uff0c\u6ca1\u522b\u7684\u65b9\u6848                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625367\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pupboss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/nextcloud\/server\/issues\/22334<\/p>\n<p>https:\/\/github.com\/nextcloud\/server\/issues\/22276                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625368\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pupboss \u770b\u6765\u662f bug \u4e86\uff1f\u5ba2\u6237\u7aef\u5b9e\u9645\u6ca1\u8bf7\u6c42\u7684\u5185\u5bb9\u5b83\u4e5f\u53bb\u8bfb\u4e00\u904d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625369\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pupboss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Osk \u4ed6\u4eec\u5185\u90e8\u5173\u4e8e\u6587\u4ef6\u5904\u7406\u7684\u90e8\u5206\uff0c\u9700\u8981\u5728\u6587\u4ef6\u8bfb\u53d6\u7ed3\u675f\u505a\u4e00\u4e2a\u64cd\u4f5c\uff0c\u6240\u4ee5\u5728\u73b0\u6709\u7684\u6846\u67b6\u4e0b\uff0c\u57fa\u672c\u4e0a\u505a\u4e0d\u5230\u6682\u505c\u6587\u4ef6\u8bfb\u53d6\u4e86\uff0c\u6211\u7684\u89e3\u51b3\u529e\u6cd5\u662f\u5927\u6587\u4ef6\u4e00\u822c\u4e5f\u5c31\u662f\u4e00\u4e9b\u89c6\u9891\uff0c\u7528 emby \u65b9\u6848\u66f4\u597d\u4e00\u4e9b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625370\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pupboss \u6211\u9664\u4e86\u89c6\u9891\u8fd8\u6709\u5176\u5b83\u6587\u4ef6\u4e5f\u9700\u8981\u64cd\u4f5c\uff0c\u770b\u6765\u53ea\u80fd\u653e\u5f03 nextcloud \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625371\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vneix <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u628a\u7565\u7f29\u56fe\u529f\u80fd\u5b8c\u5168\u5173\u95ed\u540e\uff0c\u7528\u8d77\u6765\u5c31\u5f88\u6d41\u7545\u4e86\uff0c\u4e0d\u6e05\u695a\u4f60\u7684\u95ee\u9898\u662f\u5426\u53ef\u4ee5\u8fd9\u4e48\u89e3\u51b3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625372\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : parametrix <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f3c\u4e4e\u662f\u4e2a bug \u3002\u53ef\u4ee5\u8003\u8651\u6362\u5230 Owncloud\uff0c\u548c nextcloud \u975e\u5e38\u7c7b\u4f3c\uff0c\u4e2a\u4eba\u4f53\u9a8c\u8981\u7a33\u5065\u5f97\u591a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625373\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hjc4869 @pupboss @Vneix @parametrix \u786e\u8ba4\u8fd9\u662f\u4e00\u4e2a &#8220;feature&#8221;\uff1agithub.com\/nextcloud\/server\/pull\/4491\/files<\/p>\n<p>\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u6211\u6ca1\u914d\u7f6e\u5bf9\uff0c\u5e26\u6765\u7684\u4f53\u9a8c\u53ca\u5176\u7cdf\u7cd5\uff1a\u4e00\u65e6\u670d\u52a1\u7aef\u5f00\u59cb\u8bfb\u53d6\u4e00\u4e2a\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5ba2\u6237\u7aef\u8fd9\u8fb9\u662f\u5426\u53d6\u6d88\uff0c\u670d\u52a1\u5668\u90a3\u8fb9\u90fd\u8981\u628a\u5b83\u8bfb\u5b8c\u3002<br \/>\u6bd4\u5982\uff1a\u70b9\u51fb\u4e00\u4e2a\u8d85\u5927\u6587\u4ef6\u4e0b\u8f7d\uff0c\u7136\u540e\u70b9\u51fb\u53d6\u6d88\uff0c\u63a5\u4e0b\u6765\u7684\u51e0\u5206\u949f\u90fd\u522b\u60f3\u7528\u4e86\uff0c\u7b49\u670d\u52a1\u7aef\u5360\u7740 io \u628a\u6587\u4ef6\u8bfb\u5b8c\u4e86\u518d\u8bf4\u3002\u3002\u3002\u3002<\/p>\n<p>\u641c\u7d22\u4ee3\u7801\u4e2d `ignore_user_abort(true)`\uff0c\u6539\u6210 `ignore_user_abort(false)`. \u6d4b\u8bd5\u4e86\u4e00\u4e0b\u89c6\u9891\u5728\u7ebf\u9884\u89c8\uff0c\u62d6\u8fdb\u5ea6\u6761\u6d41\u7545\u591a\u4e86\uff0c\u540e\u53f0\u770b\u770b io \u4e5f\u6b63\u5e38\u4e86\uff0c\u4e0d\u50cf\u4e4b\u524d\u52a8\u4e0d\u52a8 100%\u8bfb\u6587\u4ef6\u3002<br \/>\u4f46\u662f\u4e0d\u61c2 php \u4e0d\u77e5\u9053 nextcloud\/owncloud \u5b98\u65b9\u52a0\u5165\u8fd9\u4e2a\u8fd9\u4e2a\u7684\u4f5c\u7528\uff0c\u6015\u4e71\u6539\u4ee3\u7801\u70b8\u670d\u52a1\u5668\u3002<\/p>\n<p>\u7ec8\u4e8e\u50cf\u4e2a\u6b63\u5e38\u7f51\u76d8\u8be5\u5e72\u7684\u52a8\u4f5c\u4e86\uff0c\u6709\u610f\u601d\u7684\u662f\uff0c\u6709\u4eba\u63d0\u8fc7 issue\uff0c\u88ab\u5173\u4e86\u3002\u3002\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625374\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ignore_user_abort(false) \u597d\u50cf\u786e\u5b9e\u4f1a\u70b8\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3625375\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pupboss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u7684\uff0c\u4f1a\u70b8\uff0c\u6709\u4e00\u4e2a\u5185\u90e8\u5f00\u53d1\u4eba\u5458\u5728\u6211 GitHub issue \u4e0b\u7ed9\u8fc7\u8fd9\u4e2a\u65b9\u6848\uff0c\u8fd9\u884c\u4ee3\u7801\u4e07\u4e07\u4e0d\u80fd\u6ce8\u91ca\u6389\uff0c\u8001\u54e5\u4f60\u8981\u662f\u61c2 php \u7684\u8bdd\uff0c\u5e2e\u5fd9\u770b\u770b require_once $file; \u8fd9\u884c\u4ee3\u7801\uff0c\u8be6\u60c5\u89c1\u8fd9\u91cc\uff1a https:\/\/github.com\/nextcloud\/server\/issues\/8161                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u7528 NextCloud \u7684\u5927\u4f6c\u6ca1&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/164962"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=164962"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/164962\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=164962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=164962"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=164962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}