|
Few weeks ago, I have shifted my database (MS Sql 2005) to a new high configured windows server. BUT it seems slower than previous one. When I restore database from backup file in local disk , it takes 30 minutes whereas the time was only 10 minutes in my previous sever. My database size is now 3.5 GB. and also sql query is slower then. I am looking for the solutions / advice. Here I mention the hardware configuration below for the bothe servers: OLD Server: Intel Xeon 2.50 GHz 4GB RAM Windows Server Standard Edition 2003 NEW SERVER: Intel Xeon 2X2.46 GHz (2 Processors) 32 GB RAM 16 core RAID 5
(comments are locked)
|
|
Check the server configuration to see if it's been set up with the power saving mode enabled. It's a very common factory setting (for some insane reason) and it will seriously negatively impact performance.
(comments are locked)
|
|
There could be an issue with the new server. The best possible way could be to re-store the same backup on the old server and see the difference. Depending upon the server type, these following articles by Brent Ozar may help How Fast is Your SAN? (Or How Slow?) Another factor to look at could be the number of VLFs. Did you do some activity before migration, which could have increased the Log File considerably. The higher the number of VLFs, the longer it will take to restore.
(comments are locked)
|
|
Another idea: has the executing sql server account the right to perform instant file initilization? Take a look here: http://msdn.microsoft.com/en-us/library/ms175935%28v=sql.105%29.aspx That should shorten the restore time a bit. +1, Log files are not benefited from instant file initialization, log files are always initialized by filling Zeros.
Jul 19 '12 at 09:51 AM
Cyborg
(comments are locked)
|
|
You mention the new server is RAID5 but not what the configuration was on the old. You could run into issues depending upon how your disk is configured. Do you have a single presented lun that has been split into multiple drives? Are your backups being stored on the same disk as the database file? How many spindles on the new versus the old? How about your RAID controller, is it single or multi-channel? Is write caching enabled for the RAID controller? However these settings are I would be seriously concerned. A 3.5GB database restores very quickly on my laptop, there's no way it should take that long on a server. I'd recommend capturing some perfmon statistics while doing your restore to help identify contention.
(comments are locked)
|
|
Does your new SQL server have the right RAM settings? You may have too little and are then suffering accordingly.
(comments are locked)
|

