erigon-pulse/node/nodecfg
Mark Holt 5935b11b24
Devnet macos startup and windows committed memory startup fixes (#7832)
The fixes here fix a couple of issues related to devnet start-up

1. macos threading and syscall error return where causing multi node
start to both not wait and fail
2. On windows creating DB's with the default 2 TB mapsize causes the os
to reserve about 4GB of committed memory per DB. This may not be used -
but is reserved by the OS - so a default bor node reserves around 10GB
of storage. Starting many nodes causes the OS page file to become
exhausted.

To fix this the consensus DB's now use the node's OpenDatabase function
rather than their own, which means that the consensus DB's take notice
of the config.MdbxDBSizeLimit.

This fix leaves one 4GB committed memory allocation in the TX pool which
needs its own MapSize setting.

---------

Co-authored-by: Alex Sharp <akhounov@gmail.com>
2023-07-02 22:37:23 +01:00
..
config_test.go [Devnet tool] Side-quest to improve logging - part 1 (#7445) 2023-05-07 07:28:15 +01:00
config.go Devnet macos startup and windows committed memory startup fixes (#7832) 2023-07-02 22:37:23 +01:00
defaults.go [devnet tool] fixing port conflicts (#7520) 2023-05-15 20:31:35 +01:00