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

Analysis and design of communication server based on EPOLL and SPED

在线阅读下载全文

作  者:段翰聪[1] 卢显良[1] 宋杰[1] 

机构地区:[1]电子科技大学计算机科学与工程学院,四川成都610054

出  处:《计算机应用》2004年第10期36-39,共4页journal of Computer Applications

基  金:国家信息产业部电子发展基金资助项目 (信部运 (2 0 0 4))

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

关 键 词:热连接 冷连接 整包转发 立即转发 动态水线发送 静态水线发送 

分 类 号:TP315[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象