public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Troy Benjegerdes <hozer@hozed.org>
Cc: Jeff Garzik <jgarzik@pobox.com>,
	torvalds@osdl.org, akpm@osdl.org, linux-kernel@vger.kernel.org,
	steved@redhat.com, dwmw2@redhat.com
Subject: Re: [PATCH] CacheFS - general filesystem cache
Date: Wed, 01 Sep 2004 22:19:57 +0100	[thread overview]
Message-ID: <28370.1094073597@redhat.com> (raw)
In-Reply-To: <20040827054813.GG2030@kalmia.hozed.org>


Troy Benjegerdes <hozer@hozed.org> wrote:
> So is it even remotely feasable to be able to use a cachefs filesystem
> when the 'backing store' (say NFSv4) filesystem is not accessible?

Well, in cachefs's current state:

 (1) That's mostly netfs policy. CacheFS is mainly for serving pages to the
     netfs upon demand. The netfs has to create a cachefs index tree suitable
     for it to be able to find its files. I'm currently arranging things in my
     AFS client and in the NFS client such that these correspond to server
     concepts such as cell address, volume ID, file ID; server IP address,
     file handle. I'm not arranging things as directories and
     files.

 (2) The user can just add or remove caches with mount/umount, even when live;
     so you could find that your inodes that were being backed in the cache
     are suddenly unavailable. Caches could be locked in the mount tree as
     long as a netfs is using them for disconnected mode operation.

 (3) CacheFS does not enforce any complete-file reading which you'd require to
     have disconnected operation. It only cares about pages. This is netfs
     policy.

 (4) CacheFS does not provide pinning facilities, other than active cache
     inodes don't get eaten because there's too little space and we need to
     recycle something.

I'm planning on adding pinning facilities for use with kAFS. I'd like to add
simple disconnected operation facilities too.

> 
> Obviously if the file's not already cached, you lose.

The file, and potentially the nest of directories in which it resides.

David

  parent reply	other threads:[~2004-09-01 21:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27  0:23 [PATCH] CacheFS - general filesystem cache David Howells
2004-08-27  0:42 ` Linus Torvalds
2004-08-27 10:24   ` David Howells
2004-08-27  0:53 ` Jeff Garzik
     [not found]   ` <20040827054813.GG2030@kalmia.hozed.org>
2004-09-01 21:19     ` David Howells [this message]
2004-08-27 10:28 ` Christoph Hellwig
2004-08-27 15:47   ` Martin J. Bligh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28370.1094073597@redhat.com \
    --to=dhowells@redhat.com \
    --cc=akpm@osdl.org \
    --cc=dwmw2@redhat.com \
    --cc=hozer@hozed.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steved@redhat.com \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox