erigon-pulse/node
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
..
nodecfg Devnet macos startup and windows committed memory startup fixes (#7832) 2023-07-02 22:37:23 +01:00
doc.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
endpoints.go Cleaned up error handling in network and node start-up (#7811) 2023-06-28 18:21:15 +01:00
errors.go Refactoring To Increase Code Quality (#4842) 2022-08-04 20:23:00 +07:00
lifecycle.go node: refactor package node (#21105) 2020-08-14 16:33:59 +02:00
node_example_test.go [Devnet tool] Side-quest to improve logging - part 1 (#7445) 2023-05-07 07:28:15 +01:00
node_test.go Devnet macos startup and windows committed memory startup fixes (#7832) 2023-07-02 22:37:23 +01:00
node.go Devnet macos startup and windows committed memory startup fixes (#7832) 2023-07-02 22:37:23 +01:00
rpcstack_test.go 7667 cli params vhost (#7669) 2023-06-09 14:12:11 +01:00
rpcstack.go 7667 cli params vhost (#7669) 2023-06-09 14:12:11 +01:00
utils_test.go Remove unused code from Node struct (#6978) 2023-03-01 08:04:27 +00:00