x

Same Query, Different Servers, Different Performance. Now What?

I have 2 cluster servers with 2 nodes; having Single SQL instance installed with below configuration. Production 2.6 GHZ Processor 64 GB RAM 4 CPU SQL MAX Memory 52 GB MAXDOP 1

Pre-Production 2.6 GHZ Processor 64 GB RAM 2 CPU SQL MAX Memory 52 GB MAXDOP 1

I have 1 query which is executing within 30 Sec on pre-production but taking more than 150 Sec in production.

Pre-prod DB is restored from production server, having updated stats & indexes. Tested performance of query out of office hours, but giving same result. Execution plans looks similar on both servers. All SP_CONFIGURE parameters also same.

Only thing is on Pre-prod hyperthreding is set to 2; while on prod is 1. Meansboth have same logical processors i.e. 4

Can you help me how to find out root cause of slow performance on Production server.

more ▼

asked Aug 11 at 09:13 AM in Default

avatar image

ahaware
1

Are they both physical servers?

Aug 11 at 01:04 PM JohnM
(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first
more ▼

answered Aug 11 at 09:20 AM

avatar image

Kev Riley ♦♦
66k 48 63 81

It is balanced on both servers

Aug 11 at 09:26 AM ahaware

That could account for the difference. One might be 'balancing' higher than the other - set to High Performance and recheck.

Aug 11 at 09:31 AM Kev Riley ♦♦

Same on both servers. Min 5% & Max 100%

Aug 11 at 09:54 AM ahaware

Yes but the servers have different processors, so the 'same' setting will give different results. Use High Performance (min 100% max 100%) to see if it makes any difference. Also be aware that some servers control power at the BIOS level too.

Aug 11 at 10:59 AM Kev Riley ♦♦

Setting this on Production is considered to be a best practice - you may see a difference on Production, but for the better!

Aug 11 at 12:19 PM Kev Riley ♦♦
(comments are locked)
10|1200 characters needed characters left

What happening if you run 2 times the query on both servers? The running time is different in 2th time?

more ▼

answered Aug 23 at 10:14 AM

avatar image

salliven
1

Getting same execution time even after running same query multiple times

Aug 23 at 11:05 AM ahaware

Okay. And the session settings are same on both case? Maybe it is different.

Aug 24 at 02:15 PM salliven

Which session settings?

Aug 29 at 10:23 AM ahaware

The connected session settings on both case.

For example:

 set quoted_identifier on
 set ansi_null_dflt_on on
Sep 04 at 05:56 AM salliven
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x309
x8

asked: Aug 11 at 09:13 AM

Seen: 70 times

Last Updated: Sep 04 at 05:57 AM

Copyright 2017 Redgate Software. Privacy Policy