摘要
通信服务器通常采用多进程、多线程同步阻塞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