Unix and Linux Discussions Tagged with ram |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
12 |
14,340 |
Linux |
|
|
|
0 |
37,816 |
OS X (Apple) |
|
|
|
2 |
3,271 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,774 |
Shell Programming and Scripting |
|
|
|
4 |
1,571 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,422 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
116,388 |
Hardware |
|
|
|
3 |
2,924 |
Red Hat |
|
|
|
8 |
7,538 |
Red Hat |
|
|
|
11 |
9,290 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,370 |
Shell Programming and Scripting |
|
|
|
3 |
4,748 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,011 |
Linux |
|
|
|
4 |
3,292 |
Windows & DOS: Issues & Discussions |
|
|
|
4 |
6,650 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,220 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,891 |
HP-UX |
|
|
|
3 |
5,133 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,963 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,864 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,521 |
Programming |
|
|
|
6 |
21,783 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,180 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,823 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,305 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,141 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,429 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,001 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,822 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,852 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,700 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,780 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,369 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,776 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,467 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,283 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
6,370 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,419 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,872 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,333 |
UNIX for Dummies Questions & Answers |
RAM(4) Kernel Interfaces Manual RAM(4)
NAME
ram - ram disk driver
SYNOPSIS
/sys/conf/SYSTEM:
NRAM ram_size # RAM disk size (512-byte blocks)
major device number(s):
block: 3
minor device encoding:
must be zero (0)
DESCRIPTION
The ram pseudo-device provides a very fast extended memory store. It's use is intended for file systems like /tmp and applications which
need to access a reasonably large amount of data quickly.
The amount of memory dedicated to the ram device is controlled by the NRAM definition in units of 512-byte blocks. This is also patchable
in the system binary through the variable ram_size (though a patched system would have to be rebooted before any change took effect; see
adb(1)). This makes it easy to test the effects of different ram disk sizes on system performance. It's important to note that any space
given to the ram device is permanently allocated at system boot time. Dedicating too much memory can adversely affect system performance
by forcing the system to swap heavily as in a memory poor environment.
The block file accesses the ram disk via the system's buffering mechanism through a buffer sharing arrangement with the buffer cache. It
may be read and written without regard to physical disk records. There is no `raw' interface since no speed advantage is gained by such an
interface with the ram disk.
DISK SUPPORT
The ram driver does not support pseudo-disks (partitions). The special files refer to the entire `drive' as a single sequentially
addressed file.
A typical use for the ram disk would be to mount /tmp on it. Note that if this arrangement is recorded in /etc/fstab then /etc/rc will
have to be modified slightly to do a mkfs(8) on the ram disk before the standard file system checks are done.
FILES
/dev/ram block file
/dev/MAKEDEV script to create special files
/dev/MAKEDEV.local script to localize special files
SEE ALSO
hk(4), ra(4), rl(4), rk(4), rp(4), rx(4), si(4), xp(4) dtab(5), autoconfig(8)
DIAGNOSTICS
ram: no space. There is not enough memory to allocate the space needed by the ram disk. The ram disk is disabled. Any attempts to access
it will return an error.
ram: not allocated. No memory was allocated to the ram disk and an attempt was made to open it. Either not enough memory was available at
boot time or the kernel variable ram_size was set to zero.
BUGS
The ram driver is only available under 2.11BSD.
3rd Berkeley Distribution Januray 27, 1996 RAM(4)