This paper introduces FalconFS, a distributed file system (DFS) specifically engineered to handle the massive metadata demands of modern deep learning (DL) pipelines. By moving away from traditional client-side caching and adopting a "stateless-client" architecture, FalconFS eliminates the performance bottlenecks that occur when training models on billions of small files.
TL;DR
FalconFS is a distributed file system designed for the massive, random-access metadata demands of deep learning. By shifting path resolution from the client to the server and using a stateless-client architecture, it eliminates the "lookup tax" of traditional systems, achieving up to 12.8x higher throughput in training workloads.
What Problem Does This Paper Address?
Traditional distributed file systems like CephFS and Lustre were designed for general-purpose or high-performance computing (HPC) workloads. They rely heavily on client-side metadata caching. This works well when an application accesses the same files repeatedly (locality), but it falls apart in Deep Learning pipelines for two main reasons:
- The "Lookup Tax" (Request Amplification): DL datasets often contain billions of files in deep directory structures. During training, access is random. If the client's cache isn't large enough to hold the entire directory tree (which can require hundreds of gigabytes of RAM), every file "open" operation triggers multiple network round-trips to resolve the path (e.g., checking permissions for
/, thendata/, thenimages/). - Transient Skewness: Standard DFS often store all files within a single directory on the same metadata server. Because DL tasks often process files directory-by-directory, one server gets overwhelmed while others sit idle, leading to massive load imbalance.
Methods
The authors propose a stateless-client architecture where the client does almost no caching and the server takes over the heavy lifting of path resolution. Key innovations include:
- Lazy Namespace Replication: Every metadata node (MNode) maintains a replica of the entire directory structure (the namespace). This allows any server to resolve a full file path locally without communicating with other servers. Updates are synchronized "lazily" to maintain high performance.
- Hybrid Metadata Indexing: To prevent load imbalance, FalconFS uses filename hashing to distribute files across servers. For edge cases (like "hot" filenames that appear in many directories), it uses an exception table to redirect requests and balance the load.
- Concurrent Request Merging: The servers batch incoming requests into single database transactions. This reduces the overhead of locking and write-ahead logging (WAL), significantly boosting many-client concurrency.
- VFS Shortcut: To remain compatible with Linux without requiring invasive kernel changes, the authors developed a kernel module that "tricks" the Virtual File System (VFS). It intercepts path lookups and sends the full path string to the server in one go, rather than letting the kernel walk the path component-by-component.
Datasets
The researchers evaluated FalconFS using both synthetic benchmarks and real-world traces:
- DL Training Traces: A ResNet-50 model training trace on 10 million files.
- Production Data: A one-year trace from Huawei’s autonomous driving production environment (utilizing 10,000 NPUs).
- Standard Vision Datasets: ImageNet, KITTI, Cityscapes, CelebA, SVHN, and CUB-200-2011.
- General Purpose Traces: The Linux 6.8 source tree and FSL home directory traces.
Key Insights and Ideas
- The Cache is a Liability: In the context of billions of files, the memory required to maintain an effective client-side cache is prohibitively expensive. It is more efficient to treat the client as "stateless" and optimize the server to handle full-path requests.
- Hashing Over Hierarchy: By breaking the strict tie between directory hierarchy and physical storage (via filename hashing), the system naturally avoids the "hot directory" problem that plagues traditional DFS.
- Server-Side Batching: Because DL clusters often have a high client-to-server ratio (e.g., 40:1), the server is the ideal place to merge requests and amortize the cost of metadata operations.
Key Results
- Throughput: FalconFS achieved up to 5.72× higher throughput for small file I/O compared to CephFS and Lustre.
- Training Speed: In end-to-end ResNet-50 training, FalconFS delivered up to 12.81× higher throughput than CephFS.
- Accelerator Utilization: While other systems saw GPU/NPU utilization drop as the cluster scaled, FalconFS maintained over 90% utilization even with 128 accelerators.
- Real-World Proven: The system has been running in a production autonomous driving pipeline at Huawei for over a year and has been open-sourced.
Limitations and Future Work
- Symbolic Links: The current implementation does not support symbolic links because the client-side shortcutting mechanism does not follow them.
- Nested Mounts: FalconFS does not currently support nested mount points within its own file system.
- Live Migration: While the system supports cluster reconfiguration (adding/removing nodes), it does not yet support "live" migration; it must briefly stop serving requests to ensure consistency during a resize.
- Rmdir Overhead: Deleting directories is relatively expensive because the "lazy" replication requires invalidating the directory record across all metadata nodes.
Summary updated