I did a osm2pgsql import of Europe (by running a switch2osm docker image) and it took ~500GB disk space. I expected to take less, because I've read a post of a guy who claimed that in 2018 it took him ~200GB. Is that normal?

asked 18 Jun, 13:11

ptrtdrv's gravatar image

ptrtdrv
3612
accept rate: 0%


It is to be expected. You might be able to save a little space with the "flatnodes" option. Also if you do not need to update your database later on, use the "drop" option which will only marginally reduce the disk space used during import, but can delete some unused data afterwards.

Very recent versions of osm2pgsql have also massively reduced their RAM requirements for importing without the "slim" option. If you have 96 GB RAM and latest osm2pgsql then you can import Europe without "slim" which will drastically reduce disk usage. (You can try with 64 GB but it's a gamble.)

permanent link

answered 18 Jun, 13:50

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
77.8k886901202
accept rate: 24%

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:

×248

question asked: 18 Jun, 13:11

question was seen: 247 times

last updated: 18 Jun, 13:50

powered by OSQA