From owner-freebsd-fs@FreeBSD.ORG Wed Sep 3 23:11:13 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E22C106567D for ; Wed, 3 Sep 2008 23:11:13 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 162D78FC0A for ; Wed, 3 Sep 2008 23:11:13 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 0A6EE46C06; Wed, 3 Sep 2008 19:11:11 -0400 (EDT) Date: Thu, 4 Sep 2008 00:11:11 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Rick Macklem In-Reply-To: Message-ID: References: <737a6d270809012309w2be16ba3s8937623841107557@mail.gmail.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@freebsd.org, ProAce Subject: Re: how to cache nfs file in local disk X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 23:11:13 -0000 On Wed, 3 Sep 2008, Rick Macklem wrote: > On Tue, 2 Sep 2008, ProAce wrote: > >> The question I posted on freebsd-question last week, maybe I post wrong >> mailing list. I describe the question here again. :) >> >> In order to reduce the throughput and ops for nas server, I just want to >> cache file from nfs to nfs client's local disk. And the cache system can >> controller the total size of cache file automatically ( the capacity of nas >> is more more more larger than local disk ). >> >> There are the cachefs on Solaris and FS-Cache on RedHat can cache file from >> nfs to local disk, does any similar software can be run on FreeBSD? > > Since no one else has answered, I toss out "None that I am aware of". > > I am planning on doing some work caching files on local disk when they are > delegated to the client, but that will be NFSv4 specific and at least next > summer before it is available. I also consider it experimental work, so it > may never end up usable in a near production environment. > > To be honest, for LAN environments, ny hunch is that local disk caching will > only help if the client keeps accessing the same files over and over again. > But that's just a hunch at this point. The AFS argument may be relevant here: persistent client-side caching is as much about indirectly improving client performance through greater server scalability as about directly improving client performance through local disk I/O speed. Robert N M Watson Computer Laboratory University of Cambridge