Skip to content

Instantly share code, notes, and snippets.

@emiltin
Created August 12, 2014 13:27
Show Gist options
  • Select an option

  • Save emiltin/f6b438854213a5359b89 to your computer and use it in GitHub Desktop.

Select an option

Save emiltin/f6b438854213a5359b89 to your computer and use it in GitHub Desktop.
travel_mode
feature/travel_mode
~/code/osrm-backend$ (feature/travel_mode) rake process denmark
[info] Input file: denmark.osm.pbf
[info] Profile: bicycle.lua
[info] Threads: 4
[info] Using script ../profiles/bicycle.lua
[STXXL-MSG] STXXL v1.3.1 (release)
[STXXL-ERRMSG] Warning: no config file found.
[STXXL-ERRMSG] Using default disk configuration.
[STXXL-MSG] 1 disks are allocated, total space: 1000 MiB
[info] Ignoring turn restrictions
[info] Found 3 exceptions to turn restrictions:
[info] bicycle
[info] vehicle
[info] access
[info] Parsing in progress..
[info] Parsing finished after 93.361 seconds
[extractor] Sorting used nodes ... ok, after 0.316s
[extractor] Erasing duplicate nodes ... ok, after 0.097s
[extractor] Sorting all nodes ... ok, after 0.919s
[extractor] Sorting used ways ... ok, after 0.081s
[extractor] Sorting restrictions. by from... ok, after 0s
[extractor] Fixing restriction starts ... ok, after 0s
[extractor] Sorting restrictions. by to ... ok, after 0s
[extractor] Fixing restriction ends ... ok, after 0s
[info] usable restrictions: 0
[extractor] Confirming/Writing used nodes ... ok, after 1.007s
[extractor] setting number of nodes ... ok
[extractor] Sorting edges by start ... ok, after 1.213s
[extractor] Setting start coords ... ok, after 1.453s
[extractor] Sorting edges by target ... ok, after 1.215s
[extractor] Setting target coords ... ok, after 2.821s
[extractor] setting number of edges ... ok
[extractor] writing street name index ... ok, after 0.005s
[info] Processed 2906488 nodes and 3185330 edges
[info] extraction finished after 102.926s
[info] To prepare the data for routing, run: ./osrm-prepare denmark.osrm
[STXXL-ERRMSG] Removing disk file created from default configuration: /var/tmp/stxxl
[info] Input file: denmark.osrm
[info] Restrictions file: denmark.osrm.restrictions
[info] Profile: bicycle.lua
[info] Threads: 4
[info] sizeof(ImportEdge): 20
[info] sizeof(NodeBasedEdgeData): 16
[info] Importing n = 2906488 nodes
[info] and 3185330 edges
[info] Graph loaded ok and has 3182103 edges
[info] 0 restrictions, 671 bollard nodes, 3462 traffic lights
[info] Generating edge-expanded graph representation
[info] merged 0 edges out of 6234018
[info] Removing graph geometry while preserving topology
. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] removed 2048707 nodes
[info] Geometry successfully removed:
compressed edges: 1083300
compressed geometries: 5179654
longest chain length: 494
cmpr ratio: 0.209145
avg chain length: 4.78137
[info] new nodes: 857781, edges 2136604
[info] Node compression ratio: 0.295126
[info] Edge compression ratio: 0.342733
[info] Identifying components of the road network
[info] identified: 2061517 many components
[info] generating edge-expanded nodes
. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Generated 3116998 nodes in edge-expanded graph
[info] generating edge-expanded edges
. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Generated 3116998 edge based nodes
[info] Node-based graph contains 2129490 edges
[info] Edge-expanded graph ...
[info] contains 4152126 edges
[info] skips 0 turns, defined by 0 restrictions
[info] skips 1913401 U turns
[info] skips 1318 turns over barriers
[info] Timing statistics for edge-expanded graph:
[info] Geometry compression: 2.657s
[info] Renumbering edges: 0.019s
[info] Generating nodes: 1.234s
[info] Generating edges: 3.749s
[info] building r-tree ...
[info] constructing r-tree of 3116998 edge elements build on-top of 2906488 coordinates
[info] finished r-tree construction in 1.734 seconds
[info] using hardware based CRC32 computation
[info] CRC32: 3811007317
[info] writing node map ...
[info] initializing contractor
[STXXL-MSG] STXXL v1.3.1 (release)
[STXXL-ERRMSG] Warning: no config file found.
[STXXL-ERRMSG] Using default disk configuration.
[STXXL-MSG] 1 disks are allocated, total space: 1000 MiB
merged 5990 edges out of 8304252
contractor finished initalization
initializing elimination PQ ...ok
preprocessing 2129490 nodes .... 10% . 20% . 30% . 40% . 50% . 60% . [flush 1393790 nodes] 70% . 80% . 90% . 100%
[info] Contraction took 470.64 sec
[info] Getting edges of minimized graph
. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Serializing compacted graph of 12070021 edges
[info] Building node array
[info] Serializing node array
[info] Building edge array
[info] Preprocessing : 489.411 seconds
[info] Expansion : 215232 nodes/sec and 157693 edges/sec
[info] Contraction: 4524.67 nodes/sec and 25646 edges/sec
[info] finished preprocessing
[STXXL-ERRMSG] Removing disk file created from default configuration: /var/tmp/stxxl
~/code/osrm-backend$ (feature/travel_mode) ls -l sandbox/denmark.osrm*
-rw-r--r-- 1 emil staff 138878542 Aug 12 14:38 sandbox/denmark.osrm
-rw-r--r-- 1 emil staff 49825516 Aug 12 14:39 sandbox/denmark.osrm.edges
-rw-r--r-- 1 emil staff 137162648 Aug 12 14:39 sandbox/denmark.osrm.fileIndex
-rw-r--r-- 1 emil staff 25051828 Aug 12 14:39 sandbox/denmark.osrm.geometry
-rw-r--r-- 1 emil staff 153358384 Aug 12 14:46 sandbox/denmark.osrm.hsgr
-rw-r--r-- 1 emil staff 727785 Aug 12 14:38 sandbox/denmark.osrm.names
-rw-r--r-- 1 emil staff 34877860 Aug 12 14:39 sandbox/denmark.osrm.nodes
-rw-r--r-- 1 emil staff 853672 Aug 12 14:39 sandbox/denmark.osrm.ramIndex
-rw-r--r-- 1 emil staff 160 Aug 12 14:38 sandbox/denmark.osrm.restrictions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment