From 9a7f82c57d23b532c16ffdc446c248364a8b70e0 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 15 Sep 2021 19:20:33 +0200 Subject: add perf output --- docs/note-2021-09-15.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'docs/note-2021-09-15.md') diff --git a/docs/note-2021-09-15.md b/docs/note-2021-09-15.md index 8caf1cc..4b9dc9c 100644 --- a/docs/note-2021-09-15.md +++ b/docs/note-2021-09-15.md @@ -1,6 +1,27 @@ Added storage worker ==================== -## Time +This worker is charged to make IO calls when storing chunk data. This way writes +are asynchronous and `matchChunks` can continue without being interrupted. -`14:49:00.221` -> `14:51:34.009` = `00:02:33.788` +perf output +----------- + +``` + 238 109,33 msec task-clock # 1,597 CPUs utilized + 683 140 context-switches # 0,003 M/sec + 13 181 cpu-migrations # 0,055 K/sec + 65 129 page-faults # 0,274 K/sec + 657 925 115 947 cycles # 2,763 GHz + 1 007 554 842 920 instructions # 1,53 insn per cycle + 135 946 178 728 branches # 570,940 M/sec + 2 360 293 394 branch-misses # 1,74% of all branches + + 149,118546976 seconds time elapsed + + 226,961825000 seconds user + 18,354254000 seconds sys +``` + +This is not a huge improvement, but at the same time, hashes are stored which +makes them a lot faster to recover (no need for rehashing every existing chunk). -- cgit v1.2.3