Improving F2FS fsync() Latency Through Parallelizing Dnode and Data Page Writeback

Mengyang Ma, Yumiao Zhao, Yunpeng Song, Yi Zhang, Shouzhen Gu*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

F2FS improves performance and longevity through out-place updates, and is now wildly used in the real world. However, additional overhead is introduced to support such design, which leads to a significant performance bottleneck when performing fsync(). Through a series of experimental observations, the paper reveals the impact of dnode page writeback on throughput and fsync() latency. The serial flushing of data pages and dnode pages in the current fsync() design limits the potential for parallel write back and fails to fully utilize the parallelism of flash devices. We then deeply look into the current fsync() design and find the main difficulty of paralleling fsync() is the dependency between dnode pages and data pages. Based on these findings, we propose a new dual-thread design that significantly reduces the total latency of fsync() and improves throughput by pre-allocating data pages. Then, we give two optimizations to reduce overhead. A red-black tree is introduced to cache old block addresses for better node management performance. A linked list is introduced to avoid contention of the page cache for better page performance. We implemented our method in Linux Kernel, and the experimental results show that our dual-thread design can decrease fsync() latency and increase write throughput in different situations.

Original languageEnglish
Title of host publication2024 International Conference on Networking, Architecture and Storage, NAS 2024 - Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
Edition2024
ISBN (Electronic)9798331520502
DOIs
StatePublished - 2024
Event17th International Conference on Networking, Architecture and Storage, NAS 2024 - Zhuhai, China
Duration: 29 Nov 20241 Dec 2024

Conference

Conference17th International Conference on Networking, Architecture and Storage, NAS 2024
Country/TerritoryChina
CityZhuhai
Period29/11/241/12/24

Keywords

  • F2FS
  • fsync
  • multi-thread

Fingerprint

Dive into the research topics of 'Improving F2FS fsync() Latency Through Parallelizing Dnode and Data Page Writeback'. Together they form a unique fingerprint.

Cite this