git: HAMMER VFS - Improve initial B-Tree packing

看板DFBSD_commit作者時間16年前 (2010/02/09 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit fa2b9a03ee6eefbf2c87a4d9852f4da3a96a0d50 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Feb 9 00:10:26 2010 -0800 HAMMER VFS - Improve initial B-Tree packing * Detect the case where B-Tree leafs are being laid down sequentially, such as when creating a large file. When linear operation is detected split leafs 75:25 instead of 50:50. This greatly improves fill ratios. It should be noted that the HAMMER flush sorts by inode so directory entries will also tend to benefit. * This only effects (improves) the initial B-Tree layout. The overnight hammer cleanup will refactor the B-Tree to a more optimal state regardless. Summary of changes: sys/vfs/hammer/hammer.h | 1 + sys/vfs/hammer/hammer_btree.c | 58 +++++++++++++++++++++++++++++++--------- sys/vfs/hammer/hammer_inode.c | 7 ++++- 3 files changed, 52 insertions(+), 14 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fa2b9a03ee6eefbf2c87a4d9852f4da3a96a0d50 -- DragonFly BSD source repository
文章代碼(AID): #1BSHs7kC (DFBSD_commit)