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

Disk and Memory Requirements #5265

Closed
raquelgdes opened this issue Nov 13, 2018 · 15 comments
Closed

Disk and Memory Requirements #5265

raquelgdes opened this issue Nov 13, 2018 · 15 comments
Labels

Comments

@raquelgdes
Copy link

Hi! I just want to use OSRM for routes in a country (Portugal), do I need the same requirements described here: https://github.com/Project-OSRM/osrm-backend/wiki/Disk-and-Memory-Requirements, or can I work with 4/16 GB of RAM?

@jcoupey
Copy link

jcoupey commented Nov 13, 2018

@raquelgdes 16 GB is OK to run on a France extract so it should be fine for Portugal too. Probably less would also do, given the OSM extract is much smaller. Your best bet is to try.

@buildscientist
Copy link

Any estimate on what it would take to run N. America? Thanks

@RamYadlapalli
Copy link

Any estimate on what it would take to run N. America? Thanks

I processed entire North America (https://download.geofabrik.de/north-america.html) with 64 GB RAM and 4 cores. I tried with 32 GB first and end up getting not enough RAM error while running OSRM-contract

@mkallaoun
Copy link

I am having trouble finding a linux server hosting solution with this much ram thats not astronomically priced per year. You guys have any advice on a hosting solution?

@danpat
Copy link
Member

danpat commented Nov 1, 2019

@mkallaoun There is no magic solution here - it's expensive to use this software on a large scale.

One suggestion: it takes significantly more RAM to process the data than it does to host it. As long as you keep the operating systems/machine architectures the same, you can rent a huge box for a short period to generate the routing files, then move them to a smaller box to actually perform route calculations on.

If query performance isn't super important to you, you can also look at the --mmap option of osrm-routed - this will "memory map" the datafiles and read parts of them off-disk on-demand. This slows down queries, but may be OK for your use-case. Typically, if you've got some hot spots where lots of routes are calculated, the filesystem cache will eventually have most of the important parts of the files in memory and queries can be reasonably fast.

@erlangparasu
Copy link

erlangparasu commented Nov 28, 2019

to much RAM sir.. i even can not try in my laptop :(

@danpat
Copy link
Member

danpat commented Dec 2, 2019

@erlangp If you just want to try the software out, you can use a small country map extract from OSM, like Moldova. These only require a few 10s of MB of RAM.

@systemed
Copy link
Member

systemed commented Dec 4, 2019

@mkallaoun Hetzner or OVH

@jfpalngipang
Copy link

How did the osrm for Portugal on 16GB RAM work for you, @raquelgdes?

@kaushikray1
Copy link

kaushikray1 commented Jul 4, 2020

Any estimate on what it would take to run N. America? Thanks

I did this with docker and it looks about 74Gb ram to preprocess and then about 36 to run the car profile.

@kaplgarg1
Copy link

any idea about how much time it will take for INDIA ANd resources required for that?

@kaushikray1
Copy link

kaushikray1 commented Aug 19, 2020 via email

@broomfn
Copy link

broomfn commented Mar 3, 2022

Does anyone know the specs that the demo site is running on here?....https://map.project-osrm.org/

@nilsnolde
Copy link
Contributor

Copy link

github-actions bot commented Jul 8, 2024

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Jul 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests