Why not ask your question on the new OpenStreetMap Community Forum?

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 '21, 13:11

ptrtdrv's gravatar image

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 '21, 13:50

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 18 Jun '21, 13:11

question was seen: 774 times

last updated: 18 Jun '21, 13:50

powered by OSQA