I have built my own OSM server and I am trying now to import UK into my Postgis database using osm2pgsql. I have changed the data directory of the database (succesfully) and I have mounted a Samsung 850 EVO SSD on it. The issue is, I do not see any speed increase when using SSD compared to a normal import using HDD. Osm2pgsql configuration is like this:
osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script openstreetmap-carto.lua -C 3500 --number-processes 1 -S carto.style UK.osm.pbf
(Working in a Ubuntu 16.04 virtual machine of 5GB RAM)
Nodes and ways are being imported at a speed of 80 k/s and 0.10 k/s in average in both cases, respectively. Any idea about what could be happening?
*I am 99% sure I am importing into the SSD device as when I import a smaller region its free size decreases.