- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
打造Linux下的高性能网络
北京酷锐达信息技术有限公司
技术总监 史应生
BY DEFAULT, LINUX NETWORKING
NOT TUNED FOR MAX PERFORMANCE,
MORE FOR RELIABILITY
Trade-off :Low Latency, throughput, determinism
Performance Goals
Throughput
– Optimize for best average
– Default design criteria for most operating systems
– how much can you do at a time?“
Low Latency
– Optimize for best minimum
– Minimize execution times for certain paths
– whats the fastest we can push a packet out?“
Determinism
– Optimize for best (lowest) maximum
– Fewest/lowest outliers
– whats the maximum time it will take?
State of the Art NIC characteristics
56 Gigabits per second (Unix network stack was
designed for 10Mbits)
4-7 Gigabytes per second (Unix: 1 MB/s)
8 million packets per second (Unix: ~1000 packets
per second).
Less than a microsecond per packet for processing.
Latency Factors
BIOS Settings for Low Latency
CSTATE default – C7 on this config
CSTATE disabled – Note speed
NPtcp latency vs cstates – c7 vs c0
Firmware tuning impact – a drastic picture
Different Technology To Max Performance
IPOIB = Kernel Sockets layer using IP emulation on Infiniband.
SDP = Kernel Sockets layer using Infiniband native connection.
IB = Native Infiniband connection. User space → User Space
Rsockets = Socket Emulation layer in user space
Performance comparison shows that kernel processing is detrimental
to performance. Bypass is essential.
Different Technology To Max Performance
Why bypass the kernel?
Kernel is too slow and inefficient at high packet rates. Problems
already begin at 10G.
Contemporary devices can map user space memory and
perform transfer to user space.
Kernel must copy data between kernel buffers and userspace.
Kernel is co
文档评论(0)