From owner-freebsd-fs@FreeBSD.ORG Sat Jul 24 23:08:31 2010 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 13ED2106564A for ; Sat, 24 Jul 2010 23:08:31 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id C4EBB8FC0A for ; Sat, 24 Jul 2010 23:08:30 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUHALcOS0yDaFvH/2dsb2JhbACTFQEBjElxvm+FNgQ X-IronPort-AV: E=Sophos;i="4.55,255,1278302400"; d="scan'208";a="88008076" Received: from danube.cs.uoguelph.ca ([131.104.91.199]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 24 Jul 2010 19:08:27 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by danube.cs.uoguelph.ca (Postfix) with ESMTP id E67BA1078164 for ; Sat, 24 Jul 2010 19:08:29 -0400 (EDT) X-Virus-Scanned: amavisd-new at danube.cs.uoguelph.ca Received: from danube.cs.uoguelph.ca ([127.0.0.1]) by localhost (danube.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sPLkhRschW3L for ; Sat, 24 Jul 2010 19:08:29 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by danube.cs.uoguelph.ca (Postfix) with ESMTP id 0C099107815C for ; Sat, 24 Jul 2010 19:08:29 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o6ONQQB26925 for ; Sat, 24 Jul 2010 19:26:26 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Sat, 24 Jul 2010 19:26:26 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: freebsd-fs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Packrats: NFSv4 client side disk caching 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: Sat, 24 Jul 2010 23:08:31 -0000 I have just put some patches up on http://people.freebsd.org/~rmacklem/packrat-patches that implement Packrat kernel threads that cache a copy of small files on a client's local disk when an NFSv4 delegation is issued to the client. These only work for NFSv4 mounts where delegations are enabled and the kernel patch expects a post-FreeBSD8.1 FreeBSD-current kernel source tree. (I will try and track the FreeBSD-current kernel with the patch. Please let me know if the patch won't apply.) There is no recovery from client or server crashes implemented yet and, as such, the patches are definitely meant to be experimented with only. They do significantly reduce the # of Read/Write RPCs for initial experiments I've done with them and will hopefully improve performance, particularily when working across WAN networks (larger latency). If you choose to play with it, please let me know how it goes, rick