Buy the ARP T-Shirt! BIOS Optimization Guide Money Savers!
 
 23 May 2014
 N/A
  N/A
 Guides
 Dr. Adrian Wong
 2.0
 Discuss here !
 9666
 
   
Workstation & Server CPU Comparison Guide Rev. 7.2
If you have no idea what's different between an AMD Opteron processor and an Intel Co... Read here
BIOS Option Of The Week - AGP Comp. Driving
Since 1999, we have been developing the BIOS Optimization Guide, affectionately known... Read here
   
Buy The BOG Book Subscribe To The BOG! Latest Money Savers!
The RAM Disk Guide Rev. 2.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 of RAM 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

 

When Do You Need To Create A RAM Disk?

If you have decided that a RAM disk is a good idea for your system, this is what you need :

At least 6 GB of RAM

Although there are no hard and fast rules and you can create a RAM disk with any amount of memory, we do not recommend that you create one unless you have at least 6 GB of RAM.

This ensures that your applications will have sufficient memory to use. If they have to use a paging file because there's not enough memory, that would defeat the purpose of having a RAM disk.

If you have less than 6 GB of RAM, we recommend you upgrade to 8 GB or more. RAM is cheap and you should have no problem upgrading to 12 GB or 16 GB of RAM.

This is particularly important in computers that use integrated or processor graphics because they do not have their own dedicated memory. Instead, they reserve part of the system RAM for use as graphics memory.

A 64-bit Windows operating system

You will need a 64-bit version of Microsoft Windows, to allow you to make use of more than 4 GB of memory.

RAM disk software

There are many paid solutions, from Dataram's RAMDisk (which includes the AMD Radeon RAMDisk) to SoftPerfect's RAM Disk. However, there are several free RAM disk software like ImDisk which may not look as polished but works just as well.

In this guide, we will be using the SoftPerfect RAM Disk because it's not only very user-friendly, it is also free for non-commercial use.

Got all that? Alright then, let's start creating a new RAM disk!

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?
What Do You Need To Create A RAM Disk?

2

How To Create A RAM Disk Using SoftPerfect RAM Disk

3

How To Move The TEMP Folder To The RAM Disk
How To Make The RAM Disk A Photoshop Scratch Disk

4

How To Move IE's Temporary Files To The RAM Disk
How To Move Chrome's Cache Files To The RAM Disk

5

How To Move Firefox's Cache To The RAM Disk



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!
 
   
Desktop CPU Comparison Guide Rev. 14.9
NVIDIA Release 275 GeForce Driver Technology Report
Intel's Desktop Chipset Roadmap @ October, 2008
OCZ PC-4000 Gold Gamer eXtreme XTC Dual-Channel DDR Memory Kit Review
Manfrotto 190PROB (Bogen 3001BPRO) Professional Tripod Review
OCZ EL PC-3200 Gold DDR Memory Overview
ABIT AI7 i865 Motherboard Review
Definitive Review of the 512MB Mushkin PC3500 Black Dual Pack DDR Memory
Definitive Review of the ACE 64MB CompactFlash Card
Utopia Live! SoundFont Review

 


Copyright © Tech ARP.com. All rights reserved.