Buy the ARP T-Shirt! BIOS Optimization Guide Money Savers!
 
 15 September 2014
 N/A
  N/A
 Guides
 Dr. Adrian Wong
 3.0
 Discuss here !
 22672
 
   
BIOS Option Of The Week - AGP to DRAM Prefetch
Since 1999, we have been developing the BIOS Optimization Guide, affectionately known... Read here
The Tech ARP 2014 Mega Giveaway Contest (Week 10)
We have been working hard to arrange a ton of prizes, which we will give away every w... Read here
   
Buy The BOG Book Subscribe To The BOG! Latest Money Savers!
The RAM Disk Guide Rev. 3.0
Digg! Reddit!Add to Reddit | Bookmark this article:

The RAM Disk Guide

A RAM disk (also known as RAM drive or virtual RAM drive) turns RAM into a logical disk drive for temporary storage purposes. It can come in the form of a software that converts a portion of regular computer memory into a drive, or an actual physical device that uses RAM as a storage medium. Both offer a tremendous boost in storage speeds of several magnitudes over the hard disk drive.

The RAM disk has been around since the 1980s, but it has never been popular due to the high cost of computer memory. It is now making a comeback, partly because RAM is now cheap and plentiful and partly because solid state drives (SSDs) are fast replacing hard disk drives as the storage medium of choice, not only in notebooks but also in desktops where they serve as boot drives.

SSDs are not only much faster than hard disk drives, they are silent and virtually impervious to vibration and shock. The downside though is their limited lifespan, especially consumer-grade SSDs which use MLC flash memory that last only 5,000 program/erase cycles. That's where the RAM disk comes in - it allows the user to reduce wear and tear on the SSD by shifting some of the work to it.

There are, of course, pros and cons to the RAM disk, and this guide will guide you through it all. On top of that, we will teach you how to make full use of your RAM disk. Let's get right down to it!

 

Why Use A RAM Disk?

Here are a couple of reasons why you should use a RAM disk :

  • Speed - A RAM disk uses RAM as its storage medium, so it is very, very fast. Current DDR3-1600 memory from 2008 is 30-40x faster than typical desktop SSDs and more than 60x faster than the fastest desktop hard disk drive (the 1 TB Western Digital VelociRaptor). It also does not suffer any performance penalty from data fragmentation, or random accesses.

  • Reduces bottleneck - A RAM disk runs off the much faster memory interface, instead of the slower SATA interface. Offloading part of the workload to a RAM disk therefore reduces the load on the SATA interface, allowing more operations to occur simultaneously.

  • Auto-Clearing - Data in a RAM disk is automatically cleared every time the computer shuts down, or whenever the RAM disk is restarted. If used to store temporary files used by the operating system and applications, they would be automatically deleted instead of accumulating and wasting space as they do on regulars drives.

  • Security - Data that is cleared when a RAM disk is restarted is irrevocably lost because RAM cannot retain data for more than a second or so without power. The data that is lost by the RAM disk therefore can never be recovered, which is great if you use it to temporarily access sensitive data.

  • No lifespan issues - Unlike the NAND flash memory used in SSDs, RAM has no wear and tear issues. It won't wear out even if you use it at full load 24/7. RAM disks are therefore extremely suitable for high-intensity read/write operations.

  • Maintain your SSD's performance and lifespan - By shifting temporary file storage and caching to the RAM disk, this not only reduces the wear and tear load on the SSD, but it also helps to maintain the SSD's performance over time.

 

When Should You NOT Use A RAM Disk?

On the other hand, there are circumstances where a RAM disk should never be used :

  • Not enough RAM - This is subjective and depends on your usage. Most users get by with 4 GB of RAM although some can't live without 8 GB or even 16 GB of RAM. Generally, we do not recommend that you use a RAM disk unless you have at least 6 GB of RAM.

  • To place a paging file - Although it is possible to do so, placing the paging file on a RAM disk is absurd because it would be transferring water from one storage tank to another and then back again. The only reason why an application would need to use a paging file is because it doesn't have enough RAM, and if that's because you allocated too much of it (see Not enough RAM above) to the RAM disk, you are doing it wrong.

  • The data is important - To the operating system, a RAM disk is no different from any other drive. You can partition it, format it and perform any kind of file operations on it. However, it is NOT a permanent storage medium, so you should never store your documents on it. Any data that is stored on a RAM disk is permanently lost if the computer crashes or shuts down.

 

How Fast Is A RAM Disk Really?

Avram Piltch, from Laptop, compared the performance of a 4 GB RAM disk versus a 7,200 RPM hard disk drive and a Kingston HyperX SH100S3 SSD. Check out just how much faster the RAM Disk was, compared to the HDD and the SSD.

SSD Performance Comparison
Courtesy of Laptop

The RAM Disk is faster than the...

HDD
by

SSD
by

1 MB Sequential Reads

51.3x

12.1x

1 MB Sequential Writes

71.0x

32.9x

512 KB Random Reads

135.5x

14.0x

512 KB Random Writes

149.3x

28.8x

4 KB Random Reads

1210x

21.5x

4 KB Random Writes

800.6x

8.6x

4 KB Random Reads
(32 Queue Depth)

629.4x

3.2x

4 KB Random Writes
(32 Queue Depth)

780.4x

2.3x

If you like this article, please share it! ->

 

Support Tech ARP!

If you like our work, you can help support out work by visiting our sponsors, participate in the Tech ARP Forums, or even donate to our fund. Any help you can render is greatly appreciated!

Page

The RAM Disk Guide

1

Why Use A RAM Disk?
When Should You NOT Use A RAM Disk?
How Fast Is A RAM Disk Really?

2

What Do You Need?
What File System Should You Use?

3

How To Create A RAM Disk

4

How To Move The TEMP Folder To A RAM Disk

5

How To Make A RAM Disk A Photoshop Scratch Disk

6

How To Move IE's Temporary Files To A RAM Disk

7

How To Move Chrome's Cache Files To A RAM Disk

8

How To Move Firefox's Cache To A RAM Disk
End Notes



Support us by buying from Amazon.com!

Grab a FREE 30-day trial of Amazon Prime for free shipping, instant access to 40,000 movies and TV episodes and the Kindle Owners' Lending Library!
 
   
The NVIDIA GeForce GTX 400 Tech Report
Intel Turbo Boost Performance Advantage Revealed Rev. 2.0
A Tale Of Two VelociRaptors
Seagate Momentus 7200.2 Notebook Hard Drive Review
eDimensional G-Pad Pro Gyroscopic Gamepad Review
OCZ PC2-6400 Platinum Enhanced Latency XTC DDR2 Memory Kit Review
NVIDIA SLI Physics Technology Report
Jetart Xcool NP6900 Foldable Notebook Cooler Review Rev. 1.1
Jetart HCA05 HDD Guard 3.5" Bay Hard Disk Cooler Review
Windows Desktop Heap Tweak Guide

 


Copyright © Tech ARP.com. All rights reserved.