Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 05:34:39 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_subr.c
Message-ID:  <200503250534.j2P5YdsT015813@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2005-03-25 05:34:39 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_subr.c 
  Log:
   - Don't recycle vnodes anymore.  Free them once they are dead.  getnewvnode
     now always allocates a new vnode.
   - Define a new function, vnlru_free, which frees vnodes from the free list.
     It takes as a parameter the number of vnodes to free, which is
     wantfreevnodes - freevnodes when called from vnlru_proc or 1 when
     called from getnewvnode().  For now, getnewvnode() still tries to reclaim
     a free vnode before creating a new one when we are near the limit.
   - Define a function, vdestroy, which handles the actual release of memory
     and teardown of locks, etc.  This could become a uma_dtor() routine.
   - Get rid of minvnodes.  Now wantfreevnodes is 1/4th the max vnodes.  This
     keeps more unreferenced vnodes around so that files which have only
     been stat'd are less likely to be kicked out of the system before we
     have a chance to read them, etc.  These vnodes may still be freed via
     the normal vnlru_proc() routines which may some day become a real lru.
  
  Revision  Changes    Path
  1.599     +116 -121  src/sys/kern/vfs_subr.c



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