bitcoindevkit / bitcoindevkit/rust-electrum-client
Very high memory consumption (that is never freed) when running `batch_script_get_history`
- Lingua principale
- Rust
- Stelle
- 89
- Fork
- 82
- Merge medio
- 2g 3h
- PR unite (30g)
- 1
Descrizione
When running `batch_script_get_history` on a Linux machine with processing many scripts the memory consumption is enormous and does not go down. This test showcases this behavior.
When triggering the test with `7000` scripts we see a memory consumption of about `4GB`.
Note that you can add a loop to re-trigger the batching to see that the memory does not get freed.
This problem could be reproduced on multiple Linux machine, but not on MacOS.
I opened this Draft PR that contains a test that we used to reproduce this behavior: #89
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia con il test di riproduzione nella bozza della PR #89 e con l’implementazione di `batch_script_get_history`; eseguili con 7.000 script su Linux e ripeti il batch per misurare la memoria trattenuta. Il lavoro è completato quando la memoria non cresce più né rimane trattenuta dopo esecuzioni ripetute, il test di regressione passa su Linux e il comportamento su macOS è preservato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100