How to Know Backup Speed in SQL Server? – Interview Question of the Week #277

Question: Where does SQL Server report a backup’s speed? Read the completion message in SSMS’s Messages tab. It gives the processed pages, elapsed seconds and reported MB/sec.

Grain flowing into a hopper illustrates a measured transfer

The original AdventureWorks2017 example makes the answer easy to see. For a one-off test, use a dedicated filename and a copy-only backup so the test doesn’t change the differential base of your regular backup strategy.

-- Use your sample database and a new, dedicated backup filename.
BACKUP DATABASE [AdventureWorks2017]
TO DISK = N'D:\data\AdventureWorks2017_speed_test.bak'
WITH COPY_ONLY, CHECKSUM;

Change the database and path to your lab’s values. The SQL Server service needs access to the destination. This example does not use INIT or FORMAT to overwrite existing backup sets.

Original completion message reports141169pages in2.860seconds at385.621MBpersecond
Original run: 141,169 pages, 2.860 seconds and 385.621 MB/sec. These are that run’s measurements, not an expected speed for your server.

That message is a backup-operation throughput measure, not an isolated benchmark of the destination disk. Source reads, CPU, compression, checksums, storage and other workload can all affect elapsed time. With compression, the reported processing rate and the number of bytes written to the backup file are different measurements.

Compare like with like: the same database, backup type and options, similar workload, and the same destination. A tiny backup can spend much of its elapsed time on fixed overhead. A change in one run doesn’t by itself identify a bottleneck.

Schedule for recovery needs

Quieter periods can reduce contention for a large full backup. That doesn’t mean log backups should wait for an idle server. Their frequency must meet the business’s recovery requirements, and successful restore tests matter more than a pleasing MB/sec number.

Related posts cover the backup timeline, the restore timeline interview question, seven backup reminders, last full backup time and size, restoring with SSMS, monitoring backups remotely and a database remaining in RESTORING.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.


Discover more from SQL Authority with Pinal Dave

Subscribe to get the latest posts sent to your email.

SQL Backup and Restore, SQL Scripts, SQL Server
Previous Post
Where to Download SQL Server 2019 for FREE? – Interview Question of the Week #276
Next Post
How to Alter Index to Add New Columns in SQL Server? – Interview Question of the Week #278

Related Posts

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.