西安交通大学电子与信息工程学院,西安,710049
网络首发:2007-02-10,
纸质出版:2007
移动端阅览
李卫, 郑卫斌, 管晓宏. 应用控制的Web服务器磁盘缓冲方法[J]. 西安交通大学学报, 2007,41(2):153-157.
李卫, 郑卫斌, 管晓宏. Application-Controlled Caching for Web Server[J]. 2007, 41(2): 153-157.
针对大数据负载时磁盘I/O阻塞造成的Web服务器性能下降的问题
提出了应用程序控制缓冲(ACC)方法.其核心是
缓冲跟踪模块根据应用程序的文件访问过程来跟踪内核中的文件缓冲状态
缓冲控制模块进行缓冲替换和预取
保持文件缓冲有足够的空闲空间.这样
服务器可在用户空间控制文件缓冲
从而准确判断文件是否在缓冲之中
并依此来调度请求
以提高处理器和磁盘的I/O并行度.同时
服务器可采用适应自身特点的缓冲和预读策略
以提高缓冲的命中率.作为示例
将ACC在Flash服务器中实现
实现中选用了“金字塔选择”缓冲算法.实验表明
在大数据负载下使用ACC的Flash服务器性能有很大的提高
即便在数据负载稍大于物理内存空间的情况下
服务器的吞吐率仍可提高约24.4%
而当数据负载超出物理内存2~3倍时
吞吐率可提高3~4倍.
Focusing on the problem that under workloads of large dataset
the performance of a Web server is dropped due to the disk I/O blockings
an application-controlled caching(ACC)approach is presented. In ACC
the cache tracking module traces the status of file caches in kernel according to the files access process of applications
and cache replacement and prefetch are performed incache control module to keep enough free space for file caches. With ACC
servers can control the file caches in user space
and determine whether a file is in caching
then schedule requests based on thisto improve the parallelism of the processor and disk I/O. Meanwhile
servers can choose a suitable policy of caching and prefetching to increase cache hit ratio. ACC is implemented in Flash server as a demonstration
in which pyramidal selection scheme is adopted. Experiments show thatthe performance of Flash with ACC can be largely enhanced under workloads of a large dataset. Even when the dataset load is slightly larger than the physical memory space
its throughput is improved by about 24.4%; when the dataset load is 2-3 times larger
the throughput improved by 3-4 times.
Pai V S, Druschel P, Zwaenepoel W. Flash: an efficient and portable web server [C]∥1999 Annual USENIX Technical Conference. Monterey, USA: USENIX,1999:199-212.
Ruan Yaoping, Pai V S. The origins of network server latency and the myth of connection scheduling [C]∥Joint International Conference on Measurement and Modeling of Computer Systems. New York: Association for Computing Machinery, 2004:424-425.
Cao Pei, Felten E W, Karlin A R, et al. Implementation and performance of integrated application-controlled file caching, prefetching, and disk scheduling [J]. ACM Transactions on Computer Systems, 1996, 14(4):311-343.
Podlipnig S, Boszormenyi L. A survey of Web cache replacement strategies [J]. ACM Computing Surveys, 2003,35(4):374-398.
Cao Pei, Irani S. Cost-aware WWW proxy caching algorithms [C]∥Proceedings of the USENIX Symposium on Internet Technologies and Systems. Monterey, USA: USENIX,1997:193-206.
Aggarwal C, Wolf J L, Yu P S. Caching on the world wide web [J]. IEEE Transactions on Knowledge and Data Engineering, 1999,11(1):94-107.
Ruan Yaoping, Cohen M S, Pai V. Finding speed bumps: web server performance analysis and anomaly detection via wide spectrum microbenchmarking [EB/OL]. [2005-12-15]. http:∥www.cs.princeton.edu/~yruan/.
Standard Performance Evaluation Corporation. SPEC Web99 benchmark [EB/OL]. [2005-12-15]. http:∥www. spec.org/osg/web99/.
0
浏览量
5
下载量
0
CSCD
关联资源
相关文章
相关作者
相关机构
京公网安备11010802024621