看板 DFBSD_commit 關於我們 聯絡資訊
commit 39d8fd636004057de2f4039d0c527e8a5194fb08 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Jun 20 16:53:21 2009 -0700 HAMER VFS - Cache additional b-tree nodes in directory. * Cache inode record cursors in the directory at dip->cache[2] to reduce cpu overhead when iterating a directory. * Cache file object record cursors in the file's governing directory at dip->cache[3] after reading the last data record in a file, to reduce cpu overhead when chain-reading files. * Also add vfs.hammer.stats_btree_root_iterations, a counter which is incremented whenever a B-Tree search is initiated from the root node. Summary of changes: sys/vfs/hammer/hammer.h | 6 +++- sys/vfs/hammer/hammer_cursor.c | 3 ++ sys/vfs/hammer/hammer_inode.c | 65 +++++++++++++++++++++++++++++++++++++-- sys/vfs/hammer/hammer_vfsops.c | 3 ++ sys/vfs/hammer/hammer_vnops.c | 20 ++++++++++++ 5 files changed, 92 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/39d8fd636004057de2f4039d0c527e8a5194fb08 -- DragonFly BSD source repository