[OSM-dev] RAM requirement for osm2pgsql without slim?

Jon Burgess jburgess777 at googlemail.com
Wed Dec 9 23:11:12 GMT 2009

On Wed, 2009-12-09 at 12:48 +0100, andrzej zaborowski wrote:
> 2009/12/9 Peter Childs <pchilds at bcs.org>:
> > I think its more like 16GB.
> I don't think that's still enough, Germany alone reaches the max of
> about 4.5GB RAM usage in non-slim mode and filesizes indicate it's
> only about 1/10th of the planet.

It does not scale linearly because the data structures in osm2pgsql are
optimised for densely populated IDs (as seen whem importing the full
panet). When you import an extract the IDs of the nodes and ways are
relatively sparse which makes the RAM usage less efficient. 

I don't remember running a non-slim import of the full planet in the
past 12 months so I can't give any further clues about how much memory
it requires. The main tile server needs to use the slim mode in order to
support the diff updates.


More information about the dev mailing list