Solved

Worth moving tempdb to a RAM drive?

Posted on 2006-07-04
7
931 Views
Last Modified: 2008-01-09
Server performance is always going to be one of my primary issues. We have a big web-based application with lots of back-end processing that leans heavily on temp tables, table variables and temp tables.

Is there a performance increase to be gained by creating a RAM drive and relocating the tempdb on to it? As I understand it, this gets recreated every time the server starts, so I'm not remotely worried about losing the contents if it crashes.

I'm running SQL Server 2000 on a Win2003 box, currently with 2GB installed. The tempdb data/log files never exceed 50MB/10MB respectively.

I'm sure there are technical difficulties to be overcome (like ensuring the RAM drive exists before SQL starts!), but is this worth following through?
0
Comment
Question by:kenpem
7 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
Comment Utility
0
 
LVL 4

Author Comment

by:kenpem
Comment Utility
I've read all the adverts, I was looking for reports of real-world experience from DBAs.
0
 
LVL 50

Accepted Solution

by:
Lowfatspread earned 125 total points
Comment Utility
subscribing...

i'd have thought that giving the memory to the DBMS engine to manage directly would be the best performance wise..

and using Table variables rather than temp tables (@xxx vs #xxx)  would assist that...

but i suppose if you've got "heaps" of memory then a Ram disk .. could assist..

what size of physical database are you envisaging?
how many (concurrent) users  ?
and what level of intermediate result sets, sorting overhead doo you envisage in most of your queries...?


interesting
Lowfatspread
   
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 8

Expert Comment

by:raj_
Comment Utility
if u can alse elaborate the RAID settings, it woiuld be quite hepful for all of us to be more objective in our reply.
0
 
LVL 4

Author Comment

by:kenpem
Comment Utility
A simple RAID 0 configuration, nothing fancy, everything on the same drive. Table variables used where possible, queries optimised pretty well. User connection counts vary..... from 5 to 500 at a time - hopefully some more as the business grows, but by then we'll have added some hardware.

There's a lot of data overhead.... as users move around the web site, we do major on-the-fly lookups and calculations to figure out what to present to them - a little like Amazon does ("you may also like...."), but a lot more of it. This is all qualified, sorted & ranked. It's actually pretty cool and not as slow as I had feared, but as I said, I'm always chasing better performance. Some temp tables have been unavoidable, so I was just looking for ways to eke out another 1%.

If it's not worth the bother, at least I'll know that!
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
Comment Utility
It all depends to what extent your tempdb is a performance bottleneck as opposed to your other databases.  You need to audit your system before making any recommendation of such nature.  
One tip though...tempdb clearly is more utilized in 2005 than 2000 therefore the performance leverage putting the tempdb on RAM drive would be more interesting.

Hope this helps...
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 125 total points
Comment Utility
Also, keep in mind that variables of type table also use tempdb.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now