首页> 外文会议> >Seekable sockets: a mechanism to reduce copy overheads in TCP-based messaging
【24h】

Seekable sockets: a mechanism to reduce copy overheads in TCP-based messaging

机译:可搜索套接字:一种减少基于TCP的消息传递中的复制开销的机制

获取原文

摘要

This paper extends the traditional socket interface to TCP/IP communication with the ability to seek rather than simply receive data in order. Seeking on a TCP socket allows a user program to receive data without first receiving all previous data on the connection. Through repeated use of seeking, a messaging application or library can treat a TCP socket as a list of messages with the potential to receive and remove data from any arbitrary point rather than simply the head of the socket buffer. Seeking facilitates copy-avoidance between a messaging library and user code by eliminating the need to first copy unwanted data into a library buffer before receiving desired data that appears later in the socket buffer. The seekable sockets interface is implemented in the Linux 2.6.13 kernel. Experimental results are gathered using a simple microbenchmark that receives data out-of-order from a given socket, yielding up to a 40% reduction in processing time. The code for seekable sockets is now available for patching into existing Linux kernels and for further development into messaging libraries.
机译:本文将传统的套接字接口扩展到TCP / IP通信,并具有查找而不是简单地按顺序接收数据的能力。在TCP套接字上进行搜索允许用户程序接收数据,而无需先接收连接上的所有先前数据。通过重复使用查找,消息传递应用程序或库可以将TCP套接字视为消息列表,有可能从任意点而不是简单地从套接字缓冲区的头接收和删除数据。搜寻通过避免在接收到稍后出现在套接字缓冲区中的所需数据之前先将不需要的数据复制到库缓冲区中,从而避免了消息库与用户代码之间的复制。可搜索套接字接口是在Linux 2.6.13内核中实现的。使用简单的微基准收集实验结果,该基准可以从给定的套接字中无序接收数据,从而可以将处理时间减少多达40%。可搜索套接字的代码现在可用于修补到现有的Linux内核中,并可以进一步开发到消息传递库中。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号