On Wed, Nov 28, 2007 at 10:46:45AM +0900, [EMAIL PROTECTED] wrote:
> How about these?
> - ramdisk + mke2fs + mount

a 100M tmpfs that is 10% full occupies 10M of ram.
a 100M ramdisk+ext2 that is 10% full occupies 100M of ram.

Emulating a block device and a filesystem meant for block storage is
complete overkill when all I want is tmpfs - a way to mount page cache
without any backing store, and only use as much as I need.

> - tmpfs + loopback ext2 fs-image + mount

I'm not sure what you mean by this.

> Without xino, the inode number in aufs will change silently and
> unexpectedly. And some apps will have minor troubles, such as
> - chown/chmod -R to a large directory, since these tools checks the
>   inode number.

For what? Is it just to avoid changing a multiply-hardlinked inode more
than once? If so it's just an optimization and noxino isn't a problem,
right?

> - rmdir discards the cached child inodes, thus after the failure of
> rmdir, all children under the dir will have different inode number.

You mean when rmdir fails due to the directory being nonempty? If so,
rmdir can change the inode numbers (which you already warned about). But
rmdir doesn't care what the inode numbers *are*, right?

> These are the cases I remember now. If you think these are very minor
> and ignorable, you can try noxino option.

To know if it's ignorable I want to know what kinds of applications pay
attention to these numbers. amanda and chown/chmod are the only examples
I have so far.

> Essentially you are right, but will it help to stop growing your xino
> file, won't it?

I don't see how. The tmpfs may have a limited number of total inodes,
but if even 1 is free I can repeatedly create/unlink a file and each one
uses more space in the xino file because tmpfs assigns a new inode
number for each create.

If the xino code had a way to garbage-collect the unused mappings it
would be safe to use with tmpfs.

Jason

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4

Reply via email to