Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««1234»»»

Performance tuning for ORM application for 2008R2 migration Expand / Collapse
Author
Message
Posted Friday, June 15, 2012 1:59 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, July 25, 2014 9:29 AM
Points: 35, Visits: 320
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
Post #1316374
Posted Friday, June 15, 2012 4:21 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 27, 2014 7:01 AM
Points: 103, Visits: 480
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



Post #1316463
Posted Friday, June 15, 2012 4:28 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, May 14, 2014 3:48 AM
Points: 92, Visits: 201
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?
Post #1316468
Posted Friday, June 15, 2012 4:30 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:13 AM
Points: 15,527, Visits: 27,909
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 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1316470
Posted Friday, June 15, 2012 4:54 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, June 18, 2014 10:33 AM
Points: 344, Visits: 1,543
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
Post #1316489
Posted Friday, June 15, 2012 5:46 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 12:40 AM
Points: 7,001, Visits: 8,439
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

- 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"


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me but most of the time this is me
Post #1316519
Posted Friday, June 15, 2012 5:47 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, June 18, 2014 10:33 AM
Points: 344, Visits: 1,543
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
Post #1316521
Posted Friday, June 15, 2012 7:01 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, July 25, 2014 9:29 AM
Points: 35, Visits: 320
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
Post #1316568
Posted Friday, June 15, 2012 7:09 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 27, 2014 7:01 AM
Points: 103, Visits: 480
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



Post #1316576
Posted Friday, June 15, 2012 7:13 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, June 18, 2014 10:33 AM
Points: 344, Visits: 1,543
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
Post #1316582
« Prev Topic | Next Topic »

Add to briefcase ««1234»»»

Permissions Expand / Collapse