Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/geth: handle memfixes on 32bit arch with large RAM #21028

Merged
merged 1 commit into from
May 6, 2020

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented May 5, 2020

If a 32bit Geth is ran on a system with a lot of RAM (e.g. AppVeyor 32bit test), Geth will bump the memory request to 4GB, which will cause an OOM since we cannot address that much. This PR adds a fine tuning so that if we're on a 32 bit platform (or rather have 32 bit pointers), then we cap the memory Geth will use accordingly.

I'm unsure what the correct value is. The theoretical max in 4GB RAM, Windows I know only allows about 3 to be used.

@karalabe karalabe force-pushed the memfix-32bit-arch branch from 23cff6a to 8f8ff8d Compare May 5, 2020 11:23
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karalabe karalabe added this to the 1.9.14 milestone May 6, 2020
@karalabe karalabe merged commit 292570a into ethereum:master May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants