Ram disk with real disk "overflow"

Jack Jansen jack at boring.uucp
Mon Apr 21 23:37:18 AEST 1986


Something I've been thinking of (but never came around to doing) is to
make a device of wich the first bit (say, .5Mb) is RAM disk, and the
rest is real disk.
The problem with RAM disks is that they're usually small, and you loose
big when they run out of space. If you have an overflow capability onto
a real disk, there's no problem.
The problem with this setup is that you should probably hack the kernel
to know that it should try to allocate one of the first 1000 blocks, and
only if there aren't any of those, try to allocate one of the other blocks.
If you mkfs the disk every time you boot up, you can make this work for
a while (by hacking up mkfs a little), but as soon as blocks out on the real
disk have been used, they'll show up at the beginning of the freelist and
you'll never get rid of them anymore.
Comments, anyone? Implementations?
-- 
	Jack Jansen, jack at mcvax.UUCP
	The shell is my oyster.



More information about the Comp.unix.wizards mailing list