ramdisk/tmpfs/ramfs/memfs ?

Padraig Brady (padraig@antefacto.com)
Thu, 26 Apr 2001 20:40:30 +0100


Hi,

I'm working on an embedded system here which has no harddisk.
So, I can't swap to disk and need to have /var & /tmp in RAM.
I'm confused between the various options for in RAM file-
systems. At the moment I've created a ramdisk and made an
ext2 partition in it (which is compressed as I applied the
e2compr patch), which is working fine. Anyway questions:

1. I presume the kernel is clever enough to not cache any
files from these filesystems? Would it ever need to?
2. Is tmpfs is basically swap and /tmp together in a ramdisk?
The advantage being you need to reserve less RAM for both
together than seperately?
3. If I've no backing store (harddisk?) is there any advantage
of using tmpfs instead of ramfs? Also does tmpfs need a
backing store?
5. Can you set size limits on ramfs/tmpfs/memfs?
6. Is a ramdisk resizable like the others. If so, do you have
to delete/recreate or umount/resize a fs (e.g. ext2) every
time it's resized? Do ramfs/tmpfs/memfs do this transparently?
Are ramdisks resizable in kernel 2.2?
7. What's memfs?
8. Is there a way I can get transparent compression like I now
have using a ramdisk+ext2+e2compr with ramfs et al?
9. Apart from this transparent compression, is there any other
functionality ext2 would have over ramfs for e.g, for /tmp
& /var? Also would ramfs have less/more speed over ext2?

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