{"id":43590,"date":"2025-06-13T07:46:01","date_gmt":"2025-06-12T23:46:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/43590.html"},"modified":"2025-06-13T07:46:01","modified_gmt":"2025-06-12T23:46:01","slug":"ray%e6%a1%86%e6%9e%b6%e6%a0%b8%e5%bf%83%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90%ef%bc%9a%e4%bb%8eactor%e6%a8%a1%e5%9e%8b%e5%88%b0%e5%88%86%e5%b8%83%e5%bc%8f%e5%8f%82%e6%95%b0%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/43590.html","title":{"rendered":"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6"},"content":{"rendered":"<h4>\u4e00\u3001Ray\u6846\u67b6&#xff1a;\u5206\u5e03\u5f0fAI\u8ba1\u7b97\u7684\u9769\u547d\u6027\u57fa\u77f3<\/h4>\n<p>\u968f\u7740\u5927\u6a21\u578b\u53c2\u6570\u91cf\u7a81\u7834\u4e07\u4ebf\u7ea7&#xff0c;\u4f20\u7edf\u5206\u5e03\u5f0f\u6846\u67b6\u9762\u4e34\u8d44\u6e90\u50f5\u5316\u3001\u901a\u4fe1\u5f00\u9500\u5927\u3001\u5f02\u6784\u652f\u6301\u5f31\u4e09\u5927\u75db\u70b9\u3002Ray\u4f5c\u4e3a\u4f2f\u514b\u5229RISELab\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u8ba1\u7b97\u6846\u67b6&#xff0c;\u901a\u8fc7Actor\u6a21\u578b\u62bd\u8c61\u4e0e\u5168\u5c40\u8c03\u5ea6\u7cfb\u7edf&#xff0c;\u5b9e\u73b0\u4ece\u5355\u673a\u5230\u5343\u5361\u96c6\u7fa4\u7684\u65e0\u7f1d\u6269\u5c55&#xff0c;\u6210\u4e3a\u8054\u90a6\u5b66\u4e60\u7684\u7406\u60f3\u57fa\u7840\u8bbe\u65bd\u3002\u5176\u6838\u5fc3\u7a81\u7834\u5728\u4e8e&#xff1a;<\/p>\n<li>\n<p>\u7edf\u4e00\u8ba1\u7b97\u8303\u5f0f&#xff1a;Tasks&#xff08;\u65e0\u72b6\u6001\u4efb\u52a1&#xff09;\u4e0eActors&#xff08;\u6709\u72b6\u6001\u670d\u52a1&#xff09;\u7edf\u4e00\u8c03\u5ea6&#xff0c;\u652f\u6301\u8bad\u7ec3\/\u63a8\u7406\u6df7\u5408\u8d1f\u8f7d<\/p>\n<\/li>\n<li>\n<p>\u96f6\u62f7\u8d1d\u901a\u4fe1&#xff1a;\u57fa\u4e8eApache Arrow\u7684\u5171\u4eab\u5185\u5b58\u673a\u5236&#xff0c;\u8282\u70b9\u95f4\u6570\u636e\u4f20\u8f93\u5ef6\u8fdf\u964d\u4f4e40%<\/p>\n<\/li>\n<li>\n<p>\u52a8\u6001\u8d44\u6e90\u89c6\u56fe&#xff1a;GCS&#xff08;Global Control Store&#xff09;\u5b9e\u65f6\u76d1\u63a7\u96c6\u7fa4\u72b6\u6001&#xff0c;\u5b9e\u73b0\u4efb\u52a1\u7ea7\u7ec6\u7c92\u5ea6\u8c03\u5ea6<\/p>\n<\/li>\n<p>\u6027\u80fd\u5bf9\u6bd4&#xff08;64\u5361A100\u96c6\u7fa4&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u6846\u67b6\u541e\u5410\u91cf(img\/s)\u8d44\u6e90\u5229\u7528\u7387\u6269\u5c55\u6548\u7387<\/tr>\n<tbody>\n<tr>\n<td>PyTorch DDP<\/td>\n<td>12,800<\/td>\n<td>72%<\/td>\n<td>78%<\/td>\n<\/tr>\n<tr>\n<td>Horovod<\/td>\n<td>14,200<\/td>\n<td>78%<\/td>\n<td>83%<\/td>\n<\/tr>\n<tr>\n<td>Ray<\/td>\n<td>16,500<\/td>\n<td>89%<\/td>\n<td>92%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u4e8c\u3001Actor\u6a21\u578b&#xff1a;\u8054\u90a6\u5b66\u4e60\u7684\u6838\u5fc3\u62bd\u8c61\u5355\u5143<\/h4>\n<h5>1. Actor\u4e09\u8981\u7d20\u89e3\u6790<\/h5>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612234600-684b66b823e96.png\" \/><\/p>\n<ul>\n<li>\n<p>Mailbox&#xff1a;FIFO\u6d88\u606f\u961f\u5217&#xff0c;\u63a5\u6536\u8de8\u8282\u70b9\u901a\u4fe1&#xff08;\u5982\u68af\u5ea6\u66f4\u65b0&#xff09;<\/p>\n<\/li>\n<li>\n<p>Behavior&#xff1a;\u6d88\u606f\u5904\u7406\u903b\u8f91&#xff08;\u5982\u805a\u5408\u68af\u5ea6\u3001\u66f4\u65b0\u53c2\u6570&#xff09;<\/p>\n<\/li>\n<li>\n<p>State&#xff1a;\u6301\u4e45\u5316\u72b6\u6001&#xff08;\u5982\u6a21\u578b\u53c2\u6570\u3001\u4f18\u5316\u5668\u72b6\u6001&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h5>2. Ray Actor \u5b9e\u73b0\u8054\u90a6\u5b66\u4e60\u89d2\u8272<\/h5>\n<p>&#064;ray.remote(num_gpus&#061;1)<br \/>\nclass FLClient:<br \/>\n    def __init__(self, client_id):<br \/>\n        self.model &#061; ResNet50()  # \u672c\u5730\u6a21\u578b<br \/>\n        self.dataset &#061; load_local_data(client_id)  # \u79c1\u6709\u6570\u636e  <\/p>\n<p>    def train_epoch(self, global_params):<br \/>\n        self.model.set_weights(global_params)  # \u540c\u6b65\u5168\u5c40\u53c2\u6570<br \/>\n        loss &#061; self.local_train()  # \u672c\u5730\u8bad\u7ec3<br \/>\n        grads &#061; compute_gradients()  # \u8ba1\u7b97\u68af\u5ea6&#xff08;\u975e\u539f\u59cb\u6570\u636e&#xff01;&#xff09;<br \/>\n        return encrypt_gradients(grads)  # \u52a0\u5bc6\u540e\u4f20\u8f93:cite[6]  <\/p>\n<p>&#064;ray.remote(num_gpus&#061;4)<br \/>\nclass FLServer:<br \/>\n    def __init__(self):<br \/>\n        self.global_model &#061; ResNet50()<br \/>\n        self.clients &#061; []  # \u5ba2\u6237\u7aefActor\u5f15\u7528\u5217\u8868  <\/p>\n<p>    def aggregate(self, encrypted_grads):<br \/>\n        decrypted &#061; federated_average(encrypted_grads)  # \u5b89\u5168\u805a\u5408<br \/>\n        self.global_model.apply_gradients(decrypted)   <\/p>\n<hr \/>\n<h4>\u4e09\u3001\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668&#xff1a;\u5f02\u6784\u96c6\u7fa4\u7684\u9ad8\u6548\u534f\u540c<\/h4>\n<h5>1. \u53c2\u6570\u670d\u52a1\u5668\u7684Actor\u5316\u5b9e\u73b0<\/h5>\n<p>&#064;ray.remote<br \/>\nclass ParameterServer:<br \/>\n    def __init__(self, dim):<br \/>\n        self.params &#061; np.zeros(dim)  # \u5168\u5c40\u53c2\u6570  <\/p>\n<p>    def push(self, keys, grads):<br \/>\n        # \u5f02\u6b65\u66f4\u65b0&#xff08;\u5bb9\u5fcd\u5ef6\u8fdf&#xff09;<br \/>\n        for key, grad in zip(keys, grads):<br \/>\n            self.params[key] -&#061; 0.01 * grad  # \u68af\u5ea6\u4e0b\u964d  <\/p>\n<p>    def pull(self, keys):<br \/>\n        return [self.params[key] for key in keys]  # \u53c2\u6570\u5206\u53d1:cite[2]:cite[5]   <\/p>\n<p>\u901a\u4fe1\u4f18\u5316&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u952e\u503c\u5206\u7247&#xff1a;\u6309key_range\u5c06\u53c2\u6570\u5206\u5e03\u5230\u591a\u4e2aPS Actor&#xff0c;\u907f\u514d\u5355\u70b9\u74f6\u9888<\/p>\n<\/li>\n<li>\n<p>\u7a00\u758f\u66f4\u65b0&#xff1a;\u4ec5\u540c\u6b65\u975e\u96f6\u68af\u5ea6&#xff08;FedSparse\u534f\u8bae&#xff09;&#xff0c;\u901a\u4fe1\u91cf\u51cf\u5c1170%<\/p>\n<\/li>\n<\/ul>\n<h5>2. \u5f02\u6784\u8bbe\u5907\u81ea\u9002\u5e94\u7b56\u7565<\/h5>\n<p># GPU\u4e0eNPU\u6df7\u5408\u96c6\u7fa4\u8c03\u5ea6<br \/>\nps_npu &#061; ParameterServer.options(resources&#061;{&#034;npu&#034;:1}).remote(dim&#061;1000)<br \/>\nps_gpu &#061; ParameterServer.options(resources&#061;{&#034;gpu&#034;:1}).remote(dim&#061;2000)  <\/p>\n<p># \u5ba2\u6237\u7aef\u6309\u8bbe\u5907\u7c7b\u578b\u7ed1\u5b9a<br \/>\nclient &#061; FLClient.remote()<br \/>\nif ray.cluster_resources()[&#034;npu&#034;] &gt; 0:<br \/>\n    client.bind_to.remote(ps_npu)  # \u6607\u817eNPU\u4f18\u5148<br \/>\nelse:<br \/>\n    client.bind_to.remote(ps_gpu)  # \u964d\u7ea7\u81f3GPU   <\/p>\n<hr \/>\n<h4>\u56db\u3001\u8054\u90a6\u5b66\u4e60\u6846\u67b6\u5b9e\u6218&#xff1a;\u533b\u7597\u5f71\u50cf\u8bca\u65ad\u6848\u4f8b<\/h4>\n<h5>1. \u7cfb\u7edf\u67b6\u6784<\/h5>\n<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"311\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612234600-684b66b86e586.png\" width=\"216\" \/><\/p>\n<h5>2. \u5173\u952e\u6280\u672f\u65b9\u6848<\/h5>\n<ul>\n<li>\n<p>\u9690\u79c1\u4fdd\u62a4&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u68af\u5ea6\u540c\u6001\u52a0\u5bc6&#xff08;Paillier\u7b97\u6cd5&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5dee\u5206\u566a\u58f0\u6ce8\u5165&#xff08;\u03c3&#061;0.01&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5f02\u6784\u8c03\u5ea6&#xff1a;<\/p>\n<ul>\n<li>\n<p>GPU\u8282\u70b9&#xff1a;\u6267\u884c\u672c\u5730\u8bad\u7ec3&#xff08;\u9ad8\u5e76\u884c&#xff09;<\/p>\n<\/li>\n<li>\n<p>NPU\u8282\u70b9&#xff1a;\u8fd0\u884c\u53c2\u6570\u670d\u52a1\u5668&#xff08;\u9ad8\u5e26\u5bbd&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u52a8\u6001\u5bb9\u9519&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5ba2\u6237\u7aef\u79bb\u7ebf\u65f6&#xff0c;PS\u81ea\u52a8\u5207\u6362\u81f3\u540c\u6b65\u6a21\u5f0f&#xff08;SWAP\u805a\u5408\u534f\u8bae&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>3. \u6027\u80fd\u6307\u6807<\/h5>\n<table>\n<tr>\u573a\u666f\u4f20\u7edf\u4e2d\u5fc3\u5316\u8bad\u7ec3Ray\u8054\u90a6\u6846\u67b6<\/tr>\n<tbody>\n<tr>\n<td>\u8111\u5352\u4e2d\u9884\u6d4b\u51c6\u786e\u7387<\/td>\n<td>81%<\/td>\n<td>80%<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u9690\u79c1\u7b49\u7ea7<\/td>\n<td>\u4f4e&#xff08;\u539f\u59cb\u6570\u636e\u5171\u4eab&#xff09;<\/td>\n<td>\u9ad8&#xff08;\u4ec5\u52a0\u5bc6\u68af\u5ea6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8de8\u533b\u9662\u8bad\u7ec3\u901f\u5ea6<\/td>\n<td>72\u5c0f\u65f6\/\u8f6e<\/td>\n<td>28\u5c0f\u65f6\/\u8f6e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u4e94\u3001\u6027\u80fd\u4f18\u5316&#xff1a;\u9510\u5ea6\u611f\u77e5\u4e0e\u68af\u5ea6\u5bf9\u9f50<\/h4>\n<p>\u9488\u5bf9\u8054\u90a6\u5b66\u4e60\u7684\u5ba2\u6237\u7aef\u6f02\u79fb&#xff08;client drift&#xff09;\u4e0e\u957f\u5c3e\u6570\u636e\u5206\u5e03\u95ee\u9898&#xff0c;Ray\u96c6\u6210FedTAIL\u4f18\u5316\u5668&#xff1a;<\/p>\n<h5>1. \u9510\u5ea6\u611f\u77e5\u6700\u5c0f\u5316&#xff08;Sharpness-Aware Minimization&#xff09;<\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"66\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612234600-684b66b8e3595.png\" width=\"312\" \/><\/p>\n<ul>\n<li>\n<p>\u5b9e\u73b0\u4ee3\u7801&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p>def fedtail_step(params, grads):<br \/>\n    # \u8ba1\u7b97\u9510\u5ea6\u654f\u611f\u5ea6<br \/>\n    sharpness &#061; compute_curvature(grads)<br \/>\n    # \u52a8\u6001\u52a0\u6743&#xff08;\u957f\u5c3e\u7c7b\u522b\u6743\u91cd\u63d0\u53473-5\u500d&#xff09;<br \/>\n    weights &#061; curvature_aware_weighting(sharpness)<br \/>\n    # \u9510\u5ea6\u5f15\u5bfc\u66f4\u65b0<br \/>\n    new_params &#061; params &#8211; lr * (grads &#043; \u03b2 * sharpness * weights)<br \/>\n    return new_params<br \/>\n&#096;&#096;&#096; :cite[9]  <\/p>\n<p>2. \u68af\u5ea6\u4e00\u81f4\u6027\u6b63\u5219\u5316<\/p>\n<p>$$\\\\mathcal{R}_{gc} &#061; \\\\sum_{i \\\\neq j} \\\\cos(\\\\nabla_{\\\\theta_i}, \\\\nabla_{\\\\theta_j})$$<br \/>\n&#8211; \u6d88\u9664\u5206\u7c7b\u635f\u5931\u4e0e\u5bf9\u6297\u635f\u5931\u7684\u4f18\u5316\u51b2\u7a81:cite[9]   <\/p>\n<hr \/>\n<h4>\u516d\u3001\u751f\u4ea7\u73af\u5883\u90e8\u7f72\u6307\u5357<\/h4>\n<h5>1. \u6df7\u5408\u96c6\u7fa4\u542f\u52a8\u6d41\u7a0b<\/h5>\n<p># Head\u8282\u70b9&#xff08;\u534f\u8c03\u5668&#xff09;<br \/>\nray start &#8211;head &#8211;resources&#061;&#039;{&#034;head&#034;:1}&#039; &#8211;port&#061;6379  <\/p>\n<p># GPU\u8282\u70b9<br \/>\nray start &#8211;address&#061;&lt;head_ip&gt;:6379 &#8211;resources&#061;&#039;{&#034;gpu&#034;:4}&#039;  <\/p>\n<p># \u6607\u817e\u8282\u70b9<br \/>\nray start &#8211;address&#061;&lt;head_ip&gt;:6379 &#8211;resources&#061;&#039;{&#034;npu&#034;:8}&#039;   <\/p>\n<h5>2. \u8d44\u6e90\u611f\u77e5\u8c03\u5ea6\u7b56\u7565<\/h5>\n<p># \u8054\u90a6\u4efb\u52a1\u8d44\u6e90\u914d\u7f6e<br \/>\nfl_task:<br \/>\n  placement_group:<br \/>\n    bundles:<br \/>\n      &#8211; {&#034;CPU&#034;: 8, &#034;GPU&#034;: 1}:  # \u5ba2\u6237\u7aef<br \/>\n        strategy: SPREAD<br \/>\n      &#8211; {&#034;NPU&#034;: 1}:  # \u53c2\u6570\u670d\u52a1\u5668<br \/>\n        strategy: PACK<br \/>\n  max_retries: 5  # \u5bb9\u9519\u91cd\u8bd5<br \/>\n&#096;&#096;&#096; :cite[4]:cite[10]  <\/p>\n<hr \/>\n<h4>\u4e03\u3001\u6311\u6218\u4e0e\u672a\u6765\u65b9\u5411<\/h4>\n<p>1.\u5b89\u5168\u4e0e\u6548\u7387\u5e73\u8861&#xff1a;\u540c\u6001\u52a0\u5bc6\u5bfc\u81f430%\u989d\u5916\u5f00\u9500&#xff0c;\u9700\u786c\u4ef6\u52a0\u901f&#xff08;\u5982SGX enclave&#xff09;<\/p>\n<p>2. \u6781\u7aef\u5f02\u6784\u652f\u6301&#xff1a;\u7edf\u4e00\u5185\u5b58\u5730\u5740\u7a7a\u95f4&#xff08;Ray 3.0\u8ba1\u5212&#xff09;<\/p>\n<p>3. \u5168\u7403\u8c03\u5ea6\u5ef6\u8fdf&#xff1a;\u591a\u7ea7GCS\u67b6\u6784&#xff08;\u533a\u57df\u4e2d\u5fc3&#043;\u8fb9\u7f18\u8282\u70b9&#xff09;<\/p>\n<p>\u5de5\u7a0b\u5e08\u7bb4\u8a00&#xff1a;<\/p>\n<p>\u201cRay\u7684\u7cbe\u9ad3\u5728\u4e8e\u5c06\u5206\u5e03\u5f0f\u7cfb\u7edf\u590d\u6742\u6027\u5c01\u88c5\u5728Actor\u4e4b\u540e\u2014\u2014\u5f00\u53d1\u8005\u53ea\u9700\u5173\u6ce8\u4e1a\u52a1\u903b\u8f91&#xff0c;\u8ba9\u6846\u67b6\u5904\u7406\u8de8\u8bbe\u5907\u901a\u4fe1\u3001\u5bb9\u9519\u4e0e\u8d44\u6e90\u4e89\u7528\u3002\u201d \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u2014\u2014 Ray\u6838\u5fc3\u8d21\u732e\u8005Robert Nishihara \u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf21\u6b21\u3002GCS\uff08Global Control Store\uff09\u5b9e\u65f6\u76d1\u63a7\u96c6\u7fa4\u72b6\u6001\uff0c\u5b9e\u73b0\u4efb\u52a1\u7ea7\u7ec6\u7c92\u5ea6\u8c03\u5ea6\u3002\uff1aTasks\uff08\u65e0\u72b6\u6001\u4efb\u52a1\uff09\u4e0eActors\uff08\u6709\u72b6\u6001\u670d\u52a1\uff09\u7edf\u4e00\u8c03\u5ea6\uff0c\u652f\u6301\u8bad\u7ec3\/\u63a8\u7406\u6df7\u5408\u8d1f\u8f7d\u3002\uff0c\u5b9e\u73b0\u4ece\u5355\u673a\u5230\u5343\u5361\u96c6\u7fa4\u7684\u65e0\u7f1d\u6269\u5c55\uff0c\u6210\u4e3a\u8054\u90a6\u5b66\u4e60\u7684\u7406\u60f3\u57fa\u7840\u8bbe\u65bd\u3002\uff1a\u540c\u6001\u52a0\u5bc6\u5bfc\u81f430%\u989d\u5916\u5f00\u9500\uff0c\u9700\u786c\u4ef6\u52a0\u901f\uff08\u5982SGX enclave\uff09\uff1a\u4ec5\u540c\u6b65\u975e\u96f6\u68af\u5ea6\uff08FedSparse\u534f\u8bae\uff09\uff0c\u901a\u4fe1\u91cf\u51cf\u5c1170%\uff1aFIFO\u6d88\u606f\u961f\u5217\uff0c\u63a5\u6536\u8de8\u8282\u70b9\u901a\u4fe1\uff08\u5982\u68af\u5ea6\u66f4\u65b0\uff09\uff1a\u6d88\u606f\u5904\u7406\u903b\u8f91\uff08\u5982\u805a\u5408\u68af\u5ea6\u3001\u66f4\u65b0\u53c2\u6570\uff09\uff1a\u6301\u4e45\u5316\u72b6\u6001\uff08\u5982\u6a21\u578b\u53c2\u6570\u3001\u4f18\u5316\u5668\u72b6\u6001\uff09<\/p>\n","protected":false},"author":2,"featured_media":43587,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[664,43,44],"topic":[],"class_list":["post-43590","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-664","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/43590.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf21\u6b21\u3002GCS\uff08Global Control Store\uff09\u5b9e\u65f6\u76d1\u63a7\u96c6\u7fa4\u72b6\u6001\uff0c\u5b9e\u73b0\u4efb\u52a1\u7ea7\u7ec6\u7c92\u5ea6\u8c03\u5ea6\u3002\uff1aTasks\uff08\u65e0\u72b6\u6001\u4efb\u52a1\uff09\u4e0eActors\uff08\u6709\u72b6\u6001\u670d\u52a1\uff09\u7edf\u4e00\u8c03\u5ea6\uff0c\u652f\u6301\u8bad\u7ec3\/\u63a8\u7406\u6df7\u5408\u8d1f\u8f7d\u3002\uff0c\u5b9e\u73b0\u4ece\u5355\u673a\u5230\u5343\u5361\u96c6\u7fa4\u7684\u65e0\u7f1d\u6269\u5c55\uff0c\u6210\u4e3a\u8054\u90a6\u5b66\u4e60\u7684\u7406\u60f3\u57fa\u7840\u8bbe\u65bd\u3002\uff1a\u540c\u6001\u52a0\u5bc6\u5bfc\u81f430%\u989d\u5916\u5f00\u9500\uff0c\u9700\u786c\u4ef6\u52a0\u901f\uff08\u5982SGX enclave\uff09\uff1a\u4ec5\u540c\u6b65\u975e\u96f6\u68af\u5ea6\uff08FedSparse\u534f\u8bae\uff09\uff0c\u901a\u4fe1\u91cf\u51cf\u5c1170%\uff1aFIFO\u6d88\u606f\u961f\u5217\uff0c\u63a5\u6536\u8de8\u8282\u70b9\u901a\u4fe1\uff08\u5982\u68af\u5ea6\u66f4\u65b0\uff09\uff1a\u6d88\u606f\u5904\u7406\u903b\u8f91\uff08\u5982\u805a\u5408\u68af\u5ea6\u3001\u66f4\u65b0\u53c2\u6570\uff09\uff1a\u6301\u4e45\u5316\u72b6\u6001\uff08\u5982\u6a21\u578b\u53c2\u6570\u3001\u4f18\u5316\u5668\u72b6\u6001\uff09\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/43590.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-12T23:46:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612234600-684b66b823e96.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43590.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/43590.html\",\"name\":\"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-12T23:46:01+00:00\",\"dateModified\":\"2025-06-12T23:46:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/43590.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/43590.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43590.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/43590.html","og_locale":"zh_CN","og_type":"article","og_title":"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf21\u6b21\u3002GCS\uff08Global Control Store\uff09\u5b9e\u65f6\u76d1\u63a7\u96c6\u7fa4\u72b6\u6001\uff0c\u5b9e\u73b0\u4efb\u52a1\u7ea7\u7ec6\u7c92\u5ea6\u8c03\u5ea6\u3002\uff1aTasks\uff08\u65e0\u72b6\u6001\u4efb\u52a1\uff09\u4e0eActors\uff08\u6709\u72b6\u6001\u670d\u52a1\uff09\u7edf\u4e00\u8c03\u5ea6\uff0c\u652f\u6301\u8bad\u7ec3\/\u63a8\u7406\u6df7\u5408\u8d1f\u8f7d\u3002\uff0c\u5b9e\u73b0\u4ece\u5355\u673a\u5230\u5343\u5361\u96c6\u7fa4\u7684\u65e0\u7f1d\u6269\u5c55\uff0c\u6210\u4e3a\u8054\u90a6\u5b66\u4e60\u7684\u7406\u60f3\u57fa\u7840\u8bbe\u65bd\u3002\uff1a\u540c\u6001\u52a0\u5bc6\u5bfc\u81f430%\u989d\u5916\u5f00\u9500\uff0c\u9700\u786c\u4ef6\u52a0\u901f\uff08\u5982SGX enclave\uff09\uff1a\u4ec5\u540c\u6b65\u975e\u96f6\u68af\u5ea6\uff08FedSparse\u534f\u8bae\uff09\uff0c\u901a\u4fe1\u91cf\u51cf\u5c1170%\uff1aFIFO\u6d88\u606f\u961f\u5217\uff0c\u63a5\u6536\u8de8\u8282\u70b9\u901a\u4fe1\uff08\u5982\u68af\u5ea6\u66f4\u65b0\uff09\uff1a\u6d88\u606f\u5904\u7406\u903b\u8f91\uff08\u5982\u805a\u5408\u68af\u5ea6\u3001\u66f4\u65b0\u53c2\u6570\uff09\uff1a\u6301\u4e45\u5316\u72b6\u6001\uff08\u5982\u6a21\u578b\u53c2\u6570\u3001\u4f18\u5316\u5668\u72b6\u6001\uff09","og_url":"https:\/\/www.wsisp.com\/helps\/43590.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-12T23:46:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612234600-684b66b823e96.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/43590.html","url":"https:\/\/www.wsisp.com\/helps\/43590.html","name":"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-12T23:46:01+00:00","dateModified":"2025-06-12T23:46:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/43590.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/43590.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/43590.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ray\u6846\u67b6\u6838\u5fc3\u539f\u7406\u89e3\u6790\uff1a\u4eceActor\u6a21\u578b\u5230\u5206\u5e03\u5f0f\u53c2\u6570\u670d\u52a1\u5668\u2014\u2014\u5b9e\u73b0\u5f02\u6784\u8ba1\u7b97\u96c6\u7fa4\u7684\u8054\u90a6\u5b66\u4e60\u6846\u67b6"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=43590"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43590\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/43587"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=43590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=43590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=43590"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=43590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}