Hello everyone,
I would like to run osrm on my local machine on a 2.9G osm-file (namely Germany). As my machine does not have enough resources I would like to provide a swap file, which I did with:
(as root in root directory)
(mkdir /path/to/)
fallocate -l 10G /path/to/swapfile
chmod 600 /path/to/swapfile
mkswap /path/to/swapfile
swapon /path/to/swapfile
still after about 40 minutes into osrm-extract I got (full logs of osrm-extract):./osrm-extract -p profiles/car.lua germany-latest.osm.pbf
[info] Parsed 0 location-dependent features with 0 GeoJSON polygons
[info] Using script profiles/car.lua
[info] Input file: germany-latest.osm.pbf
[info] Profile: car.lua
[info] Threads: 1
[info] Parsing in progress..
[info] input file generated by osmium/1.8.0
[info] timestamp: 2019-02-12T21:14:02Z
[info] Using profile api version 4
[info] Found 3 turn restriction tags:
[info] motorcar
[info] motor_vehicle
[info] vehicle
[info] Parse relations ...
[info] Parse ways and nodes ...[info] RAM: peak bytes used: 4516651008
[error] [exception] std::bad_alloc
[error] Please provide more memory or consider using a larger swapfileAs I was monitoring my memory usage over top I could see that there was a lot of swap space left.My .stxxl-file (located inside the folder where I executed osrm-extract):disk=/path/to/swapfile,9000,syscallI'm running Ubuntu 18.04 (in a VM) with 5GB of RAM and a Disk of 30 GB.So I probably missed something somewhere.Would would you recommend? Can I even hope to use libosrm on germany with these resources?Any assistence is greater appreciated.Thank you!
_______________________________________________ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk