ledgerwatch / erigon-lib

Dependencies of Erigon project, rewritten from scratch and licensed under Apache 2.0
Apache License 2.0
59 stars 93 forks source link

add map size setter #1050

Closed mh0lt closed 1 year ago

mh0lt commented 1 year ago

Add a bound the txpool db, rather than leaving it as the default of 2TB. This is to reduce the page file profile when running multiple nodes from around 3.5GB per txpool instance.

The current pool map side is set to 512MB - which seems reasonable with 16MB increments