9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "ron minnich" <rminnich@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] 9P optimization
Date: Sat, 23 Jun 2007 21:08:09 -0700	[thread overview]
Message-ID: <13426df10706232108o4ab432a7p5afc662ec9ef711b@mail.gmail.com> (raw)
In-Reply-To: <20070623200857.H1471@orthanc.ca>

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


  reply	other threads:[~2007-06-24  4:08 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 20:11 [9fans] About 9P Philippe Anel
2007-06-20  0:37 ` Russ Cox
2007-06-20  2:06   ` Roman Shaposhnick
2007-06-20 11:29     ` Anthony Sorace
2007-06-22  0:32 ` Derek Fawcus
2007-06-22  6:58   ` Philippe Anel
2007-06-22 15:57     ` Derek Fawcus
2007-06-22 20:32       ` Philippe Anel
2007-06-22 21:10         ` David Leimbach
2007-06-22 21:35           ` Philippe Anel
2007-06-22 21:46             ` David Leimbach
2007-06-22 21:55               ` Philippe Anel
2007-06-22 22:25                 ` Philippe Anel
2007-06-22 22:57                   ` David Leimbach
2007-06-22 23:01                     ` Anant Narayanan
2007-06-23  4:30                   ` Russ Cox
2007-06-23  5:10                     ` Skip Tavakkolian
2007-06-23  9:25                       ` Francisco J Ballesteros
2007-06-23 15:50                         ` Martin Atkins
2007-06-23  6:24                     ` Philippe Anel
2007-06-23 15:00                     ` Rob Pike
2007-06-24  0:52                     ` [9fans] 9P optimization Lyndon Nerenberg
2007-06-24  3:04                       ` Francisco J Ballesteros
2007-06-24  3:15                         ` Lyndon Nerenberg
2007-06-24  4:08                           ` ron minnich [this message]
2007-06-24  9:34                             ` Steve Simon
2007-06-24 10:06                               ` Lyndon Nerenberg
2007-06-24 11:38                                 ` Steve Simon
2007-06-24 13:34                                   ` Lyndon Nerenberg
2007-06-25  0:34                                     ` ron minnich
2007-06-25 17:53                                       ` Lyndon Nerenberg
2007-06-25  1:02                                 ` Dave Eckhardt
2007-06-24 12:14                             ` erik quanstrom
2007-06-24 13:36                               ` Lyndon Nerenberg
2007-06-24 21:47                                 ` erik quanstrom
2007-06-25 17:48                                   ` Lyndon Nerenberg
2007-06-25 18:46                                     ` erik quanstrom
2007-06-24  4:16                           ` Bruce Ellis
2007-06-24 18:05                             ` Skip Tavakkolian
2007-06-22 23:20               ` [9fans] About 9P Skip Tavakkolian
2007-06-22 23:48                 ` Francisco J Ballesteros
2007-06-23  0:27                   ` Roman Shaposhnick
2007-06-23  0:27                     ` Francisco J Ballesteros
2007-06-23 12:08                   ` erik quanstrom
2007-06-23 12:27                     ` Francisco J Ballesteros
2007-06-23 12:57                     ` Lucio De Re
2007-06-23 13:01                     ` Uriel
2007-06-23 13:36                       ` Francisco J Ballesteros
2007-06-23 14:27                         ` Lucio De Re
2007-06-23 14:45                           ` Francisco J Ballesteros
2007-06-22 21:16         ` Skip Tavakkolian
2007-06-22 21:37           ` Philippe Anel

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=13426df10706232108o4ab432a7p5afc662ec9ef711b@mail.gmail.com \
    --to=rminnich@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).