Accelerating Filesystem Checking and Repair with pFSCK

Tuesday, February 25, 2020 - 11:30 am12:00 pm

David Domingo and Sudarsun Kannan, Rutgers University; Kyle Stratton


File system checking and recovery (C/R) tools play a pivotal role in increasing the reliability of storage software identifying and correcting file system inconsistencies. However, with increasing disk capacity and data content, file system C/R tools notoriously suffer from a long-running time. We posit that the current file system checkers fail to exploit CPU parallelism and high throughput offered by modern storage devices.

To overcome these challenges, we propose pFSCK, a tool that redesigns C/R to enable fine-grained parallelism at the granularity of inodes without impacting the correctness of C/R’s functionality. To accelerate C/R, pFSCK first employs data parallelism by identifying functional operations in each stage of the checker and isolating dependent operation and their shared data structures. However, fully isolating shared structures is infeasible, consequently requiring serialization that limits scalability. To reduce the impact of synchronization bottlenecks and exploit CPU parallelism, pFSCK designs pipeline parallelism allowing multiple stages of C/R to run simultaneously without impacting correctness. To realize efficient pipeline parallelism for different file system data configurations, pFSCK provides techniques for ordering updates to global data structures, efficient per-thread I/O cache management, and dynamic thread placement across different passes of a C/R. Finally, pFSCK designs a resource-aware scheduler aimed towards reducing the impact on other applications shar- ing CPUs and the file system. Evaluation of pFSCK shows more than 3.72x gains of FSCK and 1.71x over XFS checker that provides coarse-grained parallelism.

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

@conference {246562,
author = {David Domingo and Sudarsun Kannan},
title = {Accelerating Filesystem Checking and Repair with {pFSCK}},
year = {2020},
address = {Santa Clara, CA},
publisher = {USENIX Association},
month = feb

Presentation Video