{"id":866,"date":"2024-01-25T14:27:51","date_gmt":"2024-01-25T06:27:51","guid":{"rendered":"https:\/\/www.nanoexpress.com\/?p=866"},"modified":"2024-01-25T14:29:05","modified_gmt":"2024-01-25T06:29:05","slug":"%e5%a4%a7%e8%bf%9e%e5%9b%9e%e6%8a%a5%e5%8a%a0%e9%80%9f%e6%9c%8d%e5%8a%a1%e7%ab%af%e9%85%8d%e7%bd%ae%e6%89%8b%e5%86%8c","status":"publish","type":"post","link":"https:\/\/www.nanoexpress.com\/?p=866","title":{"rendered":"\u5927\u8fde\u56de\u62a5\u52a0\u901f\u670d\u52a1\u7aef\u914d\u7f6e\u624b\u518c"},"content":{"rendered":"<p><strong>\u524d\u8a00<\/strong><br \/>\n\u5f53\u7528\u6237\u7b56\u7565\u6d89\u53ca\u5230\u591a\u817f\u62a5\u5355\u65f6\uff0c\u56de\u62a5\u52a0\u901f\u529f\u80fd\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\uff0c\u8be5\u529f\u80fd\u53ef\u4e3a\u7528\u6237\u52a0\u901f\u89e6\u53d1\u63d0\u4f9b\u7b2c\u4e8c\u817f\u4ee5\u540e\u7684\u62a5\u5355\uff0c\u63d0\u5347\u7b2c\u4e8c\u817f\u4ee5\u540e\u7684\u62a5\u5355\u6210\u4ea4\u7387\uff0c\u589e\u52a0\u7528\u6237\u7b56\u7565\u6536\u76ca\u6548\u679c\u660e\u663e\u3002<br \/>\n\u56de\u62a5\u52a0\u901f\u4e3b\u8981\u9488\u5bf9\u4e0b\u884c\u56de\u62a5\u52a0\u901f\u8fdb\u884c\u591a\u8def\u9009\u4f18\uff0c\u9009\u62e9\u6700\u5feb\u7684\u56de\u62a5\u53d1\u9001\u7ed9\u6295\u8d44\u8005\u3002<br \/>\n<strong>\u786c\u4ef6\u90e8\u7f72<\/strong><\/p>\n<p><strong>\u8f6f\u4ef6\u90e8\u7f72<\/strong><\/p>\n<p>\u6ce8\u610f\uff1a\u5f53\u524d\u5927\u8fde\u56de\u62a5\u52a0\u901f\u4e0d\u652f\u6301\u8fd4\u56desession+ref<br \/>\n<strong>\u8f6f\u4ef6\u7a0b\u5e8f\u9879<\/strong><\/p>\n<p>back_fast_dce.o:\u4e3b\u7a0b\u5e8f<br \/>\nrun.sh\uff1a\u542f\u52a8\u811a\u672c\uff0c\u5185\u90e8\u9700\u8981\u6539X10\u7f51\u5361\u540d\u548c\u7aef\u53e3\uff0c\u8c03\u7528start<br \/>\nstart\uff1a\u542f\u52a8\u811a\u672c\uff0c\u5185\u90e8\u8bbe\u7f6e\u8fc7\u6ee4\u53c2\u6570<br \/>\nstop.sh\uff1a\u505c\u6b62\u811a\u672c\uff0c\u8c03\u7528stop<br \/>\nstop\uff1a\u505c\u6b62\u811a\u672c<br \/>\ntrader_info.txt\uff1a\u914d\u7f6e\u5e2d\u4f4d\u53f7\u548c\u5bf9\u5e94\u5bc6\u7801<br \/>\n<strong>\u542f\u52a8\u53c2\u6570<\/strong><br \/>\nrun.sh<br \/>\n.\/start p6p1 5000<br \/>\np6p1\uff1a\u63a5\u6536\u955c\u50cf\u7684X10\u7f51\u5361\u540d<br \/>\n5000\uff1a\u8868\u793a\u8f6f\u4ef6\u56de\u62a5\u52a0\u901f\u670d\u52a1\u7aef\u5bf9\u5916\u4fa6\u542c\u7684\u7aef\u53e3<br \/>\nstart<\/p>\n<h1>!\/bin\/sh<\/h1>\n<p>if pgrep \"back_fast\"; then<br \/>\necho \"back_fast start failed,back_fast is already running!\"<br \/>\nexit<br \/>\nfi<\/p>\n<p>exanic-config exanic0:[0-1] up<br \/>\nexanic-config exanic0:[0-1] promisc on<\/p>\n<p>if [ $# -ne 2 ]; then<br \/>\necho need eth name and ip port<br \/>\nexit<br \/>\nfi<\/p>\n<p>export LD_LIBRARY_PATH=.<\/p>\n<p>LOGDIR=\".\/\"$(date +%Y%m%d)\"\/\"<br \/>\nmkdir $LOGDIR -p<\/p>\n<p>SERVER_CTRL_FIFO=\"\/tmp\/back_fast\"<br \/>\nif [ -p $SERVER_CTRL_FIFO ]; then<br \/>\nrm $SERVER_CTRL_FIFO<br \/>\nfi<\/p>\n<p>mkfifo $SERVER_CTRL_FIFO<br \/>\nSERVER_LOG_FILE=$LOGDIR\"back-\"$(date +\"%H%M%S\")\".log\"<br \/>\necho start back_fast...<\/p>\n<p>F_NAME=yy EF_EPOLL_MT_SAFE=0 EF_TCP_INITIAL_CWND=102400 EF_STACK_PER_THREAD=1 EF_UL_EPOLL=3 EF_SELECT_SPIN=0<br \/>\nnohup onload --profile=latency-best taskset -c 17 .\/back_fast_dce.o -rt-0.0.0.0:7100-0.0.0.0:0 -te -e2 -l0 -c8 -f$1 -p$2 -i $SERVER_CTRL_FIFO 1&gt;$SERVER_LOG_FILE 2&gt;&amp;1 &amp;<\/p>\n<p>echo &gt;$SERVER_CTRL_FIFO<\/p>\n<p>echo back_fast start success!<br \/>\n\u9700\u8981\u4fee\u6539\u7684\u53c2\u6570\u5728\u4e0a\u8ff0\u7b2c30\u884c\uff1anohup onload --profile=latency-best taskset -c 17 .\/back_fast_dce.o -rt-0.0.0.0:7100-0.0.0.0:0 -te -e2 -l0 -c8 -f$1 -p$2 -i $SERVER_CTRL_FIFO 1&gt;$SERVER_LOG_FILE 2&gt;&amp;1 &amp;<\/p>\n<ol>\n<li>-rt-0.0.0.0:7100-0.0.0.0:0\uff1a\u5927\u5546\u6240\u4ea4\u6613\u524d\u7f6e\u7aef\u53e3\u53f77100<\/li>\n<li>-te\uff1ae\u8868\u793a\u63a5\u6536\u56de\u62a5\u955c\u50cf\u6a21\u5f0f\uff0c\u65e0\u9700\u4fee\u6539<\/li>\n<li>-e2\uff1a\u8868\u793a\u5927\u5546\u6240\uff0c\u65e0\u9700\u4fee\u6539<\/li>\n<li>-l0\uff1a\u65e5\u5fd7\u7b49\u7ea7\uff0c0:\u4e0d\u8bb0\u5f55\u65e5\u5fd7 1:\u8bb0\u5f55error\u65e5\u5fd7 2:\u8bb0\u5f55info\u65e5\u5fd7 3:\u8bb0\u5f55debug\u65e5\u5fd7\u3002\u751f\u4ea7\u8c03\u8bd5\u5b8c\u6210\u540e\u6307\u5b9a0\u5373\u53ef<\/li>\n<li>-c8\uff1a\u7ebf\u7a0b\u7ed1\u6838CPU(100%\u8fd0\u884c\u7684\u7ebf\u7a0b\u7ed1\u5b9a\u7684CPU)<\/li>\n<li>-f$1\uff1a$1\u8868\u793arun.sh\u4e2d\u6307\u5b9a\u7684\u7f51\u5361\u540d\uff0c\u65e0\u9700\u4fee\u6539<\/li>\n<li>-p$2\uff1a$2\u8868\u793arun.sh\u4e2d\u6307\u5b9a\u7684\u7aef\u53e3\uff0c\u65e0\u9700\u4fee\u6539<br \/>\ntrader_info.txt<br \/>\n\u914d\u7f6e\u5927\u5546\u6240\u5e2d\u4f4d\u53f7\u548c\u5bf9\u5e94\u5e2d\u4f4d\u5bc6\u7801\uff0c\u683c\u5f0f\u5982\u4e0b\u793a\u4f8b\uff1a<br \/>\n1112001:password1<br \/>\n1112002:password2<br \/>\n1112003:password3<br \/>\n1112004:password4<br \/>\n1112005:password5<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5f53\u7528\u6237\u7b56\u7565\u6d89\u53ca\u5230\u591a\u817f\u62a5\u5355\u65f6\uff0c\u56de\u62a5\u52a0\u901f\u529f\u80fd\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\uff0c\u8be5\u529f\u80fd\u53ef\u4e3a\u7528\u6237\u52a0\u901f\u89e6\u53d1\u63d0\u4f9b\u7b2c\u4e8c\u817f\u4ee5\u540e\u7684\u62a5\u5355\uff0c\u63d0\u5347\u7b2c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-866","post","type-post","status-publish","format-standard","hentry","category-5"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts\/866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=866"}],"version-history":[{"count":3,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}