{"id":117,"date":"2021-10-08T18:28:43","date_gmt":"2021-10-09T02:28:43","guid":{"rendered":"https:\/\/www.qiuqiuren.club\/?p=117"},"modified":"2024-08-02T21:08:26","modified_gmt":"2024-08-03T05:08:26","slug":"%e8%a7%a3%e9%99%a4vgpu%e7%9a%84%e9%bb%98%e8%ae%a4%e5%b8%a7%e7%8e%87%e9%99%90%e5%88%b6","status":"publish","type":"post","link":"https:\/\/www.qiuqiuren.club\/?p=117","title":{"rendered":"\u89e3\u9664vGPU\u7684\u9ed8\u8ba4\u5e27\u7387\u9650\u5236"},"content":{"rendered":"<h2>\u80cc\u666f<\/h2>\n<p>\u7b80\u5355\u8bf4\u8981\u8981\u70b9\uff0c\u8be6\u7ec6\u7684\u5728Nvidia\u624b\u518c\u4e0a\u3002<\/p>\n<p>Nvidia\u5bf9\u4e8evGPU\u6709\u51e0\u4e2a\u7c7b\u578b\u7684\u8c03\u5ea6\u5668\uff08scheduler\uff09: euqal share \/ fixed share \/ best effort<\/p>\n<p>\u51e0\u4e2a\u8c03\u5ea6\u5668\u7684\u542b\u4e49\u4ece\u5b57\u9762\u5c31\u80fd\u770b\u51fa\u6765\uff0c\u95ee\u9898\u5728\u4e8ebest effort\u8c03\u5ea6\u5668\u4f1a\u503e\u5411\u8ba9vGPU\u5360\u7528\u66f4\u591a\u7684\u7269\u7406GPU\u4efd\u989d\uff0c\u8fd9\u5bfc\u81f4\u67d0\u4e2a\u8fd0\u884c\u7740\u9ad8\u6027\u80fd\u635f\u8017\u7a0b\u5e8f\u7684vGPU\u4f1a\u53bb\u4fb5\u5360\u8d1f\u8f7d\u4e0d\u9ad8\u7684vGPU\u3002 <\/p>\n<p>\u4f8b\u5982\uff0c\u5373\u4f7f\u6211\u628a\u7269\u7406GPU\u5206\u5272\u621010\u4e2avGPU\u3002\u5982\u679c\u5176\u4e2d\u4e00\u4e2avGPU\u8dd1\u663e\u5361\u5371\u673a\uff0c\u5269\u4e0b9\u4e2avGPU\u57fa\u672c\u4e0d\u52a8\uff0c\u90a3\u4e48\u90a3\u4e00\u4e2avGPU\u4f1a\u51e0\u4e4e\u5360\u7528\u6389\u6574\u4e2a\u7269\u7406GPU\u3002<\/p>\n<p>\u8fd9\u4e2a\u7279\u6027\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5e76\u4e0d\u597d\uff0c\u6240\u4ee5NVidia\u5728\u4f7f\u7528Best Effort\u8c03\u5ea6\u5668\u7684\u65f6\u5019\uff0c\u540c\u65f6\u5f15\u5165\u4e86FRL\uff08Frame-rate Limiter\uff09\u3002\u4e5f\u5c31\u662f\u4e2a\u5b57\u9762\u610f\u601d\uff0c\u9650\u5236\u5355\u4e2a\u7a0b\u5e8f\u7684\u5e27\u7387\u3002<\/p>\n<p>\u6839\u636evGPU\u7684\u7c7b\u578b\uff0cFRL\u7684\u6570\u503c\u4e0d\u540c\uff0c\u5982\u4e0b\uff08\u5ffd\u7565\u56fe\u4e2d\u7684\u7ea2\u6846\u6807\u6ce8\uff0c\u8fd9\u4e2a\u56fe\u5f53\u65f6\u662f\u7ed9\u522b\u4eba\u8bf4\u4e8b\u7528\u7684\uff09<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.qiuqiuren.club\/wp-content\/uploads\/2021\/10\/Pasted.png\" alt=\"\" \/><\/p>\n<p>\u8be6\u89c1 <a href=\"https:\/\/docs.nvidia.com\/grid\/5.0\/pdf\/grid-vgpu-user-guide.pdf\">https:\/\/docs.nvidia.com\/grid\/5.0\/pdf\/grid-vgpu-user-guide.pdf<\/a>  &quot;CHANGING VGPU SCHEDULING POLICY&quot;\u8282<\/p>\n<p>\u7406\u8bba\u4e0a\u4e0d\u8981\u52a8\u8fd9\u73a9\u610f\u5c31\u884c\uff0c\u4f46\u662f\u73b0\u5728\u7684\u9700\u6c42\u662f\u89e3\u9664\u5728Best Effort\u6a21\u5f0f\u4e0b\u7684FRL\u3002<\/p>\n<h2>\u64cd\u4f5c<\/h2>\n<p>\u5728\u4e0d\u540c\u7684Hypervisor\u4e0a\u64cd\u4f5c\u4e0d\u4e00\u6837\uff0c\u8fd9\u91cc\u53d6kvm\u7684\u64cd\u4f5c\u65b9\u5f0f<\/p>\n<p><code>echo &quot;frame_rate_limiter=0&quot; &gt; \/sys\/bus\/mdev\/devices\/vgpu-id\/nvidia\/vgpu_params<\/code><\/p>\n<p>\u4f8b\u5982<\/p>\n<p><code>echo &quot;frame_rate_limiter=0&quot; &gt; \/sys\/bus\/mdev\/devices\/aa618089-8b16-4d01-a136-25a0f3c73123\/nvidia\/vgpu_params<\/code><\/p>\n<p>\u8fd9\u4e2avGPU\u5c31\u88ab\u89e3\u9664\u5e27\u7387\u9650\u5236\u4e86\u3002\u7b49\u8fd9\u4e2avGPU\u6240\u5728\u7684\u865a\u62df\u673a\u91cd\u542f\u5c31\u751f\u6548\u3002<\/p>\n<p>\u5b98\u65b9\u6587\u6863, \u641c\u7d22&quot;Single vGPU benchmark scores are lower than pass-through GPU&quot;<\/p>\n<p><a href=\"https:\/\/docs.nvidia.com\/grid\/latest\/grid-vgpu-release-notes-generic-linux-kvm\/index.html#vgpu-software-driver-versions\">https:\/\/docs.nvidia.com\/grid\/latest\/grid-vgpu-release-notes-generic-linux-kvm\/index.html#vgpu-software-driver-versions<\/a><\/p>\n<h2>\u5176\u4ed6<\/h2>\n<p>\u5728PVE\u5e73\u53f0\u4e0a\u9047\u5230\u4e86write failed: operation not permitted \u7684\u95ee\u9898\u3002\u7531\u4e8e\u76ee\u524d\u662f\u7528PVE\u7684web\u63a7\u5236\u53f0\u8fdb\u884c\u7684\u663e\u5361\u5206\u5272\uff0c\u731c\u6d4b\u53ef\u80fd\u8ddf\u8fd9\u4e2a\u6709\u5173\u7cfb\u3002\u4f7f\u7528mdevctl\u81ea\u5df1\u5206\u5272\u663e\u5361\u5e94\u8be5\u6ca1\u8fd9\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u7b80\u5355\u8bf4\u8981\u8981\u70b9\uff0c\u8be6\u7ec6\u7684\u5728Nvidia\u624b\u518c\u4e0a\u3002 Nvidia\u5bf9\u4e8evGPU\u6709\u51e0\u4e2a\u7c7b\u578b\u7684\u8c03\u5ea6\u5668\uff08schedule<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts\/117"}],"collection":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":3,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}