Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 1998 12:36:18 -0800 (PST)
From:      Michael Smith <msmith@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sys/nfs nfs_vnops.c nfsnode.h
Message-ID:  <199811152036.MAA16958@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
msmith      1998/11/15 12:36:18 PST

  Modified files:
    sys/nfs              nfs_vnops.c nfsnode.h 
  Log:
  Reimplement the NFS ACCESS RPC cache as an "accelerator" rather than a true
  cache.  If the cached result lets us say "yes", then go with that.  If
  we're not sure, or we think the answer might be "no", go to the wire to be
  certain.    This avoids all of the possible false veto cases, and allows us
  to key the cached value with just the UID for which the cached value holds,
  reducing the bloat of the nfsnode structure from 104 bytes to just 12 bytes.
  
  Since the "yes" case is by far the most common, this should still provide
  a substantial performance improvement.  Also default the cache to on, with
  a conservative timeout (2 seconds).  This improves performance if NFS is
  loaded as a KLD module, as there's not (yet) code to parse an option out
  of the module arguments to set it, and sysctl doesn't work (yet) for OIDs
  in modules.
  
  The 'accelerator' mode was suggested by Bjoern Groenvall (bg@sics.se)
  
  Feedback on this would be appreciated as testing has been necessarily
  limited by Comdex, and it would be valuable to have this in 2.2.8.
  
  Revision  Changes    Path
  1.114     +12 -42    src/sys/nfs/nfs_vnops.c
  1.28      +2 -2      src/sys/nfs/nfsnode.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811152036.MAA16958>