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

How much resource do I need to build planet tiles? #2384

Closed
junior-yoda opened this issue May 19, 2020 · 8 comments
Closed

How much resource do I need to build planet tiles? #2384

junior-yoda opened this issue May 19, 2020 · 8 comments

Comments

@junior-yoda
Copy link

valhalla_build_tiles is killed and it seems it's because of high RAM usage, Machine which tiles are build on contains 32GB of RAM. Is this a bug or it really needs more RAM?
How much RAM do I need?
ram

@kevinkreiser
Copy link
Member

@junior-yoda it shouldnt need that much ram but it will use as much ram as it can (it memory maps files that are many 10s of gigabytes). memory mapping can make it appear as if you are ram limitted but its not always the case. can you tell us what message you see when its killed? what the return code is? what stage of the data processing it has reached?

there are been a decent amount of changes as late and im fairly certain we havent been very strict with our memory requirements so they may have grown. @gknisely what kind of ram usage do you see in your latest runs?

@gknisely
Copy link
Member

@junior-yoda all of our conversions are running on tasks that have 16GB of RAM.

@junior-yoda
Copy link
Author

junior-yoda commented May 20, 2020

@kevinkreiser There is no special return code or error message but here is full log, which may help.
I also retried and same thing happend.

@kevinkreiser
Copy link
Member

kevinkreiser commented May 20, 2020

Killed does indeed sound like out of memory. @junior-yoda are you running master? Looks like its in the enhancer phase as well.. We did have some recent changes in there wrt speeds ups. Can you try a commit before this one: #2349 or perhaps even earlier to see if its related?

@dnesbitt61
Copy link
Member

was running with 24 threads I believe. Could that be the issue?

@kevinkreiser
Copy link
Member

@dnesbitt61 good suggestion. have you tried with less parallelism @junior-yoda? also please note, you can resume your run from the enhancer stage by using the checkpointing feature of valhalla_build_tiles. doing this can save you time in debugging.

@junior-yoda
Copy link
Author

@dnesbitt61 @kevinkreiser I'm using release tag 3.0.8. You mean this amount of parallelism could be the reason of high RAM usage? I guess it seems promising, I will try less parallelism and let you know the result.
I didn't know there is a checkpoint feature, it can be really helpful. Thanks.

@junior-yoda
Copy link
Author

junior-yoda commented Jun 6, 2020

@kevinkreiser Limiting build process to 4 cores of CPU solved the problem. Thanks.

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

No branches or pull requests

4 participants