I want to use osmosis command to import planet-latest.osm.pbf into the openstreetmap db, i want to know how much disk space do i need, and how long time it will spend to do the import task.

asked 02 Nov '16, 07:44

yuyy's gravatar image

yuyy
206212430
accept rate: 20%

edited 05 Nov '16, 14:03

SimonPoole's gravatar image

SimonPoole ♦
31.5k13246497

The required time for an import heavily depends in your hardware.

(02 Nov '16, 08:09) scai ♦

Oh,then what about the disk space?

(02 Nov '16, 08:16) yuyy

I guess you will need about 3 TB of disk space and and it will take about 2 weeks.

In order to get a more reliable estimate, run the import with a small(er) extract first. The australia-oceania.osm.pbf from download.geofabrik.de is a nice test case because it is roughly 1/100 of the planet, so import that and multiply the numbers by 100.

permanent link

answered 02 Nov '16, 09:45

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
61.5k75573959
accept rate: 23%

Ok, thanks to your reply.

(02 Nov '16, 14:05) yuyy

You don't want to import the planet with osmosis into an "apidb" database. That database schema is not useful for rendering, most analysis, routing, or anything except hosting OpenStreetMap data to be edited.

If you decide to do this, it will depend on your disks. If using 7200 RPM hard drives, expect it to take 1-3 months. I did this a few years ago when the planet was smaller and it took about a month.

permanent link

answered 02 Nov '16, 10:00

pnorman's gravatar image

pnorman
2.3k52040
accept rate: 19%

I just did a fresh import, but using osm2pgsql, size with slim tables: 558G (on a SSD Samsung 850 pro 1To). Took 38hours.

permanent link

answered 02 Nov '16, 09:45

Emmanuel%20Lacour's gravatar image

Emmanuel Lacour
412
accept rate: 0%

edited 02 Nov '16, 09:47

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×167
×11
×9

question asked: 02 Nov '16, 07:44

question was seen: 1,399 times

last updated: 05 Nov '16, 14:03

powered by OSQA