Avatar of Martin Andel
Martin Andel
 asked on

RAMdisk for a virtualized SQL 2008 Enterprise server

Hi everyone,

We're currently virtualizing our database server and the idea is to use a ramdisk to help optimizing its performance. What we have is an instance of MS SQL 2008R2 Enterprise edition, hosted on a 2008R2 server, virtualized into the VMware ESXi environment.

We are looking for suggestions as to what solutions are available and most suitable for our set-up. I have been give the following advice, but no tips for an actual product:

Firstly the software should be an industry level app, no desktop stuff. In practice what you looking for must be designed to run on a server

Secondly, it should be able to control the properties/settings of the actual disk and the way it transfers the data further.

It is also about the size of the database. In reality you should make it happen so that the database is loaded into the RAMdisk during the server startup. You run it from the RAMdisk and only synchronize it every let’s say 60 seconds with the physical drive (in the background). Logs should in this case be on the physical drive and the database should be in the “full recovery mode”. So even if something breaks, then after reboot the database will repair itself in accordance with the saved log, to the point of the last transaction.


We would really appreciate your help on this.

Thanks.
Microsoft SQL ServerVirtualizationServer Software

Avatar of undefined
Last Comment
Martin Andel

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Martin Andel

ASKER
Do you use it on a virtualized or a physical server? And for what purpose? Database?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Both physical and virtual, databases, development, rendering, profile storage for terminal servers, for fast retrieval

a free trial version is available for you to try with a small ram drive.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Martin Andel

ASKER
And how customizable is it? Doest it offer any control over the disk properties and data flow towards the physical storage? This is extremely important for us as the guest OS will be hosted on purely ssd based storage and we want to use the ramdisk mainly for reduction of its wear & tear.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

There are options to load the ramdisk at the OS start, and regularly save the ramdisk to disk.

I would recommend you download and test, and check out if it meets your requirements.

We are users of the product and we are very happy with it, it meets our requirements.
Martin Andel

ASKER
That sounds good! I've also read a lot about the solution below, as being very good performer and very customizable. Any experience with that product?

http://www.romexsoftware.com/en-us/primo-ramdisk/index.html
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I'm afraid not.
Martin Andel

ASKER
Thanks for you help!
ASKER CERTIFIED SOLUTION
ste5an

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Martin Andel

ASKER
Because according to all the research I've done so far, the SQL server does so much reading and writing in small pieces, that the ssd's wear down pretty quickly. The idea behind using the ramdisk is that all most of the r&w is done in ram space and then sent as large chunks to be written to the ramdisk image on the actual ssd. My point is that I do not want to have to buy new drives every few months.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ste5an

How many data is written per day really to your database?

About reading: doesn't matter. As I said give your SQL Server enough memory to fit the database into memory.

The differences I know: Using SSDs instead of HDDs gives you faster times to a hot cache. Having the normal workload in memory, this will only affect the users at the beginning of the day. Or after a drop clean buffers. Where you can see a diffence: Using SSDs for tempdb. Cause here are physical objects created and must be written to disk. So this gives normally a good speed up. So I would guess this would be also the only area where you may see a performance gain with using RAMdisk.

Here's a last thought: Why not using an hybrid storage array with an large enough write-cache?
Martin Andel

ASKER
What do you think would be a  sufficient amount of write-cache?

And would that be the cache of the raid adapter, or a separate (ssd?) disk dedicated to acting as the cache?
Martin Andel

ASKER
Btw, do you have an actual experience of running the database on ssd's only (in production environment)?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ste5an

I would go for an out-of-the box product. The necessary amount depends imho on your workloads.
Martin Andel

ASKER
Sorry, I don't follow. Out-of-the-box product for what now? A caching solution or a ramdisk?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

We use SSDs in our SAN with no issues, and have SSD caching solutions with no issues, of wear!
Your help has saved me hundreds of hours of internet surfing.
fblack61
ste5an

Yup, but I'm a database guy, so maybe you need a virtualization hoshi instead. Or a storage gremlin ;)

I'm currently running SSDs in one physical system as tempdb storage. Here I have more write I/O compared to the database and log volumes. But the SSDs are still healthy (running 2 years).

And as a database guy I need to say: Setup a test system to measure it. It depends too often on your concrete workload.

But the most performance with SQL Server is gaind from hot buffers. Use SSDs speed up everything which needs large temp storage, like DW-ETL tasks.
ste5an

Out-of-the-box hybrid SAN.
Martin Andel

ASKER
With the small database throughput such as ours, there is no gain in using a ramdisk. Providing the SQl server with enough ram should do the trick, while the wear and tear of ssd based storage will be minimal anyway.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.