FCB_REPLICA_READ and FCB_REPLICA_WRITE Wait Types in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: IO_COMPLETION Wait TypeRelated pillar: High Availability

Two waits synchronise I/O against database snapshot sparse files, and this page covers both. The definitions are Microsoft’s:

The write goes two ways: a page is pushed into the snapshot just before it changes for the first time in the source database, and pulled when crash recovery runs into a snapshot as it is created. His read examples are both from the hidden snapshot DBCC CHECKDB creates.


Are They a Problem?

Not as contention. Neither is a known bottleneck; our SQL Server 2025 lab had four FCB_REPLICA_WRITE waits in a day, all under a millisecond. Get Wait Statistics does not filter them out. They measure snapshot use: queries against user snapshots, writes to snapshotted databases, and DBCC CHECKDB on busy databases.


When They Do Matter

The case to watch: many snapshots of one busy database. Before a page can change in the source, its original must be pushed synchronously into every relevant snapshot, so updates slow down. List the snapshots and their sources:

SELECT
    s.name AS snapshot_name,
    DB_NAME(s.source_database_id) AS source_database,
    s.create_date
FROM sys.databases AS s
WHERE s.source_database_id IS NOT NULL
ORDER BY s.create_date;

Keep snapshot lifetimes short and the number per database small, and run integrity checks off-peak or on a restored copy. The baseline to monitor is the number of snapshots that exist outside planned use.


The IO Family

These are I/O waits outside the page latch families: bulk file operations, file growth, backups and throttling. The main page is IO_COMPLETION; for reads and writes of data pages, see PAGEIOLATCH_SH.

  • IO_COMPLETIONSynchronous I/O. Waiting for I/O to finish, generally I/O that is not for data pages.The main page for this family
  • ASYNC_IO_COMPLETIONAsynchronous I/O. Bulk file work such as backups reading data files and checkpoints.Worth investigating
  • WRITE_COMPLETIONWrites. A write operation in progress.Worth a look when it climbs
  • FGCB_ADD_REMOVEFile growth. A latch class rather than a wait type, taken for file add, drop, grow and shrink.Worth investigating
  • IO_QUEUE_LIMITI/O throttle. Documented as internal use only; an I/O governance limit.Worth investigating
  • BAD_PAGE_PROCESSSuspect pages. The suspect page logger pacing itself; a corruption signal when present.Worth a look when it climbs
  • DISKIO_SUSPENDSnapshot backup. Waiting to access a file while an external backup is active.Worth a look when it climbs
  • REPLICA_WRITESSnapshot writes. Page writes to database snapshots or DBCC replicas.Worth a look when it climbs
  • FCB_REPLICA_READ / WRITESnapshot file sync. Synchronised reads from, and page pushes into, a snapshot sparse file.Usually noise. This page.
  • IMPPROV_IOWAITBulk load I/O. Waiting for a bulk load I/O to finish.Worth a look when it climbs
  • ASYNC_DISKPOOL_LOCKFile creation. Synchronising parallel threads that create or initialise a file.Worth a look when it climbs

Where To Go Next

These snapshot waits are usually small. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *