DragonFly BSD
DragonFly commits List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: VFS accounting: add in-memory storage counters


From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Dec 2011 15:34:39 -0800 (PST)

commit 95bf5f78c7cc3efd179978b5b65d2dcd1506d018
Author: Francois Tigeot <ftigeot@wolfpond.org>
Date:   Sat Aug 13 11:34:39 2011 +0200

    VFS accounting: add in-memory storage counters
    
    * Use a red-black tree of small arrays to store uid and gid accounting
      information.
      User and group ids often come in small groups of consecutive numbers;
      small arrays have a high probability of having more than one element
      used at the same time, reducing pointer chasing in the binary tree.
    
    * Also use a global per mount-point counter
    
    * Only enable data collection for volumes which have been properly
      initialized
    
    * Protect the counters by a per mount-point spinlock

Summary of changes:
 sys/kern/vfs_default.c |   14 ------
 sys/kern/vfs_init.c    |    3 -
 sys/kern/vfs_quota.c   |  114 ++++++++++++++++++++++++++++++++++++++++++++++-
 sys/sys/mount.h        |   35 ++++++++++++++-
 sys/sys/vfs_quota.h    |    7 +--
 5 files changed, 147 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95bf5f78c7cc3efd179978b5b65d2dcd1506d018


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]