1ramdisk(7D)                         Devices                        ramdisk(7D)
2
3
4

NAME

6       ramdisk - RAM disk device driver
7

SYNOPSIS

9       ramdisk@0:diskname
10
11

DESCRIPTION

13       The  ramdisk  driver supports numerous ramdisk devices that are created
14       by the system during the boot  process (see boot(1M)) or during  normal
15       system operation (see ramdiskadm(1M) for more information).
16

DEVICE SPECIAL FILES

18       Each  ramdisk  can  be  accessed  either  as a block device or as a raw
19       device.  When  accessed  as  a  block  device,  the  normal   buffering
20       mechanism  is used when reading from and writing to the device, without
21       regard to physical disk records. Accessing the ramdisk as a raw  device
22       enables direct transmission between the disk and the read or write buf‐
23       fer. A single read or write call usually results in a single  I/O oper‐
24       ation,  meaning  that  raw  I/O  is  more efficient when many bytes are
25       transmitted. You can find block files names in /dev/ramdisk.  Raw  file
26       names are found in /dev/rramdisk.
27
28
29       There are no alignment or length restrictions on I/O requests to either
30       block or character devices.
31

ERRORS

33       EFAULT    The argument features a bad address.
34
35
36       EINVAL    Invalid argument. EIO. An I/O error occurred.
37
38
39       EPERM     Cannot create or delete a ramdisk without write permission on
40                 /dev/ramdiskctl.
41
42
43       ENOTTY    The device does not support the requested ioctl function.
44
45
46       ENXIO     The device did not exist during opening.
47
48
49       EBUSY     Cannot exclusively open /dev/ramdiskctl. One or more ramdisks
50                 are still open.
51
52
53       EEXIST    A ramdisk with the indicated name already exists.
54
55
56       EAGAIN    Cannot allocate resource for ramdisk. Try again later.
57
58

FILES

60       /dev/ramdisk/diskname
61
62           Block device for ramdisk named diskname.
63
64
65       /dev/rramdisk/diskname
66
67           Raw device for ramdisk name diskname
68
69
70       /kernel/drv/ramdisk
71
72           32-bit driver
73
74
75       /kernel/drv/ramdisk.conf
76
77           Driver configuration file. (Do not alter).
78
79
80       /kernel/drv/sparcv9/ramdisk
81
82           64-bit driver
83
84

ATTRIBUTES

86       See attributes(5) for descriptions of the following attribute:
87
88
89
90
91       ┌─────────────────────────────┬─────────────────────────────┐
92       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
93       ├─────────────────────────────┼─────────────────────────────┤
94       │Interface Stability          │Evolving                     │
95       └─────────────────────────────┴─────────────────────────────┘
96

SEE ALSO

98       ramdiskadm(1M),    fsck(1M),    fstyp(1M),    mount(1M),     newfs(1M),
99       driver.conf(4), filesystem(5), dkio(7I)
100

NOTES

102       The  percentage  of  available physical memory that can be allocated to
103       ramdisks is constrained by the  variable  rd_percent_physmem.  You  can
104       tune  the  rd_percent_physmem  variable in /etc/system. By default, the
105       percentage of available  physical  memory  that  can  be  allocated  to
106       ramdisks is fixed at 25%.
107
108
109       A  ramdisk  may  not be the best possible use of system memory. Accord‐
110       ingly, use ramdisks only when absolutely necessary.
111
112
113
114SunOS 5.11                        04 Mar 2003                      ramdisk(7D)
Impressum