作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

基于可变长分块的分布式文件系统设计与实现

许艳艳 1,雷迎春 2,龚奕利 1   

  1. (1.武汉大学计算机学院,武汉 430072; 2.中国科学院计算技术研究所,北京 100080)
  • 收稿日期:2015-04-20 出版日期:2016-05-15 发布日期:2016-05-13
  • 作者简介:许艳艳(1989-),女,硕士,主研方向为分布式文件系统;雷迎春,副研究员;龚奕利(通讯作者),副教授。
  • 基金资助:
    国家“863”计划基金资助项目(2013AA12A301);国家自然科学基金资助项目(61100020);华为公司创新研究计划基金资助项目。

Design and Implementation of Distributed File System Based on Variable-sized Chunk

XU Yanyan 1,LEI Yingchun 2,GONG Yili 1   

  1. (1.Computer School,Wuhan University,Wuhan 430072,China;2.Institute of Computing Technology,Chinese Academy of Sciences,Beijing 100080,China)
  • Received:2015-04-20 Online:2016-05-15 Published:2016-05-13

摘要: 分布式文件系统受传统磁盘文件系统影响,大多使用固定大小的对象或者块来组织和管理文件。定长的分块不适合随机写或插入写,开销大且性能差,但典型的用户约有25%的文件操作是随机写。针对上述现状,提出一种基于内容的可变长文件分块方法,使用拉宾指纹算法对文件进行分块,并根据文件的内容标识文件块。为更准确地指定写类型,提高写性能,给出与POSIX语义兼容的写接口。通过修改Ceph实现一种新的分布式文件系统VarFS,提供文件的可变长分块并支持新的写接口。实验结果表明,由于减少网络数据传输量,VarFS在随机写延迟和带宽消耗量上比Ceph减少了1个~2个数量级。

关键词: 固定长分块, 可变长分块, 分布式文件系统, 随机写, 元数据服务器

Abstract: Inherited from traditional disk file systems,most Distributed File Systems(DFS) organize and manage files based on objects or chunks of fixed sizes,which is expensive and works poorly for random writing or inserting.But approximately 25% of file operations from a typical user are random writing.In order to change this status,this paper puts forward a file blocking method based on variable-sized contents,and it uses Rabin fingerprint algorithm to block the file and identify it according to its contents.A new writing interface which is semantic compatible with POSIX is proposed to accurately specify the writing type and improve writing performance.It presents a novel DFS named VarFS to implement all the design proposed above through modifying the Ceph.Experimental results show that VarFS can reduce the necessary reading and writing back data of update operation,which consequently alleviates amount of data transfer,accordingly it can achieve 1~2 orders of magnitude less latency and bandwidth consumption than Ceph on random writing and bandwidth consumption.

Key words: fixed-sized chunk, variable-sized chunk, Distributed File System(DFS), random writing, Metadata Server(MDS)

中图分类号: