diff --git a/cmd/hack/lmdb.go b/cmd/hack/lmdb.go index 3e7f3248e41..91ebe99c83b 100644 --- a/cmd/hack/lmdb.go +++ b/cmd/hack/lmdb.go @@ -229,16 +229,6 @@ func change1(tx ethdb.Tx) (bool, error) { return true, nil } -func doubleTap(_ ethdb.KV, tx ethdb.Tx) (bool, error) { - c := tx.Cursor("t") - defer c.Close() - k := fmt.Sprintf("%05d", 0) - if err := c.Put([]byte(k), []byte("another_short_value_2")); err != nil { - return false, err - } - return true, nil -} - func change2(tx ethdb.Tx) (bool, error) { c := tx.Cursor("t") defer c.Close() @@ -414,22 +404,7 @@ func defrag() error { if err := defragSteps("vis14", manyBucketCfg, generate8, func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return false, generate9(tx, 300000) }, dropGradually); err != nil { return err } - if err := defragSteps("noDoubleTap", oneBucketCfg, - func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return true, generate2(tx, 1000) }, - func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change1(tx) }, - func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change2(tx) }, - ); err != nil { - return err - } - if err := defragSteps("doubleTap", oneBucketCfg, - func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return true, generate2(tx, 1000) }, - func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change1(tx) }, - doubleTap, - func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change2(tx) }, - ); err != nil { - return err - } - if err := defragSteps("noReader", oneBucketCfg, + if err := defragSteps("vis15", oneBucketCfg, func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return true, generate2(tx, 1000) }, func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change1(tx) }, func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change2(tx) }, @@ -443,7 +418,7 @@ func defrag() error { } readerStartCh := make(chan struct{}) readerErrorCh := make(chan error) - if err := defragSteps("withReader", oneBucketCfg, + if err := defragSteps("vis16", oneBucketCfg, func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return true, generate2(tx, 1000) }, func(_ ethdb.KV, tx ethdb.Tx) (bool, error) { return change1(tx) }, func(kv ethdb.KV, tx ethdb.Tx) (bool, error) { diff --git a/docs/lmdb/vis10_0.png b/docs/lmdb/vis10_0.png new file mode 100644 index 00000000000..a7d34ded255 Binary files /dev/null and b/docs/lmdb/vis10_0.png differ diff --git a/docs/lmdb/vis10_1.png b/docs/lmdb/vis10_1.png new file mode 100644 index 00000000000..336063280ef Binary files /dev/null and b/docs/lmdb/vis10_1.png differ diff --git a/docs/lmdb/vis11_0.png b/docs/lmdb/vis11_0.png new file mode 100644 index 00000000000..a7d34ded255 Binary files /dev/null and b/docs/lmdb/vis11_0.png differ diff --git a/docs/lmdb/vis11_1.png b/docs/lmdb/vis11_1.png new file mode 100644 index 00000000000..336063280ef Binary files /dev/null and b/docs/lmdb/vis11_1.png differ diff --git a/docs/lmdb/vis11_2.png b/docs/lmdb/vis11_2.png new file mode 100644 index 00000000000..7b9916e9873 Binary files /dev/null and b/docs/lmdb/vis11_2.png differ diff --git a/docs/lmdb/vis12_1.png b/docs/lmdb/vis12_1.png new file mode 100644 index 00000000000..203837a3a0a Binary files /dev/null and b/docs/lmdb/vis12_1.png differ diff --git a/docs/lmdb/vis12_2.png b/docs/lmdb/vis12_2.png new file mode 100644 index 00000000000..a39dc29c01e Binary files /dev/null and b/docs/lmdb/vis12_2.png differ diff --git a/docs/lmdb/vis12_51.png b/docs/lmdb/vis12_51.png new file mode 100644 index 00000000000..a39dc29c01e Binary files /dev/null and b/docs/lmdb/vis12_51.png differ diff --git a/docs/lmdb/vis13_2.png b/docs/lmdb/vis13_2.png new file mode 100644 index 00000000000..e59edf591cb Binary files /dev/null and b/docs/lmdb/vis13_2.png differ diff --git a/docs/lmdb/vis14_2.png b/docs/lmdb/vis14_2.png new file mode 100644 index 00000000000..463c75c11c0 Binary files /dev/null and b/docs/lmdb/vis14_2.png differ diff --git a/docs/lmdb/vis14_51.png b/docs/lmdb/vis14_51.png new file mode 100644 index 00000000000..463c75c11c0 Binary files /dev/null and b/docs/lmdb/vis14_51.png differ diff --git a/docs/lmdb/vis15_0.png b/docs/lmdb/vis15_0.png new file mode 100644 index 00000000000..519adf56def Binary files /dev/null and b/docs/lmdb/vis15_0.png differ diff --git a/docs/lmdb/vis15_1.png b/docs/lmdb/vis15_1.png new file mode 100644 index 00000000000..e07673d2ddb Binary files /dev/null and b/docs/lmdb/vis15_1.png differ diff --git a/docs/lmdb/vis15_2.png b/docs/lmdb/vis15_2.png new file mode 100644 index 00000000000..314904b7322 Binary files /dev/null and b/docs/lmdb/vis15_2.png differ diff --git a/docs/lmdb/vis15_3.png b/docs/lmdb/vis15_3.png new file mode 100644 index 00000000000..e5d31275a20 Binary files /dev/null and b/docs/lmdb/vis15_3.png differ diff --git a/docs/lmdb/vis15_4.png b/docs/lmdb/vis15_4.png new file mode 100644 index 00000000000..12f18ea3da4 Binary files /dev/null and b/docs/lmdb/vis15_4.png differ diff --git a/docs/lmdb/vis15_5.png b/docs/lmdb/vis15_5.png new file mode 100644 index 00000000000..ba7404a41d9 Binary files /dev/null and b/docs/lmdb/vis15_5.png differ diff --git a/docs/lmdb/vis15_6.png b/docs/lmdb/vis15_6.png new file mode 100644 index 00000000000..19b85e71635 Binary files /dev/null and b/docs/lmdb/vis15_6.png differ diff --git a/docs/lmdb/vis15_7.png b/docs/lmdb/vis15_7.png new file mode 100644 index 00000000000..75646c6c286 Binary files /dev/null and b/docs/lmdb/vis15_7.png differ diff --git a/docs/lmdb/vis16_0.png b/docs/lmdb/vis16_0.png new file mode 100644 index 00000000000..519adf56def Binary files /dev/null and b/docs/lmdb/vis16_0.png differ diff --git a/docs/lmdb/vis16_1.png b/docs/lmdb/vis16_1.png new file mode 100644 index 00000000000..e07673d2ddb Binary files /dev/null and b/docs/lmdb/vis16_1.png differ diff --git a/docs/lmdb/vis16_3.png b/docs/lmdb/vis16_3.png new file mode 100644 index 00000000000..314904b7322 Binary files /dev/null and b/docs/lmdb/vis16_3.png differ diff --git a/docs/lmdb/vis16_4.png b/docs/lmdb/vis16_4.png new file mode 100644 index 00000000000..92bfb17ef01 Binary files /dev/null and b/docs/lmdb/vis16_4.png differ diff --git a/docs/lmdb/vis16_5.png b/docs/lmdb/vis16_5.png new file mode 100644 index 00000000000..9b53ff1e81a Binary files /dev/null and b/docs/lmdb/vis16_5.png differ diff --git a/docs/lmdb/vis16_6.png b/docs/lmdb/vis16_6.png new file mode 100644 index 00000000000..4d6553ccc24 Binary files /dev/null and b/docs/lmdb/vis16_6.png differ diff --git a/docs/lmdb/vis16_7.png b/docs/lmdb/vis16_7.png new file mode 100644 index 00000000000..667095b045b Binary files /dev/null and b/docs/lmdb/vis16_7.png differ diff --git a/docs/lmdb/vis16_8.png b/docs/lmdb/vis16_8.png new file mode 100644 index 00000000000..9493c558ccc Binary files /dev/null and b/docs/lmdb/vis16_8.png differ diff --git a/docs/lmdb/vis1_0.png b/docs/lmdb/vis1_0.png new file mode 100644 index 00000000000..6116289c5cf Binary files /dev/null and b/docs/lmdb/vis1_0.png differ diff --git a/docs/lmdb/vis2_0.png b/docs/lmdb/vis2_0.png new file mode 100644 index 00000000000..9a286b84951 Binary files /dev/null and b/docs/lmdb/vis2_0.png differ diff --git a/docs/lmdb/vis3_0.png b/docs/lmdb/vis3_0.png new file mode 100644 index 00000000000..37b006054b2 Binary files /dev/null and b/docs/lmdb/vis3_0.png differ diff --git a/docs/lmdb/vis4_0.png b/docs/lmdb/vis4_0.png new file mode 100644 index 00000000000..72007824a64 Binary files /dev/null and b/docs/lmdb/vis4_0.png differ diff --git a/docs/lmdb/vis5_0.png b/docs/lmdb/vis5_0.png new file mode 100644 index 00000000000..c9f96ffb1d0 Binary files /dev/null and b/docs/lmdb/vis5_0.png differ diff --git a/docs/lmdb/vis6_0.png b/docs/lmdb/vis6_0.png new file mode 100644 index 00000000000..76f113150a6 Binary files /dev/null and b/docs/lmdb/vis6_0.png differ diff --git a/docs/lmdb/vis7_0.png b/docs/lmdb/vis7_0.png new file mode 100644 index 00000000000..429042b97c0 Binary files /dev/null and b/docs/lmdb/vis7_0.png differ diff --git a/docs/lmdb/vis8_0.png b/docs/lmdb/vis8_0.png new file mode 100644 index 00000000000..56070382ce0 Binary files /dev/null and b/docs/lmdb/vis8_0.png differ diff --git a/docs/lmdb/vis8_1.png b/docs/lmdb/vis8_1.png new file mode 100644 index 00000000000..e91904a14d1 Binary files /dev/null and b/docs/lmdb/vis8_1.png differ diff --git a/docs/lmdb/vis9_0.png b/docs/lmdb/vis9_0.png new file mode 100644 index 00000000000..a7d34ded255 Binary files /dev/null and b/docs/lmdb/vis9_0.png differ