next up previous contents
Next: Loading a RAM disk Up: RAM Disks Previous: Living without a RAM   Contents

RAM disk devices

A RAM disk is just another block device, except that the buffers are never written to a real device, so the data exists only in RAM. The standard kernel comes with 16 RAM disk devices. Initially no memory is allocated to a RAM disk, but buffers will be added dynamically as data is written to it. The maximum size of a RAM disk is 4MB by default and can be modified at boot time with the ramdisk_size command line option. In LILO you could add the following command to the configuration file to double the size:

append ramdisk_size=8192
Note that this specifies a maximum size, smaller RAM disks take less space.

See the kernel source file drivers/block/rd.c how the RAM disk is initialized. There are three possibilities:


next up previous contents
Next: Loading a RAM disk Up: RAM Disks Previous: Living without a RAM   Contents
Lennart Benschop 2002-07-20