Re: [PATCH] 2.3.34/pre-2.3.35-3 ramdisk/initrd NOT as a

Jeff Garzik (jgarzik@mandrakesoft.mandrakesoft.com)
Mon, 27 Dec 1999 15:48:37 -0600 (CST)


On Mon, 27 Dec 1999, Tigran Aivazian wrote:
> First of all, when I make a filesystem on a block device I don't modify
> every single block of that device so it is perfectly possible to create a
> 64M ext2 filesystem on a ramdisk on a 48M physical RAM machine.

It sounds like you want a VM-based block device not a RAM-based block
device. Since you have to format the RAMdisk, you are going to touch a
bunch of pages inside your 64M ramdisk, which makes OOM a distinct
probability.

If a VM filesystem is what you want, check out Eric Biderman's shmfs.
URL should be somewhere in linux-mm archives. I don't have it handy,
but I'll dig it out if you can't find it.

I also have a tiny bit of code which attempts to the 2.3.x
map_user_kiobuf code to do the same thing, but it isn't working yet (for
obvious reasons).

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/