Journal of Computer Applications ›› 2020, Vol. 40 ›› Issue (9): 2577-2585.DOI: 10.11772/j.issn.1001-9081.2020010077

• Data science and technology • Previous Articles     Next Articles

RUFS: a pure userspace network file system

DONG Haoyu, CHEN Kang   

  1. Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China
  • Received:2020-02-04 Revised:2020-03-01 Online:2020-09-10 Published:2020-03-10
  • Supported by:
    This work is partially supported by the National Key Research and Development Program of China (2016YFB1000504).

纯用户态的网络文件系统——RUFS

董豪宇, 陈康   

  1. 清华大学 计算机科学与技术系, 北京 100084
  • 通讯作者: 陈康
  • 作者简介:董豪宇(1994-),男,云南昭通人,硕士研究生,主要研究方向:文件系统、存储技术;陈康(1976-),男,浙江台州人,副教授,博士,CCF会员,主要研究方向:分布式系统、系统虚拟化、机器学习。
  • 基金资助:
    国家重点研发计划项目(2016YFB1000504)。

Abstract: The overall performance of traditional network file system is affected by software overhead when using high-speed storage device. Therefore, a method of constructing a file system using SPDK (Storage Performance Development Kit) was proposed, and a prototype of a network file system RUFS (Remote Userspace File System) was realized on this basis. In this system, the directory tree structure of file system was simulated and the metadata of file system were managed by using key-value storage, and the file contents were stored by using SPDK. Besides, RDMA (Remote Direct Memory Access) technology was used to provide file system service to clients. Compared with NFS+ext4, on 4 KB random access, RUFS had the read and write bandwidth performance increased by 202.2% in read and 738.9% respectively, and had the average read and write latency decreased by 74.4% and 97.2% respectively; on 4 MB sequential access, RUFS had the read and write bandwidth performance increased by 153.1% and 44.0% respectively. RUFS had significant advantages over NFS+ext4 on most metadata operations, especially on the operation of folder creation, RUFS had the bandwidth performance increased by about 5 693.8%. File system service with lower latency and higher bandwidth can be provided by this system via making full use of the performance advantages of the high-speed network and high-speed storage device.

Key words: file system, Remote Direct Memory Access (RDMA), Storage Performance Development Kit (SPDK), userspace system, Solid State Disk (SSD)

摘要: 针对在使用高速存储硬件时常规网络文件系统会被软件开销影响整体性能的问题,提出了利用存储性能开发套件(SPDK)搭建文件系统的方法,并在此基础上实现了一个网络文件系统RUFS的原型。该系统通过键值存储模拟文件系统的目录树结构以及对文件系统的元数据进行管理,通过SPDK存储文件的内容。另外,利用远程直接内存访问(RDMA)技术对外提供文件系统服务。RUFS相较于NFS+ext4,在4 KB随机访问上,读写吞吐性能分别提高了202.2%和738.9%,读写平均延迟分别降低了74.4%和97.2%;在4 MB顺序访问上,读写吞吐性能分别提高了153.1%和44.0%。在大部分元数据操作上,RUFS相比NFS+ext4也有显著优势,特别是文件夹创建操作,RUFS的吞吐性能提高了约5 693.8%。该系统能够充分发挥高速网络和高速存储设备的性能优势,为用户提供延时更低、吞吐性能更好的文件系统服务。

关键词: 文件系统, 远程直接内存访问, 存储性能开发套件, 用户态系统, 固态硬盘

CLC Number: