首页 | 本学科首页   官方微博 | 高级检索  
     

网络缓存的零拷贝优化
引用本文:周敬利,王晓锋,余胜生,夏洪涛.网络缓存的零拷贝优化[J].计算机科学,2005,32(9):35-39.
作者姓名:周敬利  王晓锋  余胜生  夏洪涛
作者单位:华中科技大学计算机科学与技术学院,武汉,430074;华中科技大学计算机科学与技术学院,武汉,430074;华中科技大学计算机科学与技术学院,武汉,430074;华中科技大学计算机科学与技术学院,武汉,430074
基金项目:本研究由国家自然科学基金(60373088)和国防研究基金(4131605)资助.
摘    要:数据的冗余拷贝是影响网络缓存软件性能的重要因素.本文详细分析了当前广泛使用的网络缓存程序Squid的数据拷贝流程,利用快速文件传输和数据流拼接两种策略在Linux平台上实现了squid的零拷贝优化.快速文件传输是将文件数据从文件系统内核缓存直接发送到远程主机,数据流拼接则是在网络协议栈内核缓存之间直接交换数据,二者都能够减少数据在内核空间和用户空间流动带来的冗余拷贝.实验证明,经过优化的Squid在主机CPU占用率和请求响应时间等方面的性能均有显著提高.

关 键 词:网络缓存  零拷贝  优化

Zero Copy Optimization for Web Cache
ZHOU Jing-Li,WANG Xiao-Feng,YU Sheng-Sheng,Xia Hong-Tao.Zero Copy Optimization for Web Cache[J].Computer Science,2005,32(9):35-39.
Authors:ZHOU Jing-Li  WANG Xiao-Feng  YU Sheng-Sheng  Xia Hong-Tao
Affiliation:Department of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan 430074
Abstract:The poor performance of current Web cache attributes to redundant data copies significantly. Squid, which is well known as a widely used Web cache program, is analyzed in detail in this paper from the point of view of its data movement. Zero copy optimization to Squid is implemented based on two strategies: faster file transfer and data stream splicing. The former makes file data sent to remote host from kernel buffer of local file system directly, and the latter means that input and outgoing data can be exchanged between kernel buffers of protocol stacks smoothly. Both of them reduce data copies resulted from data movement between kernel space and user space. Experiments prove that the opti- mized Squid predominates over original version remarkably in both CPU utilities and mean request response time.
Keywords:Web cache  Zero copy  Optimization
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机科学》浏览原始摘要信息
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号