git: hammer - Add simple I/O optimization, collect stats on new

看板DFBSD_commit作者時間14年前 (2011/08/04 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 178820278fb09e3fd57312a9d6eda54040fda374 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Aug 3 19:41:22 2011 -0700 hammer - Add simple I/O optimization, collect stats on new deduplications * Add a simple I/O optimization. When dealing with CRC collisions scan the SHA sub-tree looking for the data_offset/data_len match, allowing us to avoid unnecessary I/O reads. This effects data which has already been de-duplicated, so it will improve dedup rescan times on the portion that has already been dedupped. * Collect statistics on NEW deduplications during the pass and print them out in the final stats as well as in the ^T stats. Summary of changes: sbin/hammer/cmd_dedup.c | 81 ++++++++++++++++++++++++++++++++++------------- 1 files changed, 59 insertions(+), 22 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/178820278fb09e3fd57312a9d6eda54040fda374 -- DragonFly BSD source repository
文章代碼(AID): #1EEWjpt_ (DFBSD_commit)