Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Performance tuning for ORM application for 2008R2 migration


Performance tuning for ORM application for 2008R2 migration

Author
Message
chris-320654
chris-320654
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 364
Hi Asit,
The server I am testing is brand new with nothing else running on it. There are definately no other processes running on it as I am the only one with access.

To recap - the problem is that I am migrating from an old sql 2005 box to new hardware and a 2008R2 install. We havent migrated yet as the new server is performing slower than the old.

Thanks
Chris
dgray1
dgray1
SSC-Enthusiastic
SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)

Group: General Forum Members
Points: 103 Visits: 553
Hi Chris,

Can you see any bottlenecks on the actual server its self using perfmon?

Are the CPU's in powersaving mode (need to check OS & Bios)?

Thanks

Dan



Dave Morrison
Dave Morrison
SSC-Enthusiastic
SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)

Group: General Forum Members
Points: 119 Visits: 242
Could this be a network traffic issue? If the run the same query on the new and old server do they both return in roughly the same amount of time?

Is the new server on the same switch / sub net etc as the old one?
Grant Fritchey
Grant Fritchey
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17635 Visits: 32268
Other suggestions are to validate the memory configuration and the disk alignment. I've posted this to #sqlhelp on Twitter.

OK. Stepping back for a minute. What kind of monitoring do you have in place? Can you see where the slow down is occurring based on the metrics?

Another option, can you capture a trace on the old server and then play it back on the new server? How does that perform?

Finally, I ran into a number of application side issues, in and around connections, when moving from 2000 to 2005. Same to 2008 from 2000. Has anyone examined the code to see what connection settings it's using are within best practices for 2008. Also, have you updated the connection DLLs since you're on a new version of SQL Server? It's possible the problem isn't on the server at all.

----------------------------------------------------
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 and SQL Server Execution Plans
Product Evangelist for Red Gate Software
John.Sansom
John.Sansom
SSC-Addicted
SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)

Group: General Forum Members
Points: 433 Visits: 1558
I would step back a bit and take more of a top down approach. What exactly is slower about the 2008 environment, I mean apart from the overall execution time of course :-) Let's get specific about where you are seeing the slowdown. Start by looking at the server Wait Types for the environment and then drill down from there.

As an aside, the suggestion to check the server is using the High Performance Power Plan is a very good one. I have seen this catch people out and restrict server performance on a number of occasions.


John Sansom (@sqlBrit) | www.johnsansom.com
ALZDBA
ALZDBA
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6984 Visits: 8839
Until now, the obvious question has not been raised :

Is your SQLInstance on the latest service pack ? How to obtain ...

Select  Serverproperty('ProductVersion') as ProductVersion
, Serverproperty('ProductLevel') as ProductLevel
, Serverproperty('IsClustered') as IsClustered



Johan


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


"press F1 for solution", "press shift+F1 for urgent solution" :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
John.Sansom
John.Sansom
SSC-Addicted
SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)

Group: General Forum Members
Points: 433 Visits: 1558
ALZDBA (6/15/2012)
Until now, the obvious question has not been raised....


Perhaps it's not that obvious then eh ;-)


John Sansom (@sqlBrit) | www.johnsansom.com
chris-320654
chris-320654
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 364
I have encouraging news! The CPU powersaving mode was enabled and setting this to High Performance mode did improve performance significantly on the new box.
Rather than running the app each time I have a basic powershell script that selects records in a loop and it was running at ~1400 selects/sec and now has hit just over 2000 /sec. I can't believe servers default to power saving mode!

While this news is encouraging, it is still not beating our 4 year old server which comfortably does 2400 selects /sec.

These tests are all being run locally on the box so network traffic can be ruled out.

I have been monitoring the basic perfmon (CPU, page faults, disk idle, disk queue, cache hit ratio, etc) nothing stands out showing the system is stressed. Profiler traces have a large impact on performance and dont tell me anything I dont know (although I may not be tracing the right thing!)

The app does use a connection string with a SQL login but does use connection pooling so I dont think this is having any tangable impact. Also I am doing my select test in powershell which is using 2008 provider.

Should I see anything in the Wait Types if these are very simple selects looking up on a clustered index, the entire database is in RAM anyway (cache hit ratio 100%) and the server is otherwise idle?

I am open to suggestions of what I need to look at in profiler or perfmon to better get an idea of what is causing the slowdown...

Thanks again for the help so far.

ProductVersion 10.50.2500.0
ProductLevel SP1
IsClustered 0
dgray1
dgray1
SSC-Enthusiastic
SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)

Group: General Forum Members
Points: 103 Visits: 553
OK cool, glad you are getting there. The power saving is a bit of a joke, if people wanted a lower speed machine, surely they'd save the cash & buy a cheaper server as opposed to hamstringing a decent box...

On some server hardware (can't remember which models) you need to check the power saving in the bios as well as windows. The easiset way can be to download cpuz & see what speed the cpu's are running at.

Thanks

Dan



John.Sansom
John.Sansom
SSC-Addicted
SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)

Group: General Forum Members
Points: 433 Visits: 1558
Good stuff, moving in the right direction.

Have you compared the execution plan for your PowerShell script executions on both servers? Are they the same?


John Sansom (@sqlBrit) | www.johnsansom.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search