git: hammer - Collect record statistics, implement ^T and ^C

看板DFBSD_commit作者時間14年前 (2011/08/04 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit e9c8ad3de06380d50c82602e718613d908c1ac59 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Aug 3 18:42:38 2011 -0700 hammer - Collect record statistics, implement ^T and ^C * Add a check for ^C * Add a check for ^T and print statistics. * When doing the dedup for real run a pre-pass on the b-tree to count the number of data records present so the ^T feature can print out progress. This also has the side effect of doing locality-of-reference disk accesses to allow the b-tree data blocks to be cached by the kernel (or swapcache) before doing the real pass which will insert random data block reads when verifying duplicates. Due to the efficiencies both passes should run faster than the original combined pass, or at least not take too much longer. Summary of changes: sbin/hammer/cmd_dedup.c | 69 ++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 62 insertions(+), 7 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e9c8ad3de06380d50c82602e718613d908c1ac59 -- DragonFly BSD source repository
文章代碼(AID): #1EEVrXPY (DFBSD_commit)