期刊文献+

Hash表与B^+树相结合的高效目录索引结构 被引量:7

An Effective Directory Index Framework Taking Advantages of Hash Table and B^+-Tree
下载PDF
导出
摘要 针对目前文件系统目录结构在处理大量文件,尤其是单个大目录时文件创建、查找和删除速度较慢的问题,提出一种面向Web服务器存储系统的目录索引结构。该结构利用Hash函数对变长关键字的压缩特性和Hash表的O(1)查找复杂度进行文件名的快速查找,并使用B+树高效索引目录的子索引节点。测试结果表明,该结构能够快速地处理大量文件,单个大文件夹下的文件查找速度相比Ext3提高了40%,文件创建、删除速度比Ext3和Reiserfs加快了73%。 A new directory index framework that takes the advantages of both hash functions and B+-tree is proposed for storage system of Web server to solve the problem that existing directory indexing structures in file systems result in significant delays when they are used to process a large number of files or directories,especially when there are over hundreds of thousands of files in a single directory.The framework adopts hash functions to normalize file names with variable length to integers,thus file names can be found through a hash table in O(1) complexity.On the other hand,inode numbers of files in a directory are indexed by a B+-tree with high fanout to support fast insertion or removing operations.Benchmark of a simple implementation reveals that the proposed framework can easily hand up to half a million files in a single directory,and can significantly improve performance,that is,its speed in searching entries is faster by at least 40% than Ext3,and in creating or deleting files is faster by at least 73% than Ext3 or Reiserfs.
出处 《西安交通大学学报》 EI CAS CSCD 北大核心 2013年第4期105-111,共7页 Journal of Xi'an Jiaotong University
基金 国家"863计划"资助项目(2011AA01A102) 国家科技支撑计划资助项目(2011BAH16B03) 中国科学院重点部署项目(KGZD-EW-103-2)
关键词 文件系统 目录索引 哈希表 B+树 file system directory index hash table B+-tree
  • 相关文献

参考文献13

  • 1AGRAWAL N,BOLOSKY W J,DOUCEUR J R,et al.A fiveyear study of filesystem metadata[J].ACM Transactions on Storage,2007,3(3): 1-32. 被引量:1
  • 2ZADOK E,BADULESCU I.Usenetfs: a stackable file system for large article directories [EB/OL].(2000-07-10) [2012-03-01].http:∥www.cs.columbia.edu/~library/TRrepository/reports/reports1998/ cucs02298.pdf. 被引量:1
  • 3PEARSON O.Squid: a user’s guide [EB/OL].[2012-03-05].http:∥oss.org.cn/man/newsoft/squid/bookfullhtml/bookfull.html. 被引量:1
  • 4Webmaster World.How to speed up directory reading? [EB/OL].(2008-03-05) [2012-03-06].http:∥www.webmasterworld.com/apache/3592129.htm. 被引量:1
  • 5RMY C,THEODORE T,STEPHEN T.Design and implementation of the second extended file system [C]∥Proceedings of the First Dutch International Symposium on Linux.Amsterdam,Netherlands: State University of Groningen,1994: 16. 被引量:1
  • 6PHILLIPS D.A directory index for Ext2 [C]∥Proceedings of the 5th annual Linux Showcase & Conference.Oakland,California,USA: USENIX Association,2001: 173-182. 被引量:1
  • 7BUCHHOLZ F.The structure of the Reiser file system [EB/OL].(2006-01-26) [2012-03-01].http:∥homes.cerias.purdue.edu/florian/reiser/reiserfs.php. 被引量:1
  • 8Btrfs Project Group.Btrfs design [EB/OL].[2012-03-01].https:∥btrfs.wiki.kernel.org/index.php/Btrfs-design. 被引量:1
  • 9吴丽彬..面向高清媒体的嵌入式存储系统MSFS关键技术的研究[D].中国科学院声学研究所,2009:
  • 10BAEZAYATES R A.Expected behaviour of B+trees under random insertions[J].Acta Informatica,1989,26(5): 439-471. 被引量:1

同被引文献59

引证文献7

二级引证文献14

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部