From 576cf0c19db245a6b801b026fa7d0c69f73ccd26 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 28 Feb 2021 23:47:00 +0100 Subject: [PATCH] note on `tcconfig` --- Debugging.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Debugging.md b/Debugging.md index e8a2af6..187905d 100644 --- a/Debugging.md +++ b/Debugging.md @@ -1,3 +1,16 @@ +## Debugging Setup + +* Create 2 VMs, configure a file-backed ZFS pool on each of them +* The VMs should share a private network or a bridge network with the host +* Write yourself some scripting to build the zrepl binary on the host and scp it into the guests + +### Tasks: + +* Reduce network bandwidth between the VMs: + * Use https://github.com/thombashi/tcconfig instead of Linux `tc` + * `tcset eth0 --rate 100Mbps --direction incoming --src-network 192.168.124.233/32 --overwrite` + + ## Memory Leaks & Goroutine Leaks Good exapmles for situations where the following instructions helped with debugging: