git: VFS accounting: add in-memory storage counters

看板DFBSD_commit作者時間14年前 (2011/12/28 02:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1E-WZHwg (DFBSD_commit)