-
Notifications
You must be signed in to change notification settings - Fork 10
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
Slow performance of osrm-extract inside Docker container #1
Comments
@miccolis @danpat any updates on your side here? We now publish tags and master to https://hub.docker.com/r/osrm/ and in the future we may want to use the Docker images for the demo server. The linked issue was fixed in Docker 1.12, and was caused by Linux' CFQ scheduler trying to balance I/O between cgroups. Docker 1.10.3 is in Ubuntu 16.04 but according to issue deadline sched (Ubuntu default) not affected. |
One thing that helped was explicitly setting the number of CPUs available to the container. Docker doesn't completely hide info from a container, so if you have a containers that tries to spawn threads for all CPUs there will be contention. Using the |
@sreeramvuppala You could just make a new Dockerfile that uses the OSRM image as a baselayer:
Then, you can put the |
Updated OSRM references to version 5.0.0 for docker
When running
osrm-extract
from inside a docker container, extraction is slower than if performed on the host machine itself, by about 25%.I can think of a few possibilities:
STXXL performs lots of I/O during
osrm-extract
- any overhead from the Docker FS layer here would hurt us.I have not tested
osrm-contract
orosrm-routed
performance at this stage./cc @miccolis
The text was updated successfully, but these errors were encountered: