Osm2pgrounting large imports limitation still exists?

Hi,

I am trying to use osm2pgrouting to import a country level (Portugal) osm file. It seems to be consuming all memory (64gb) and crashes. Is this still a thing?

Oldest versions add a warning about this, but now newer ones. At least not in the wiki.

Also, seems that there is no --fork option in current versions

Thanks,

Alex

I’d recommend adding enough swap and retrying. That’s what I’ve done in the past to process bigger countries.

Ah, good idea.

Meanwhile, I have tried osm2po. I was able to create a “ways” table. But I think I will try your method too.

Thanks.

Ok. Adding extra 64Gb of swap did the trick.

I had also to use --chuck 80000 to overcome the following error:

Thanks for the help!!

Alex

2 Likes