Osm2pgsql finished with only 51GB left on the SSD, in 155324s.
Not bad with only 12GB of RAM.
Will now get some more ram, add another SSD, and move some tables to the second SSD.
Interesting information about an import done on a Windows server, in january 2017 (also importing europe-latest…pbf, which took approximately 15 days, but using HDD:
https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks#Europe_import_on_Windows_Server_2012_HDD
Using an SSD is a huge timesaver. Note that I also tuned the postgresql config before the import started.
Most important HW and software now:
ASUS P6X58D Premium, Socket-1366
Intel® Core i7-960 Processor (Quad Core, 3,2 Ghz)
Corsair Dominator DHX DDR3 1600MHz 12GB (CL-9)
Samsung 860 EVO 500GB SSD
Seagate Barracuda 1TB 3.5" HDD (7200 RPM SATA 6GB)
Microsoft Windows 7 Pro
with europe-latest.osm.pbf on the HDD, and PostGIS and DB-tables on the SSD.
Can I continue importing other regions using --slim mode, if I now delete the node, rels and ways tables (slim tables)?
I’m not going to do any updates on the data laiter on anyway, and would like to get the extra space on the SSD.
Here is the output from osm2pgsql:
N:\osm2pgsql>osm2pgsql -s -U postgres -C 8000 --number-processes 4 -l -m -d osm -p planet_osm -E 3857 -S "N:\osm2pgsql\d
efault.style" T:\planet-osm-2018-07-28\europe-latest.osm.pbf
osm2pgsql version 0.96.0 (64 bit id space)
Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Allocating memory for sparse node cache
Node-cache: cache=8000MB, maxblocks=128000*65536, allocation method=9
Mid: pgsql, cache=8000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: T:\planet-osm-2018-07-28\europe-latest.osm.pbf
Using PBF parser.
Processing: Node(2118681k 234.0k/s) Way(257597k 7.15k/s) Relation(4049210 129.55/s) parse time: 76343s
Node stats: total(2118681939), max(5790611300) in 9056s
Way stats: total(257597642), max(611664115) in 36030s
Relation stats: total(4049276), max(8481686) in 31257s
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
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
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...
190530225 ways are pending
Using 4 helper-processes
Finished processing 190530225 ways in 40476 s
190530225 Pending ways took 40476s at a rate of 4707.24/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
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
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 4 helper-processes
Finished processing 0 relations in 0 s
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
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
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
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
node cache: stored: 524288001(24.75%), storage efficiency: 50.00% (dense blocks: 0,
sparse nodes: 524288001), hit rate: -69.67%
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_point
NOTICE: Self-intersection at or near point 587312.94433636917 6271092.4624617016
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Creating osm_id index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 1281s
Completed planet_osm_roads
Stopping table: planet_osm_nodes
Stopped table: planet_osm_nodes in 0s
Stopping table: planet_osm_ways
Building index on table: planet_osm_ways
NOTICE: Self-intersection at or near point 1659220.8248663542 7993093.1167870089
Creating osm_id index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 4398s
Completed planet_osm_point
Stopping table: planet_osm_rels
Building index on table: planet_osm_rels
Stopped table: planet_osm_rels in 295s
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
NOTICE: Self-intersection at or near point -506086.5913292435 5280209.9148441646
Creating osm_id index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 9563s
Completed planet_osm_line
NOTICE: Self-intersection at or near point 530333.30102692614 5918886.5543764178
NOTICE: Self-intersection at or near point 587312.91705696541 6271092.4234429011
Stopped table: planet_osm_ways in 30651s
Osm2pgsql took 155324s overall
N:\osm2pgsql>