Skip to content

Instantly share code, notes, and snippets.

@mipapo
Created July 19, 2016 12:25
Show Gist options
  • Save mipapo/85a611faccad0f37b556319be11bdc48 to your computer and use it in GitHub Desktop.
Save mipapo/85a611faccad0f37b556319be11bdc48 to your computer and use it in GitHub Desktop.
Importing germany-latest OSM
osm2pgsql -c -d gis --slim germany-latest.osm
24GiB RAM
Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz (4x)
Node stats: total(246102132), max(4306413897) in 1002s
Way stats: total(39447147), max(431445662) in 2087s
Relation stats: total(530858), max(6417662) in 1982s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Going over pending ways...
28718098 ways are pending
Using 1 helper-processes
Finished processing 28718098 ways in 10506 sec
28718098 Pending ways took 10506s at a rate of 2733.49/s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Going over pending relations...
0 relations are pending
Using 1 helper-processes
Finished processing 0 relations in 0 sec
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_polygon
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_point
Stopping table: planet_osm_ways
Building index on table: planet_osm_ways
Stopping table: planet_osm_rels
Building index on table: planet_osm_rels
Stopping table: planet_osm_nodes
Stopped table: planet_osm_nodes in 0s
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Stopped table: planet_osm_rels in 90s
Creating osm_id index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 95s
Completed planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
Creating osm_id index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 527s
Completed planet_osm_point
Copying planet_osm_polygon to cluster by geometry finished
Creating geometry index on planet_osm_polygon
Creating osm_id index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 1030s
Completed planet_osm_line
Creating osm_id index on planet_osm_polygon
Creating indexes on planet_osm_polygon finished
All indexes on planet_osm_polygon created in 2027s
Completed planet_osm_polygon
Stopped table: planet_osm_ways in 2320s
node cache: stored: 54651263(22.21%), storage efficiency: 52.12% (dense blocks: 4701, sparse nodes: 50021889), hit rate: 26.26%
Osm2pgsql took 17899s overall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment