|
|
|
|
RAM disk
|
| |
|
| |
A RAM disk is a software layer that enables applications to transparently use RAM, often a segment of main memory, as if it were a hard disk 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
|
Encyclopedia
A RAM disk is a software layer that enables applications to transparently use RAM, often a segment of main memory, as if it were a hard disk 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 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 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 can keep the entire system running during a power outage, if necessary.
Some ramdisks use a compressed filesystem such as cramfs 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 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 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. 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 operating system and later for MS-DOS. Due to the limitations in memory addressing on Commodore hardware, a ram disk was also a popular application on Commodore 64 and Commodore 128 systems with RAM Expansion Units. The original AmigaOS had the ramdisk capability.
Microsoft added a RAM-disk to MS-DOS (version 2.0) in 1983; Apple Computer added the functionality to System 7 in 1991. In addition, many Unix and Unix-like systems provide some form of ramdisk functionality; it is particularly used for Linux 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
-
|
| |
|
|