Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Full DB Backup of filestreamed database slow after restart Expand / Collapse
Posted Tuesday, July 31, 2012 1:52 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, November 17, 2016 10:09 AM
Points: 544, Visits: 1,582
Dear all,

I have a database on SQL Server 2008 R2 enterprise edition whose backup suddenly running slow since a server restart. following are the info

1) Database size is 300 GB. Database contains filestream data. Filestreams contribute to most of the size.

2) Database partcipates in merge replication., but for most of the articles it is a subscriber. There about 50 publishers.

Usually the backup takes 1-3 hours. After a Windows security patch and a server restart, the full backup is taking 30+hours.

Remaining performance of the server appears normal. Replication is performance is also good. Any clue why full backup with filestream data is so slow all of a sudden.? Thanks in advance.

Post #1337718
Posted Tuesday, July 31, 2012 6:18 AM



Group: General Forum Members
Last Login: Today @ 12:17 PM
Points: 17,173, Visits: 32,139
No way to know for sure why you're suddenly seeing slow performance. Can you gather more metrics? Take a look at sys.dm_exec_requests. Can you see the backup process? Is it blocked? What is the latest wait state on it? Does it show a percentage complete? This information will help you troubleshoot what's going on.

"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server Query Performance Tuning
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1337839
Posted Thursday, August 2, 2012 7:07 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Sunday, November 20, 2016 3:52 AM
Points: 927, Visits: 2,039
"Database is slow" is similar to saying "the internet's broken" when you cant connect to wifi. There are many many potential causes. We need to do is narrow it down the statements to "this specific query is now running x times slower, or something like that.

you have given one exampe with your backup now taking 30 hours. Now we have a reproducable issue we can test and debug against. Next step is to find out why this is slow.

In SQL Server your first port of call for performance issues should always be the wait stats.

Paul Randall has a great article that comes with a query to look at your wait stats.

I would run this, store the results.
Kick off your backup thats taking 1000% more time than usual.
Intermittently run the wait stats script and store results to a table.
Do a delta to check what wait stats are causing you the most pain when this backup is running.

This may not give you the actual cause but at the very least it will point you in the right direction to investigate the issue further.

I use this process for absolutely all performance issues on SQL Server as a frist step for debugging and analysis.

If your still having trouble after you get the wait stats, post them here.
Post #1339124
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse