期刊文献+

基于EPOLL的单进程事件驱动通信服务器设计与分析 被引量:6

Analysis and design of communication server based on EPOLL and SPED
下载PDF
导出
摘要 通信服务器通常采用多进程、多线程同步阻塞I/O或者是基于SELECT、POLL的单线程事件驱动I/O(SingleProcessEvent Driven)等方式设计。设计了一个通信服务器,分析指出几种网络I/O方式在高并发连接下其性能已经成为首要瓶颈,提出采用一种新的单线程异步事件驱动I/O方式—EPOLL,针对传统的POLL作了相关的优化;根据通信服务器特性提出了在不同服务器负载和网络条件下,采取几种转发模式和发送模式的自适应匹配策略用以提高服务器性能。通过实验表明,基于采用EPOLL技术和自适应匹配策略的服务器比传统的基于SELECT、POLL的服务器提高了五倍的性能。 Generally,Multi-Processes and Multi-Threads and Blocked I/O or SPED are adopted by the communication server. A communication server was designed,the main performance bottleneck when adopting those network I/O mechanisms under the high payloads was analyzed,and was pointed out that the new SPED I/O methods — EPOLL which is new POLL optimized for bottlenecks should be adopted. Furthermore,when communication server was under different payloads and network circumstance,the self-adapted policy of the forwarding and sending mode was adopted to improve the server performance. Experiments show that the performance of the communication server adopting EPOLL is more than 5 times higher than those adopting traditional SELECT and POLL.
出处 《计算机应用》 CSCD 北大核心 2004年第10期36-39,共4页 journal of Computer Applications
基金 国家信息产业部电子发展基金资助项目 (信部运 (2 0 0 4))
关键词 热连接 冷连接 整包转发 立即转发 动态水线发送 静态水线发送 hot connection cold connection entire forwarding forwarding immediately dynamic water-mark sending static water-mark sending
  • 相关文献

参考文献10

  • 1[1]EPOL L[EB/OL].http://www.xmailserver.org/linux-patches/nio-improve.html,2004.
  • 2[2]PROVOS N,LEVER C.Scalable Network I/O in Linux[A].Proceedings of the USENIX[C].University of Michigan,2000.
  • 3[3]C10K Problem[EB/OL].http://www.kegel.com/c10k.html,2004.
  • 4[4]SHERLIA S,TURNER JS.Placing Servers in Overlay Networks[D].Department of Computer Science,Washington University,2002.
  • 5[5]LEMON J.Kqueue:A generic and Scalable Event Notification Facility[A].Proceeding of the USENIX 2001 Annual Technical Conference[C].2001.
  • 6[6]BANGA G,DRUSCHEL P.Measuring the Capacity of a Web Server[J].USENIX Symposium on Internet Technologies and Systems,1997.
  • 7[7]BANGA G,MOGUL J.Scalable Kernel Performance for Internet Server under Realistic Loads[A].Proceeding of the USENIX 1998 Annual Technical Conference[C].1998.
  • 8[8]BANGS G,DRUSCHEL P,MOGUL JC.Better operating system features for faster network servers[A].Proceedings of the Workshop on Internet Server Performance[C].Madison,WI,1998.
  • 9[9]ROSSI F.An event mechanism for Linux[J].Linux Journal,2003,(11).
  • 10[10]STEVENS WR.Unix Network Programming Networking APIs:Socket and XTI(Second Edition)[M/CD].Prentince Hall International,Inc. 1998.

同被引文献55

引证文献6

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部