Skip to content

Commit

Permalink
Lmdb visualisation + freelist stability fixes (#1345)
Browse files Browse the repository at this point in the history
* Visualisations

* Use graphviz records

* Fix lint

* Fix lint

* Reduced leaf pages

* Fix

* Overflow pages

* Fix lint

* Fix lint

* Fix lint

* Add dupsort generate

* DupSort experiments

* Add dupsort nodes

* More interesting dupsort

* freelist

* Fragmented freelist

* Fix lint

* drop T2 too

* Handle overflow pages in FREE_DBI

* Skipping in the MAIN_DBI leaves

* Switch to double-tap LMDB

* Fix to double-tap

* With/without reader visualisations

* Flip flopping without reader

* Tidy mods

* Fix lint, switch to new lmdb-go release

* mod tidy
  • Loading branch information
AlexeyAkhunov authored Nov 11, 2020
1 parent ed96726 commit e71c3ca
Show file tree
Hide file tree
Showing 4 changed files with 937 additions and 33 deletions.
8 changes: 7 additions & 1 deletion cmd/hack/hack.go
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,13 @@ func main() {
}
}
if *action == "defrag" {
if err := defrag(*chaindata); err != nil {
if err := defrag(); err != nil {
fmt.Printf("Error: %v\n", err)
}
}
if *action == "textInfo" {
sb := strings.Builder{}
if err := textInfo(*chaindata, &sb); err != nil {
fmt.Printf("Error: %v\n", err)
}
}
Expand Down
Loading

0 comments on commit e71c3ca

Please sign in to comment.