All Topics  
RAM disk

 

   Email Print
   Bookmark   Link






 

RAM disk



 
 
A RAM disk is a software layer that enables applications to transparently use RAM
Ram

Ram, ram, or RAM as a non-acronymic wordAs a non-acronymic word Ram, ram, or RAM may refer to:...
, often a segment of main memory, as if it were a hard disk
Hard disk

A hard disk drive , commonly referred to as a hard drive, hard disk, or fixed disk drive, is a non-volatile storage device which stores digitally encoded data on rapidly rotating hard disk platters with magnetic surfaces....
 or other secondary storage.

Access time may be greatly improved to files held on RAM disks compared to data held on other secondary storage. However, the volatility of RAM means that data will be lost if power is lost, e.g. when the computer is turned off.






Discussion
Ask a question about 'RAM disk'
Start a new discussion about 'RAM disk'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A RAM disk is a software layer that enables applications to transparently use RAM
Ram

Ram, ram, or RAM as a non-acronymic wordAs a non-acronymic word Ram, ram, or RAM may refer to:...
, often a segment of main memory, as if it were a hard disk
Hard disk

A hard disk drive , commonly referred to as a hard drive, hard disk, or fixed disk drive, is a non-volatile storage device which stores digitally encoded data on rapidly rotating hard disk platters with magnetic surfaces....
 or other secondary storage.

Access time may be greatly improved to files held on RAM disks compared to data held on other secondary storage. However, the volatility of RAM means that data will be lost if power is lost, e.g. when the computer is turned off. This is sometimes desirable, for example when working with a decrypted copy of an encrypted document. In many cases, the data stored on the RAM disk is only a copy of or is derived from data permanently stored elsewhere, and thus will be re-created when power is restored and the system reboots.

RAM disks can also be used to hold uncompressed
Data compression

In computer science and information theory, data compression or source coding is the process of encoding information using fewer bits than an code representation would use through use of specific encoding schemes....
 programs for short periods.

Implementation


Software ramdisks use the normal RAM in main memory as if it were a partition on a hard drive rather than actually accessing the data bus normally used for secondary storage. Though ramdisks can often be supported directly from the operating system via special mechanisms in the operating system kernel, it is possible to also create and manage a ramdisk by way of a user space
User space

A conventional operating system usually segregates virtual memory into kernel space and user space. Kernel space is strictly reserved for running the kernel , kernel extensions, and some device drivers....
 application process. Usually no battery backup is needed due to the temporary nature of the information stored in the ramdisk, but an uninterruptible power supply
Uninterruptible power supply

An uninterruptible power supply , also known as a battery back-up, provides emergency power and, depending on the topology, line regulation as well to connected equipment by supplying power from a separate source when utility power is not available....
 can keep the entire system running during a power outage, if necessary.

Some ramdisks use a compressed filesystem such as cramfs
Cramfs

The compressed ROM file system is a Free software read-only Linux kernel file system designed for simplicity and space-efficiency. It is mainly used in embedded systems and small-footprint systems....
 to allow compressed data to be accessed on the fly, without uncompressing it first. This is convenient because ramdisks are often small due to the higher price per megabyte than conventional hard drive storage.

Usage for web caches


It is possible to store a web cache
Web cache

Web caching is the Cache of web documents in order to reduce Bandwidth usage, web server load, and perceived lag. A web cache stores copies of documents passing through it; subsequent requests may be satisfied from the cache if certain conditions are met....
 on a RAM disk and this can improve the speed of loading pages. Due to the volatility of RAM disks there are security advantages in using a RAM disk.

History


The first software RAM disk for microcomputers was invented and written by Jerry Karlin in the UK in 1979/80. The software, known as the Silicon Disk System
Silicon Disk System

The Silicon Disk System was the first commercially available RAM disk for microcomputers.It was written by Jerry Karlin in 1979/80. Karlin was joined by Peter Cheesewright and their company Microcosm Research Ltd marketed the product for a number of years....
 was further developed into a commercial product and marketed by JK Systems Research which became Microcosm Research Ltd when the company was joined by Peter Cheesewright of Microcosm Ltd
Microcosm Ltd

Microcosm Ltd is a UK company established in 1979. Its early claims to fame included Silicon Disk System in 1981 and Microcache in 1982 .Since 1989, it has concentrated on software copy protection systems, firstly with CopyControl , then Dinkey Dongle and, more recently, CopyMinder ....
. The idea was to enable the early microcomputers to use more RAM than the CPU could directly address. Making bank-switched RAM behave like a disk drive was much faster than the disk drives - especially in those days before hard drives were readily available on such machines.

The Silicon Disk was launched in 1980, initially for the CP/M
CP/M

CP/M is an operating system originally created for Intel 8080/Intel 8085 based microcomputers by Gary Kildall of Digital Research. Initially confined to single tasking on 8-bit processors and no more than 64 kilobytes of memory, later versions of CP/M added multi-user variations, and were migrated to 16-bit processors....
 operating system and later for MS-DOS
MS-DOS

MS-DOS is an operating system commercialized by Microsoft. It was the most commonly used member of the DOS family of operating systems and was the main operating system for personal computers during the 1980s....
. Due to the limitations in memory addressing on Commodore hardware, a ram disk was also a popular application on Commodore 64
Commodore 64

The Commodore 64 is an 8-bit home computer released by Commodore International in August, 1982, at a price of United States dollar595. Preceded by the Commodore VIC-20 and Commodore MAX Machine, the C64 features 64 kilobytes of Random-access memory with sound and graphics performance that were superior to IBM-compatible computers of tha...
 and Commodore 128
Commodore 128

The Commodore 128 home computer/personal computer was the last 8-bit machine commercially released by Commodore International . Introduced in January of 1985 at the Consumer Electronics Show in Las Vegas metropolitan area, it appeared three years after its predecessor, the bestselling Commodore 64....
 systems with RAM Expansion Units. The original AmigaOS
AmigaOS

AmigaOS is the default native operating system of the Amiga personal computer. It was developed first by Commodore International, and initially introduced in 1985 with the Amiga 1000....
 had the ramdisk capability.

Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
 added a RAM-disk to MS-DOS
MS-DOS

MS-DOS is an operating system commercialized by Microsoft. It was the most commonly used member of the DOS family of operating systems and was the main operating system for personal computers during the 1980s....
 (version 2.0) in 1983; Apple Computer
Apple Computer

Apple Inc., formerly Apple Computer Inc., is an United States multinational corporation which designs and manufactures consumer electronics and software products....
 added the functionality to System 7
System 7

System 7 is the name of a Macintosh operating system. Several other things are also called "System 7":...
 in 1991. In addition, many Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
 and Unix-like
Unix-like

A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....
 systems provide some form of ramdisk functionality; it is particularly used for Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
 installations and similar high-performance, low-resource situations.

External links

  • Sample code to create ramdisk drivers on and
  • Unix shell and to create a ramdisk on Mac OS X