aboutsummaryrefslogtreecommitdiff
path: root/docs/note-2021-09-15.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/note-2021-09-15.md')
-rw-r--r--docs/note-2021-09-15.md25
1 files changed, 23 insertions, 2 deletions
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).