华南理工大学学报(自然科学版) ›› 2012, Vol. 40 ›› Issue (1): 159-164.

• 计算机科学与技术 • 上一篇    

局部性强弱的量化方法及其应用

侯昉 赵跃龙 王禹   

  1. 华南理工大学 计算机科学与工程学院,广东 广州 510006
  • 收稿日期:2011-07-26 修回日期:2011-10-22 出版日期:2012-01-25 发布日期:2011-12-01
  • 通信作者: 侯昉(1975-) ,男,在职博士生,广东金融学院讲师,主要从事计算机系统结构、计算机存储系统研究. E-mail:hfhoufang@tom.com
  • 作者简介:侯昉(1975-) ,男,在职博士生,广东金融学院讲师,主要从事计算机系统结构、计算机存储系统研究.
  • 基金资助:

    国家自然科学基金资助项目( 60573145) ; 教育部高等学校博士学科点专项科研资金资助项目( 200805610019) ;广州市科技计划项目( 2010Y1-C681)

A Quantitative Approach to Locality Strength and Its Application

Hou Fang  Zhao Yue-long  Wang Yu   

  1. School of Computer Science and Engineering,South China University of Technology,Guangzhou 510006,Guangdong,China
  • Received:2011-07-26 Revised:2011-10-22 Online:2012-01-25 Published:2011-12-01
  • Contact: 侯昉(1975-) ,男,在职博士生,广东金融学院讲师,主要从事计算机系统结构、计算机存储系统研究. E-mail:hfhoufang@tom.com
  • About author:侯昉(1975-) ,男,在职博士生,广东金融学院讲师,主要从事计算机系统结构、计算机存储系统研究.
  • Supported by:

    国家自然科学基金资助项目( 60573145) ; 教育部高等学校博士学科点专项科研资金资助项目( 200805610019) ;广州市科技计划项目( 2010Y1-C681)

摘要: 为实现局部性强弱分析的定量化,分析了进程工作集发生迁移时,现有工作集管理算法因未考虑局部性强弱因素而反复调整驻留集大小从而导致系统发生颠簸的现象,提出了采用采样周期内使用位求和结果和缺页次数作为指标的局部性强弱量化计算方法,并对该方法进行了算法设计和系统实施. 结果表明,文中量化计算方法在不影响系统性能的情况下,减轻了系统进程切换时各进程工作集大小的波动,降低了系统资源需求,说明该算法是有效的.

关键词: 体系结构, 局部性, 量化方法, 驻留集

Abstract:

As the existing working-set management algorithms ignore the locality strength in the procedure of working set adjustment,the resident set size is frequently adjusted so that the thrashing problem is inevitable. In order to solve this problem and to quantitatively analyze the locality strength,a quantitative approach to locality strength is proposed,which uses the sum of use bits and the number of page faults in a sampling period as two calculation indexes. Then,the corresponding algorithm of this approach is designed and the approach is systematically implemented. Experimental results show that the proposed quantitative approach helps to alleviate the thrashing of working set size in process switching and reduce the demands for system resources without degrading the performances of the whole system.

Key words: architecture, locality, quantitative method, resident set

中图分类号: