Write-Back vs Write-Through: Choosing a Cache Policy


Write-back and write-through describe when a storage system tells the host that a write is complete. Write-back acknowledges as soon as the data reaches cache; write-through waits until the data is on the disks.

The setting appears on RAID controllers, NAS boxes, virtual machine hosts and even USB drives. In every case the trade-off is the same: speed against the amount of data at risk when power fails.

The Difference in One Sentence

Write-back says "done" early and finishes the write later. Write-through says "done" only after the disk has the data. Everything else follows from that timing.

Write-Back Caching

Write-Through Caching

Two Layers of Cache

On a Windows PC there are often two separate settings:

LayerWhereTypical default
Controller or array cacheRAID card, NAS or storage arrayWrite-back with protected cache
Operating system disk cacheDevice Manager, disk propertiesEnabled for internal disks

Changing one does not change the other. A controller in write-back mode with an unprotected cache is the dangerous combination; a controller in write-through mode is safe even if Windows caches writes, because the controller still forces them to disk before acknowledging.

Which Policy to Use

Changing Policy Safely

Changing the cache policy can require a controller restart or a volume remount. Back up first, especially when the array is already degraded.

Step 1. Connect a destination drive and open Backup and Recovery in Qiling Disk Master.

open Disk/Partition backup before changing cache policy

Step 2. Tick the volume and click the folder icon to set the destination.

select the volume as the backup source

Step 3. Choose a folder on the external drive and click OK.

choose the backup destination folder

Step 4. Click Proceed and confirm the image is readable before you change the controller setting.

disk backup running in Qiling Disk Master

Does write-back risk data on every power loss?

Only for writes still in volatile cache. With a healthy battery or flash-backed cache, the controller can flush them after power returns.

Why did performance drop after a battery warning?

The controller likely switched to write-through to protect data. Replace the battery or capacitor module to restore write-back mode.

Is Windows disk write caching the same thing?

No. It is a separate layer on the host. The controller policy still decides when the array considers a write durable.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it