Similarity-Aware Client-Side Reordering for Server-Side Storage Compression in Distributed File Systems

Yuanhong Huang, Zicong Chen, Yili Ma, Jinwu Yang, Yulong Chen, Guangming Tan, Dingwen TaoarXiv 2026 · arXiv

TL;DR

This paper introduces a client-side framework that reorders data blocks before they are sent to a distributed file system's storage server. By co-locating similar blocks within the same compression record, it boosts storage efficiency by up to 42.9% without requiring any modifications to the server-side compression engine.

What Problem Does This Paper Address?

Modern distributed file systems (DFS) like SkyFS or Ceph often use server-side compression (e.g., Zstandard) to manage exploding data volumes. However, these systems compress data in discrete chunks called "records" (typically 128 KB).

The effectiveness of standard compression algorithms like LZ77 depends on compression locality: the ability to find matching byte sequences within a limited history buffer. If similar data blocks are written far apart logically—which is common in database files or VM images—they end up in different compression records. Because records are compressed independently, the compressor cannot "see" the similarity across record boundaries, leading to wasted space.

Fig. 1. Compression-locality problem and opportunity. In the original layout, similar logical blocks occupy different compression records. Record-aligned reordering places them in a common compression scope, while a recovery map preserves logical order.

Prior solutions for data reordering were often offline or required replacing the storage server's compressor. This paper seeks an online, transparent solution that works with existing storage backends.

Methods

The authors propose a Similarity-Aware Client-Side Reordering framework implemented in the SkyFS distributed file system with an OpenZFS backend.

  1. Bounded Windowing: The client accumulates logical writes in 64 MB "reordering windows." This allows for similarity analysis without needing to see the entire file.
  2. Adaptive Strategy Selection: Data characteristics can change within a single file. The framework periodically (every 16 windows) uses a two-stage stratified sampling technique to test different similarity detectors (Odess, Palantir, and Argus) against a "no-reorder" baseline. It selects the best-performing strategy for the next phase of data.
  3. Greedy Grouping & Packing: Once a strategy is chosen, the client groups similar 8 KB blocks. Groups that reach the 128 KB record size are "sealed" and written. Smaller groups are packed using a best-fit decreasing algorithm to minimize fragmentation.
  4. Logical-Order Recovery: To ensure reads remain transparent, the client generates a compact Physical-to-Logical (P2L) map for each window. This map is stored as a small "sidecar" object. During reads, the client uses this map to put reordered blocks back into their original logical positions.
Fig. 2. System architecture and numbered write/read paths. Solid arrows denote ap- plication data, and dashed arrows denote selection and completion metadata.

Datasets

The framework was evaluated on four diverse datasets:

  • TAR: Linux systemd logs and GNU source code (5.36 GB).
  • VM: Eight virtual machine images (28.01 GB).
  • IBD: MySQL InnoDB database files with internal compression disabled (24.50 GB).
  • EXAFEL: Scientific light-source data (1.11 GB).

Key Insights and Ideas

  • Layout Matters More Than the Algorithm: The paper demonstrates that where you put the data is just as important as how you compress it. Even a top-tier compressor like Zstd is hamstrung by a poor physical layout.
  • Client-Side Intelligence, Server-Side Simplicity: By moving the reordering logic to the client, the storage server remains "dumb" and standard. This makes the framework easy to deploy on existing infrastructure like OpenZFS.
  • The Necessity of Adaptation: A single similarity detection algorithm isn't always the best. The authors found that the "winning" detector shifted between Palantir, Odess, and Argus as a VM write progressed. Periodic re-selection saved an additional 8.9% in storage compared to picking one strategy at the start.
  • Avoiding Read Amplification: Simply increasing the server's record size (e.g., to 1 MB) can improve compression but destroys random-read performance because the server must decompress 1 MB just to read 8 KB. The proposed reordering achieves better compression while keeping records at 128 KB, maintaining high IOPS.

Key Results

  • Storage Savings: The "Proposed" adaptive method achieved the highest compression ratios across all datasets, reducing physical storage by 42.9% on database files (IBD) and 35.0% on VM images compared to the logical-order baseline.
  • Read Performance: Sequential read throughput remained at 94–108% of the baseline. Random-read IOPS were also well-preserved, retaining 91–99% of baseline performance.
  • Write Overhead: The primary cost is the CPU time required for layout construction on the client. Write throughput was 70.8–81.1% of the baseline at high concurrency (64 threads). However, at very low concurrency, the reduced time spent on server-side compression actually allowed the reordering framework to slightly outperform the baseline.

Limitations and Future Work

  • Workload Specificity: The current prototype is optimized for large-file sequential writes and appends. It does not yet support arbitrary in-place overwrites or concurrent modifications to the same file.
  • CPU Bottleneck: Layout construction is the dominant write-path cost. Future work will focus on optimizing detection and grouping algorithms to reduce this overhead.
  • Small Files: The 64 MB windowing approach is less effective for very small files, which may require different grouping strategies.

Summary updated

Abstract

As growing data volumes strain the capacity of distributed file systems, server-side storage compression transparently reduces disk usage, but its effectiveness is limited when similar blocks land in separate compression records and cannot share matches. We present a client-side reordering framework that transforms the physical block layout before persistence, so that related blocks are co-located within the same compression scope without replacing the existing storage-server compressor. It operates on bounded reordering windows, periodically selects among candidate layouts via lightweight compression of sampled data, and recovers the original logical order during reads with compact window-local metadata. We implement the framework in the SkyFS distributed file system, using the Zstandard (Zstd) compressor on the OpenZFS storage backend. Results on diverse datasets show that the framework reduces physical storage by up to 42.9% relative to logical-order writes, while achieving 94-108% of baseline sequential-read throughput and 91-99% of random-read IOPS. Client-side layout construction is the primary additional write cost, showing that adaptive similarity-aware reordering substantially improves storage efficiency with acceptable overhead.
BibTeX
@misc{huang2026similarity,
  author = {Yuanhong Huang and Zicong Chen and Yili Ma and Jinwu Yang and Yulong Chen and Guangming Tan and Dingwen Tao},
  title = {{Similarity-Aware Client-Side Reordering for Server-Side Storage Compression in Distributed File Systems}},
  year = {2026},
  eprint = {2611.22847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22847},
}
Figure