欢迎访问中国科学院大学学报,今天是

中国科学院大学学报 ›› 2022, Vol. 39 ›› Issue (2): 275-282.DOI: 10.7523/j.ucas.2020.0027

• 电子信息与计算机科学 • 上一篇    

用户态并行文件系统性能优化

邓通亮1,2,3, 陈宸1,2,3, 殷树1   

  1. 1 上海科技大学信息科学与技术学院, 上海 201210;
    2 中国科学院上海微系统与信息技术研究所, 上海 200050;
    3 中国科学院大学, 北京 100049
  • 收稿日期:2020-03-23 修回日期:2020-05-11 发布日期:2021-06-01
  • 通讯作者: 殷树
  • 基金资助:
    国家自然科学基金 (61402158) 资助

On the efficiency of user-level parallel file systems

DENG Tongliang1,2,3, CHEN Chen1,2,3, YIN Shu1   

  1. 1 School of Information Science & Technology, ShanghaiTech University, Shanghai 201210, China;
    2 Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China;
    3 University of Chinese Academy of Sciences, Beijing 100049, China
  • Received:2020-03-23 Revised:2020-05-11 Published:2021-06-01

摘要: 用户态文件系统框架(filesystem in user space,FUSE)因其相对简单快捷的开发特性被广泛应用于新型文件系统的开发过程中。但是FUSE框架在处理应用的I/O请求时存在多次用户态和内核态切换、上下文切换以及额外的内存拷贝操作,造成一定的性能开销。为减小FUSE对I/O性能的影响,提出一种绕过FUSE的方案。该方案利用动态链接技术,通过将I/O请求的接收和转发功能实现在用户空间的方式消除FUSE框架的接入。该方案针对并行日志文件系统进行了应用实现和测试,结果表明,该方案对于大块读操作的性能提升最大可达131%,对小块写操作的性能最大提升5倍左右。

关键词: 文件系统, 存储系统, FUSE, 并行文件系统

Abstract: A common and easier way to deploy parallel filesystem is using the user-space file system framework (FUSE). However, it serves as an I/O interposition layer which crosses user and kernel space that may introduce significant overhead due to the user-kernel mode switches, context switches and additional memory copies. This paper designs a method based on dynamic linking techniques to bypass FUSE, and implements the interposition layer in user space. This method is implemented and evaluated in parallel log-structured file system which is a popular parallel file system for checkpointing. The experiments and evaluation show that it can improve 131% of the read performance when the transfer block size is large, and improve 5 times write performance at small transfer block size and guarantee no significant write performance downgrade in other scenarios.

Key words: file system, storage system, FUSE, parallel file system

中图分类号: