Skip to content

Automatically lower max open file #9503

@asdacap

Description

@asdacap

Is your feature request related to a problem? Please describe.

  • On OSX especially, by default nethermind will probably crash during syncing due to open file limit.
  • This can be mitigated with something like --Db.MaxOpenFiles 3000.
  • This is unclear especially because the error message is Out of memory.

Describe the solution you'd like

  • Automatically detect the limit, and set a reasonably lower limit. Remember the limit is applied to each db separately, so combined, it may still exceed it.

Describe alternatives you've considered

  • Set a default lower limit, but that will definitely slow down the node.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions