Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL disk performance

Posted on 2013-01-07
7
Medium Priority
?
307 Views
Last Modified: 2013-01-14
I need to look in to an SQl LUN performance issue, the LUN is served by an EMC CX4-240 SAN.
my issue is that SQl performance is poor, the SQl server is robust enough for the workload i.e. CPU utilization is at about 25% Memory 53%.
however on the storage side when I look at MS counters using prefmon.exe most of the counter like queue, Disk transfer per/sec average disk bytes disk write are all at 100% at all times.
I ran an SQl backup to NULL so I could estimate my storage performance and the the process completed with the speed of 49.5 MB/sec.
I ran the same SQL backup to NULL on a lab system on an ESX server and storage on the same ESX at a much faster speed of 120.3 MB/sec.
how can I pinpoint the source of this performance bottleneck, the SAN people are telling me that the SAN is solid and all I can see on the SQl server side points to disk issue.
any help would be appreciated.
0
Comment
Question by:atorex
  • 4
  • 2
7 Comments
 
LVL 43

Expert Comment

by:Eugene Z
ID: 38753199
check the EMC perform graph; check with EMC if you are using FAST and what about emc  saturation?

based on the EMC stats check what is running on sql (probably sql backups):

if backups try to use backup compression, different times of  the backup execution maybe also you can check if your sql server has regularly running DB maints jobs: reindex; checkdb; update stats, etc..
see what queries are running when you got the problems  -- you may have some select into (for example)  and need to tune tempdb ; maybe you need to put your DBs on fast drives (fiber)..
check with EMC what you have? check the running code that may need optimization, check your sql server configuration
\setup..
and post what you found
0
 

Author Comment

by:atorex
ID: 38753236
SQL is not the issue, the slow or high I/O is basically 24/7 same performance on the drives, the EMC has 4 GB  fiber channels. My issue is just I/O we have gone over all aspects of SQL, indexes and optimal query and so on still same issue I/O is maxed out.
0
 
LVL 43

Expert Comment

by:Eugene Z
ID: 38753258
if sql server is not  the issue ..not EMC issue .. please clarify what "I/O is maxed out. " in your case?
where do you see it ? how do you know?

maybe drives too slow? are you on RAID 5?
do you have all disks  online\no rebuild\etc. ?

maybe you need to add more emc "brains" ? what did emc say? maybe you need upgrade the server firmware? is it VMware or physical server? is it for all servers or just specific? did just start? are you running Antivirus there ? can you check the AV setting?
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:atorex
ID: 38754365
Sorry, it may be EMC thats what I think and am looking for a way to confirm or perhaps prove us wrong in that assumption. onb the OS looking at harware performance what we see is a slow write hard drive system, I would like to proove this to the SAN techs I dont know what if anything they have looked at but from my perspective that is the issue ( we may not be correct in that assumption) but all we can see points to some disk sytem bottleneck. May be a slow disk as you indicated or busy array or some other cause, i dont know.
I ran this command on 2 equal systems with the exceptiom of hardware and the result was sugnificantly faster on the lesser system.
backup database MyDB to disk = 'NUL:'  
BACKUP DATABASE successfully processed 114622090 pages in 18095.621 seconds (49.486 MB/sec).

the result above is on the production sytem showing 49.5 MB/sec on the lab sytem the result was 120 MB/sec.


the production server is hardware the lab system is on ESX i 5.1, my problem is I'm not  in the office with issue and dont have direct access to the EMC unit nor do I have expetise to do much on it. I may have to turn it over to the SAn boys but having issues proving it to them!!!
0
 
LVL 10

Accepted Solution

by:
millardjk earned 2000 total points
ID: 38754484
You've specified the CX4, but haven't indicated:
How many LUNs are supporting SQL?
What is the composition of the RAID group supporting the LUN(s), ie, RAID type, number and type of spindles, additional (competing) LUNs on the group (or the SAN itself).
While the CX4 is 4Gb/s, is the host? And is the switch?

Knowing the details, one can calculate the maximum theoretical performance of (non-cached) storage subsystems.

One other test: in the lab system that does backups >2x faster, does the SQL app perform correspondingly better? The backup test isn't going to use the same workload as the production application: backup is essentially a sequential, large-block read; your app is more likely to be 30-50% random & 20-30% writes of varying access sizes (averaging 64K?).
0
 

Author Comment

by:atorex
ID: 38754515
Let me see if I can get that info from the SAN boys
0
 

Author Closing Comment

by:atorex
ID: 38774456
We had EMC look at the SAN and they will work on the sytem
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question