Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

Disk configuration for performance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CD - 11 Jul 2008 02:14 GMT
Hello All,

I would like to have your opinion on what would be the best disk
configuration for our application. Our DB server runs SQL Server 2005
and has 5 physical drives: 4 are SAS (15RPM) and 1 SATA (10RPM). Our
application is transaction intensive and I would like to configure the
drives to maximize the performance of the database. In addition to the
high transaction rate, there is a lot of indexing going on (full-text,
xml, clustered/noncoustered).

Here is what I thought was a good configuration:

SATA Disk 1: OS and SQL Server
SAS  Disk 1:  master db and its transaction logs
SAS  Disk 2: temp db and its transaction log
SAS  Disk 3: application db
SAS  Disk 4: application transaction log

Some questions:
- Do I have any performance gains by having tempdb in its own spindle
and using the SORT_IN_TEMPDB option in my indexes?
- Do I gain any performance splitting the master from tempdb, and the
applocation database?
- What do you think of the aforementioned configuration?

Your opinion  and comments are greatly appreciated

Cheers
CD
Denny Cherry - 11 Jul 2008 03:25 GMT
With only single drives your performance is going to be very limited.
How many transactions per second will you be dealing with?  How big is
the database, how much RAM will you have?  What's the hit cache ratio
look like?  How many scans / second do you have?

With the limited number of disksyou have to work with OS and SQL
should be on the SATA disk.

Tempdb and master can share a disk.
Application database should have two disks
Application log should have it's own disk.

With only single disks you have basically no redundancy guild into the
system.  If any single disk fails you are going to loose the entire
system.

You may find this article of disk configurations useful
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1262122,00.html
You may also find this article on tempdb useful
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1307255,00.html
Same goes for this FAQ http://www.tek-tips.com/faqs.cfm?fid=5747

Denny

>Hello All,
>
[quoted text clipped - 25 lines]
>Cheers
>CD
CD - 12 Jul 2008 21:59 GMT
Hello Denny,

Thank you for your reply and for the references.

I agree with you about the lack or redundancy and the need for
RAID configurations and redundancy in a production environment. We are
using this configuration in a test scenario
to validate whether we can fulfill one specific deployment with
reduced resources (we don't need redundancy for this
test).

The database has 1 million records on one specific table and up to 100
clients. Each client performs 1-2 transactions per second.
Therefore, the estimated transaction rate is 200 transactions/sec.
This database is heavilly used for searches
and we have search tables that are fully indexed (100+ columns and
corresponding indices). Also, full-text search
is enabled and heavilly used.

Our server has 8 GB RAM and is a dual Quad core Xeon. we are running
Windows Server 2003 and SQL Server 2005 Standard.
At this point, I do not have numbers on the cache hit ratio but it is
one of the indicators that we will measure. Is there any target
value that we should aim to?

Also, we will be measuring the average disk queue, since according to
the BOL, we should keep it below 2. Do you agree with this?

I like the configuration that you suggested but have three questions:
- Do you think we would we have any gains by creating our indices with
the SORT_IN_TEMPDB ON and installing tempdb in its oun drive?
- How would you configure the two disks that you suggested for the
application db? Two filegroups?
- Although we are not using at the moment, there might be a need to
use xml in this database for processing via XQuery.
This will require the addition of yet more indices (e.g. Primary xml,
secondary for path, property, and value)  to the database.
Would you change the suggested configuration under this new scenario?

thank you and kind regards
CD

> With only single drives your performance is going to be very limited.
> How many transactions per second will you be dealing with?  How big is
[quoted text clipped - 49 lines]
>
> - Show quoted text -
Linchi Shea - 11 Jul 2008 04:13 GMT
This is not a configuration to run any production database at all. First of
all, forget about performance, you should first make sure your drives are
protected with some type of RAID configuration. It's not whether your drive
will fail, it's when. And if you know it's going to fail and don't plan to
protect against that, you have not done your job right unless your app
doesn't have any availability requirements.

Note that activities in the master database are minimal, you don't need a
separate drive for it.

Linchi

> Hello All,
>
[quoted text clipped - 25 lines]
> Cheers
> CD
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.