Software

Can Compression and Deduplication Cut Storage Costs?

A researcher reviewing a visualisation
Illustration
Inside this article
  1. How Compression and Deduplication Work
  2. Which Data Compresses or Deduplicates Well
  3. Measure Billable Storage Savings
  4. Test Performance and Recovery
  5. Check Data Integrity

If a provider charges you to store files, backups, databases, or cloud objects, compression and deduplication can lower the amount of storage billed. Compression encodes data in fewer bytes; deduplication stores matching data blocks once and replaces the other copies with references. Your bill falls only when the provider charges for the smaller stored amount and the savings exceed the cost of using these features.

How much you save depends on the data and storage service. Test a workload that reflects the data and activity you expect, then compare the billed storage and charges before and after. The basics of how computers process and store data help explain why some files shrink more than others.

How Compression and Deduplication Work

Compression finds patterns in data and represents them in fewer bytes. Deduplication finds identical blocks, keeps one copy, and uses references in place of the others. A storage product can use either method or both.

Estimate savings from each method separately. A collection of unique files might compress well, but deduplication has little to remove. Repeated copies of the same files might benefit from deduplication even when their formats do not compress much.

Which Data Compresses or Deduplicates Well

Deduplication has the most to remove when many files or blocks repeat. Microsoft recommends evaluating it for shared folders, home directories, software-development shares, virtual desktop infrastructure, and virtualized backup sets. Backups and source-code repositories can also contain repeated data for deduplication to remove. Microsoft recommends testing deduplication on general-purpose Hyper-V hosts, SQL servers, and line-of-business servers before enabling it for those workloads.

Compression helps when data contains patterns the compression method can encode compactly. Multimedia files and formats such as ZIP, RAR, 7z, and CAB are already compressed, so compressing them further often saves little. They benefit from deduplication only if their stored data contains blocks that match other files and the storage product detects those matches.

Amazon S3 does not automatically deduplicate objects the way some file or block storage systems do. AWS describes S3 deduplication as a separate process: it finds objects that might be duplicates and removes them after review. AWS’s example uses MD5 hashes and does not cover objects encrypted with SSE-KMS or uploaded in separate parts. Review suspected duplicates before deleting them.

A developer working at a computer
Illustration

Measure Billable Storage Savings

First check what the provider bills for: the service, storage class or tier, billing period, and amount of storage billed. A drop in data size does not lower charges if the provider still charges for the same amount of reserved storage. Check the service’s billing rules before counting on less stored data to lower the bill.

For S3, storage charges depend on object size, how long each object stays stored, and its storage class. Older object versions also count toward stored capacity. So compressing an object and uploading a replacement does not remove the charge for an older version if the bucket keeps versions. Storage-class minimums matter too: Standard-IA and One Zone-IA have a 128 KB minimum billable object size and a 30-day minimum storage duration. Glacier Instant Retrieval and Glacier Flexible Retrieval have 90-day minimum storage durations; Glacier Deep Archive has a 180-day minimum.

For FSx for NetApp ONTAP, AWS recommends comparing the amount of logical data stored (LogicalDataStored) with the storage actually used (StorageUsed) to see how much space compression and deduplication save. Background compression and deduplication jobs in the SSD tier can take about 15 days to finish, so measure after they have had time to run. For broader context on cloud and local infrastructure costs, see Cloud vs. On-Premises: Comparing Small-Business Costs.

Test Performance and Recovery

Test a method on representative data before applying it broadly. Compare the amount of billed storage before and after, and check CPU use, memory use, how fast data reads and writes, and how long scheduled optimization jobs take. Check whether these jobs compete with production work or need to run outside business hours. Windows Server guidance says post-processing deduplication jobs need enough CPU and memory, as well as enough time to finish.

Access patterns also matter. Microsoft says Windows Server deduplication works best when programs read data in sequence. Random reads, such as those in database workloads, can add latency, especially on hard disk drives with spinning disks. Storage that uses flash rather than spinning disks is less affected by random reads. Test the reads your workload performs because a storage-efficiency estimate alone does not predict application performance.

Include backups, restores, and migrations in the pilot. Microsoft’s guidance for Data Protection Manager (DPM) says deduplication can slightly slow backup and recovery operations. Measure your own backup and restore windows. A regular file-copy tool can expand Windows Server deduplicated data during copying, so test the migration method you plan to use. Microsoft recommends supported backup-and-restore processes or direct disk moves.

Check Data Integrity

During the pilot, use the storage platform’s checks for data corruption and confirm that you can read restored data. For S3, AWS compares each uploaded object with a checksum you supply, a value calculated from the object’s data. It rejects a mismatch and stores the checksum with the object as metadata for later validation.

Windows Server Data Deduplication can compare chunks of data byte by byte when their hashes, values calculated from the data, match. Microsoft describes this as an integrity feature and notes that enabling it adds significant processing work to the optimization job. Check whether the extra verification fits the workload’s schedule and resource limits.

Keep connecting the dots.