I have seen references to this all over the internet, but I am just trying to figure out how long this may take if it works, and if not, then what setting to go with. The Server I am setting up is just to display some offline maps, nothing super fancy or critical, so I tried to throw OSM on an old server I had lying around. everything went smooth until Time to import data into the database, and after around 3 days the Process killed itself. I tried changing a few specs in the command but it once again failed after a few days, so I decided to dig out a pretty decent workstation running a 4 core Xenon processor and 16Gb of RAM. I am very new to OSM and I am following the tutorial on teh OSM site to get this up and running, so I used the basic command that was given on the tutorial |
North America's quite large - I'd suggest testing on something small first (a small US state, perhaps). With 16Gb memory you can probably allocate more cache. With 4 cores you can probably allocate more processes.
How long your current import will take will depend on a number of other issues, such as speed of disk.
I did test with a small file each time that I have done this, just to be sure everything was running correctly, and it did work. So for now while I assume it is still running, I assume all I can really do is wait and see what happens. Here is the last block of info I have since loading the data to the database.
Reading in file: /home/k7msh/data/north-america-latest.osm.pbf Using PBF parser. Processing: Node(995524k 190.9k/s) Way(75654k 0.89k/s) Relation(762060 17.39/s) parse time: 134134s Node stats: total(995524996), max(5787934253) in 5216s Way stats: total(75654254), max(611291042) in 85089s Relation stats: total(762074), max(8479578) in 43829s 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 lua based tag processing pipeline with script /home/k7msh/src/openstreetmap-carto/openstreetmap-carto.lua
Going over pending ways... 36685077 ways are pending
Using 1 helper-processes