From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10706232108o4ab432a7p5afc662ec9ef711b@mail.gmail.com> Date: Sat, 23 Jun 2007 21:08:09 -0700 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] 9P optimization In-Reply-To: <20070623200857.H1471@orthanc.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070623043028.A0A7C1E8C51@holo.morphisms.net> <20070623174825.A31325@orthanc.ca> <8ccc8ba40706232004t38102644r7d5dd145ee15d026@mail.gmail.com> <20070623200857.H1471@orthanc.ca> Topicbox-Message-UUID: 86588084-ead2-11e9-9d60-3106f5b1d025 I wrote (a long time ago) a caching file system, for root file systems, described here: http://mbgokhale.org/rminnich/job/autocacher/autocache.ps, that did the simple thing: once you have the file, don't bother checking with the server until time + DeltaT, This might not work well for you, but in 1989, it worked wonderfully well as a root file system because: 1. most files in most root file systems are never even looked at (particularly man pages!) 2. They don't change much anyway -- think about it -- how often do people like to upgrade :-) So it is not always the case that you need to stat the cached files on each access. In fact, we watched NFS traffic on our backbone at the SRC for several months, and, as many other people have found, most files are mostly read. This type of optimization is fairly trivial for CFS, and would end up covering most files (see above); the few read-write ones left would not really hurt you too much. You could do much better in 9p because it is stateful. I have a new implementation of the autocacher (it's only for NFS) which I wrote ca. 1999, before I got to LANL; I had lost it but found it on my last day of work at LANL. I'll try to get it on my web page. It's a very simple program. thanks ron