Lines Matching refs:RAM

1 Using the RAM disk block device with Linux
9 4) An Example of Creating a Compressed RAM Disk
15 The RAM disk driver is a way to use main system memory as a block device. It
21 The RAM disk dynamically grows as more space is required. It does this by using
22 RAM from the buffer cache. The driver marks the buffers it is using as dirty
25 The RAM disk supports up to 16 RAM disks by default, and can be reconfigured
26 to support an unlimited number of RAM disks (at your own risk). Just change
30 To use RAM disk support with your system, run './MAKEDEV ram' from the /dev
31 directory. RAM disks are all major number 1, and start with minor number 0
34 The new RAM disk also has the ability to load compressed RAM disk images,
45 This parameter tells the RAM disk driver to set up RAM disks of N k size. The
51 This parameter tells the RAM disk driver how many bytes to use per block. The
60 to 2 MB (2^11) of where to find the RAM disk (this used to be the size). Bit
61 14 indicates that a RAM disk is to be loaded, and bit 15 indicates whether a
62 prompt/wait sequence is to be given before trying to read the RAM disk. Since
63 the RAM disk dynamically grows as data is being written into it, a size field
72 kernel on disk one, and have already put a RAM disk image onto disk #2.
74 Hence you want to set bits 0 to 13 as 0, meaning that your RAM disk
78 You want bit 14 as one, indicating that a RAM disk is to be loaded.
98 4) An Example of Creating a Compressed RAM Disk
101 To create a RAM disk image, you will need a spare block device to
102 construct it on. This can be the RAM disk device itself, or an
104 example, we will use the RAM disk device, "/dev/ram0".
107 of RAM. If using a spare disk partition instead of /dev/ram0, then this
110 a) Decide on the RAM disk size that you want. Say 2 MB for this example.
111 Create it by writing to the RAM disk device. (This step is not currently
125 d) Compress the contents of the RAM disk. The level of compression
127 space on the RAM disk will compress to almost nothing.
135 f) Put the RAM disk image onto the floppy, after the kernel. Use an offset
138 the RAM disk image. An offset of 400 kB for kernels about 350 kB in
144 g) Use "rdev" to set the boot device, RAM disk offset, prompt flag, etc.
151 That is it. You now have your boot/root compressed RAM disk floppy. Some