摘要
主要内容是关于当设计高性能 Web服务器时 ,如何解决快速 CPU处理能力和慢速磁盘访问之间的矛盾 .前半部分主要讨论现有 Web服务器模型的优缺点 ,后半部分描述了异步单进程事件驱动 (ASPED)模型及其实现 .ASPED是一个综合 SPED,AMPED优势和异步 I/ O思想的 Web服务器模型 .为证明该模型的先进性 ,据此编码了一个 Web服务器 Jaguar.经 Spec Web99测试 ,Jaguar的性能要比基于 AMPED模型的 Web服务器 Flash的性能最多好 2 0 %
What is descussed in this paper is how to reduce the gap between rapid processing power of CPU and long latency of disk access in designing a high performance Web server. First, discussed are pros and cons about current Web server models, including multi process model, multi threaded model, single process event driven (SPED), and asymmetric multi process event driven model (AMPED). Then an asynchronous single process event driven (ASPED) model is presented. ASPED integrates the idea of asynchronous I/O and the advantages of SPED and AMPED. It improves the I/O processing of the file systems by changing the blocking of accessing disks to nonblocking, thus avoiding the Web server's suspending because of the blocking which leads to the idling of the CPU. In order to show the advantages of this new model, a Web server-Jaguar is implemented based on ASPED. Through SpecWeb99 testing, the performance of Jaguar is higher than that of the Web server Flash based on AMPED by up to 20%.
出处
《计算机研究与发展》
EI
CSCD
北大核心
2001年第7期769-777,共9页
Journal of Computer Research and Development
基金
国家"八六三"高技术研究发展计划基金资助 (86 3-30 6 -ZD0 1-0 1)