2 .\" Copyright (c) 2003, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH RAMDISK 7D "Mar 04, 2003"
8 ramdisk \- RAM disk device driver
12 \fBramdisk@0:\fR\fIdiskname\fR
18 The \fBramdisk\fR driver supports numerous ramdisk devices that are created by
19 the system during the boot process (see \fBboot\fR(1M)) or during normal
20 system operation (see \fBramdiskadm\fR(1M) for more information).
21 .SH DEVICE SPECIAL FILES
24 Each ramdisk can be accessed either as a block device or as a raw device. When
25 accessed as a block device, the normal buffering mechanism is used
26 when reading from and writing to the device, without regard to physical disk
27 records. Accessing the ramdisk as a raw device enables direct transmission
28 between the disk and the read or write buffer. A single read or write call
29 usually results in a single I/O operation, meaning that raw I/O is more
30 efficient when many bytes are transmitted. You can find block files names in
31 \fB/dev/ramdisk\fR. Raw file names are found in \fB/dev/rramdisk\fR.
34 There are no alignment or length restrictions on I/O requests to either block
43 The argument features a bad address.
52 Invalid argument. EIO. An I/O error occurred.
61 Cannot create or delete a ramdisk without write permission on
62 \fB/dev/ramdiskctl\fR.
71 The device does not support the requested ioctl function.
80 The device did not exist during opening.
89 Cannot exclusively open \fB/dev/ramdiskctl\fR. One or more ramdisks are still
99 A ramdisk with the indicated name already exists.
108 Cannot allocate resource for ramdisk. Try again later.
115 \fB\fB/dev/ramdisk/diskname\fR\fR
119 Block device for ramdisk named \fIdiskname\fR.
125 \fB\fB/dev/rramdisk/diskname\fR\fR
129 Raw device for ramdisk name \fIdiskname\fR
135 \fB\fB/kernel/drv/ramdisk\fR\fR
145 \fB\fB/kernel/drv/ramdisk.conf\fR\fR
149 Driver configuration file. (Do not alter).
155 \fB\fB/kernel/drv/sparcv9/ramdisk\fR\fR
165 See \fBattributes\fR(5) for descriptions of the following attribute:
173 ATTRIBUTE TYPE ATTRIBUTE VALUE
175 Interface Stability Evolving
181 \fBramdiskadm\fR(1M), \fBfsck\fR(1M), \fBfstyp\fR(1M), \fBmount\fR(1M),
182 \fBnewfs\fR(1M), \fBdriver.conf\fR(4), \fBfilesystem\fR(5), \fBdkio\fR(7I)
186 The percentage of available physical memory that can be allocated to ramdisks
187 is constrained by the variable \fBrd_percent_physmem\fR. You can tune the
188 \fBrd_percent_physmem\fR variable in \fB/etc/system\fR. By default, the
189 percentage of available physical memory that can be allocated to ramdisks is
193 A ramdisk may not be the best possible use of system memory. Accordingly, use
194 ramdisks only when absolutely necessary.