Re: Introducing FUSE: Filesystem in USErspace

From: Per-Olof Pettersson (lkml.lists@peope.net)
Date: Sun Nov 18 2001 - 11:35:30 EST


Jamie Lokier wrote:

> Miklos Szeredi wrote:
>
>> - Thin layer in kernel. Minimal caching, predictable behavior.
>>
>
> Minimal caching? I would hope for maximal caching, for when userspace
> is able to say "yes the page you have is still valid". Preferably
> without a round trip to userspace for every page.

Caching userspace filesystems is dependant of the implimentation. You
would need to send some info to the kernel-part saying "Yes this part
can be cached this long without a signal to userspace".

This would be equal to the caching-mechanism in a Web-server.

Most often the userspace-part would not know what parts will not change
in a certain amount of time.. But then again.. Some implementations could.

Another way could be an explicit call to the kernel by the Userspace
File System saying "Now this caching is no longer valid".

One implementation with static data could be a fs that is tied to a prog
retrieving statistical data eg. Perhaps it is supposed to be run each
hour. Then you would know "good enough" that the data has not been
changed until next update. But suppose you manually restart the update
of data, you would need to tell the kernel that caching of old data is
not valid anymore.

Thing is you need the kernel-part to be told what can be cached, what
cannot and how long it can be cached.

Then you would need a mechanism for the Userspace-part to make a caching
invalid.

There is probably more into this than just these fundamentals.. And a
simple working (not buggy) FS is preferred than a complicated (possibly
buggy) FS that will never be released and is difficult to write
userspace code for IMHO.

Best regards
Per-Olof Pettersson

-
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/



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:17 EST