question

Therealist avatar image
Therealist asked

Why compression backups faster than normal backups?

I would like to know compression backups vs Normal backups? Practically when a backup is compressed there must be some extra work going behind the scene when compared to taking of normal backup (up to my knowledge) because obviously compressed backups take more memory when compared to normal backups then how could compressed backups are faster than normal backups I got asked once i could not find the answer yet?
backupcompressionbackup-compression
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image Grant Fritchey ♦♦ commented ·
This site functions according to votes. For all helpful answers below, show this by clicking on the thumbs up next to those answers. If any one answer lead to a solution, indicate this by clicking on the check mark next to that answer.
0 Likes 0 ·
sp_lock avatar image
sp_lock answered
In my experience it impacts more on the CPU side of things. See [MSDN][1] for other things to consider. Other 3rd party tools like Idera backup allows you to change the compression ratio to best suit the environment, therefore potentially reducing the impact but benefiting from some about of compression. [1]: http://msdn.microsoft.com/en-us/library/bb964719(v=sql.100).aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

VishalhSingh avatar image
VishalhSingh answered
for normal SQL Server Database backup – majority of waiting time spend is on I/O. that's why backups are called I/O intensive operations For Compressed backup – I/O wait is still there. However, the amount of data being backed up (overall size) is less. what this means is the total time spend on waiting for I/O is also less.Though this increase load on CPU i.e. CPU goes higher reducing the backup elapsed time. If you are running with compressed backup you may study the wait-types pattern in your SQL Server environment and you will find out that the BACKUPIO is relatively less than the environment running with Normal sql server backup. You may like to watch this [Video][1] for more knowledge on backup internals [1]: http://technet.microsoft.com/en-in/sqlserver/gg429796.aspx Hope this helps you!
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image Grant Fritchey ♦♦ commented ·
Ah, I was just a little slow.
1 Like 1 ·
VishalhSingh avatar image VishalhSingh commented ·
Lolz...no worries as long as @Therealist has got the answer of his question.
0 Likes 0 ·
Grant Fritchey avatar image
Grant Fritchey answered
It really comes down to the slowest part of the process being what gets written to disk. So yes, a standard backup uses less CPU and less memory, but it writes more to disk. Most systems are suffering from I/O issues and starved for memory. While compression adds to the memory load, it alleviates I/O. This applies to index compression as well as backup compression. And, index compression actually helps with memory issues since the page read from the disk isn't decompressed, but is read in the compressed state.
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

CirqueDeSQLeil avatar image CirqueDeSQLeil commented ·
Agreed. If you can write 1/5th the data to disk, then you are generally going to get a good performance gain for that backup operation.
1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.