Italy vs Europe performances #6840
Replies: 2 comments
-
Italy seems to fit into RAM (you write fully loaded in memory) and Europe is for sure larger than the 4Gb of Ram you have. So routes will be answered from disk which is orders of magnitude slower than RAM. |
Beta Was this translation helpful? Give feedback.
-
Hi @datendelphin , I have increased the RAM of the EU server to 64Gb so that I do not need They are comparable, or rather, EU is even better (I suppose this is due to the highest number of cpu this server has, what do you think?) Thanks so much for help! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I've two separeted OSRM deployment, on two different servers. One only has Italy maps, the other the full Europe maps. The problem is that I see 15x difference in performances (runtime in seconds) when using the
route
service on the exact same coordinates.I tested the
/route/v1/car
endpoint with the following parametersalternatives=false steps=false overview=false continue_straight=false skip_waypoints=true generate_hints=false
In the following image you can see the histogram of the time taken to respond. Each run of the experiment gets 50 random coordinates (in Italy) and send them both to ITA and EU server and runtime is recorded.
EU server is 15 times slower.
For the deployment I'm using docker on both servers with 2CPU and 4Gb RAM (aws ec2 t3.medium). The real difference between the deployments is:
--mmap=on
to make osrm runningOther paramenter used:
--max-matching-size 1000 --max-table-size 1000 --max-viaroute-size 1000 --algorithm mld
What do you think is generating this difference?
Is there any point of attention I should take care of when working with EU maps?
Thanks for help
Beta Was this translation helpful? Give feedback.
All reactions