戴翔-使用硬件加速Tokio.pptx

编号:132080 PPTX 17页 1.66MB 下载积分:VIP专享
下载报告请您先登录!

戴翔-使用硬件加速Tokio.pptx

1、第三届中国第三届中国Rust开发者大会开发者大会使用硬件加速使用硬件加速Tokio演讲人:Loong.Dai,Cathy.LuLoong DaiIntel云原生工程师微软MVPDapr、Thanos、Golangci-lint的Maintainer现在主要专注于服务网格领域,探索云原生软硬件结合新范式Github ID:daixiang0自我介绍Cathy LuIntel软件工程师专注于NFV,电信网络云化等方案Why need Tokio?Rust does not provide async runtime in std libTokio is good enoughTokioTokios

2、 APIs are memory-safe,thread-safe,and misuse-resistant.This helps prevent common bugs,such as unbounded queues,buffer overflows,and task starvation.ReliableBuilding on top of Rust,Tokio provides a multi-threaded,work-stealing scheduler.Applications can process hundreds of thousands of requests per s

3、econd with minimal overhead.Fastasync/await reduces the complexity of writing asynchronous applications.Paired with Tokios utilities and vibrant ecosystem,writing applications is a breeze.EasyThe needs of a server application differ from that of an embedded device.Although Tokio comes with defaults

4、that work well out of the box,it also provides the knobs needed to fine tune to different cases.FlexibleTokioCore Queue-Based Modules in Tokio Channel SchedulerTokio uses Channel for communication between threads(incl.pthread,co-routines).Channel allows a unidirectional flow of information between t

5、wo end-points:the Sender and the Receiver.Channel Type:SPSC,SPMC,MPMC,MPSC.SendersReceiveSendersSendersReceiveReceiversPerf Gaps:CAS(Compare And Swap)cant perfectly scale with core count.Tokio ChannelKeyTokio SchedulerPerf Gap:Synchronization is required for stealingSoftware Queue IssuesProducerEnqu

6、eue SoftwareDequeue SoftwareHead and Tail pointersDequeue SoftwareDequeue SoftwareEnqueue SoftwareProducerConsumerConsumerConsumerSynchronization latencyMemory/Cache latencyCPU cycles latencyDLB:Dynamic Load BalanceDLBDLBEnqueue LogicHead and Tail pointersDequeue Logic&Load BalancerProducerProducerC

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(戴翔-使用硬件加速Tokio.pptx)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠