首页 | 本学科首页   官方微博 | 高级检索  
     检索      

应用控制的Web服务器磁盘缓冲方法
引用本文:李卫,郑卫斌,管晓宏.应用控制的Web服务器磁盘缓冲方法[J].西安交通大学学报,2007,41(2):153-157.
作者姓名:李卫  郑卫斌  管晓宏
作者单位:西安交通大学电子与信息工程学院,710049,西安
基金项目:国家高技术研究发展计划(863计划)
摘    要:针对大数据负载时磁盘I/O阻塞造成的Web服务器性能下降的问题,提出了应用程序控制缓冲(ACC)方法.其核心是,缓冲跟踪模块根据应用程序的文件访问过程来跟踪内核中的文件缓冲状态,缓冲控制模块进行缓冲替换和预取,保持文件缓冲有足够的空闲空间.这样,服务器可在用户空间控制文件缓冲,从而准确判断文件是否在缓冲之中,并依此来调度请求,以提高处理器和磁盘的I/O并行度.同时,服务器可采用适应自身特点的缓冲和预读策略,以提高缓冲的命中率.作为示例,将ACC在Flash服务器中实现,实现中选用了“金字塔选择”缓冲算法.实验表明,在大数据负载下使用ACC的Flash服务器性能有很大的提高,即便在数据负载稍大于物理内存空间的情况下,服务器的吞吐率仍可提高约24.4%,而当数据负载超出物理内存2~3倍时,吞吐率可提高3~4倍。

关 键 词:服务器  应用程序控制缓冲  缓冲替换
文章编号:0253-987X(2007)02-0153-05
收稿时间:2006-06-29
修稿时间:06 29 2006 12:00AM

Application-Controlled Caching for Web Server
Li Wei,Zheng Weibin,Guan Xiaohong.Application-Controlled Caching for Web Server[J].Journal of Xi'an Jiaotong University,2007,41(2):153-157.
Authors:Li Wei  Zheng Weibin  Guan Xiaohong
Abstract: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 in cache 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 this to 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 that the 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.
Keywords:server  application-controlled caching  cache replacement
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号