Giter Club home page Giter Club logo

Comments (13)

woodbri avatar woodbri commented on July 19, 2024

This sounds like osm2pgrouting was killed by the OOM (out of memory) kernel process because the system ran out of memory and swap space. Try increasing the amount of swap space you have allocated, like 2X or 4X you physical memory.

from osm2pgrouting.

gplv2 avatar gplv2 commented on July 19, 2024

Hey tx. The file to import is almost 9gig, that's only Benelux, been looking at the code , by the looks of it, it will try the load the file into memory in 1 go ... I can only image what a planet import would need... I'll try it though.

from osm2pgrouting.

gplv2 avatar gplv2 commented on July 19, 2024

I was low on swap (linode VM) so I created a 9 gig swap file to cover for the source size. hope it's enough. I've been thinking ... Would it work to just split up the OSM source files. I guess without the -clean parameter this - in theory- would have to work if I account for the XML structure, no?

I'm actually at the next stage it seems right now, tx for the suggestion, as it turned out. Only thing I didn't try was a 'dmesg' , that tells me the memory is exhausted at one point.

from osm2pgrouting.

dkastl avatar dkastl commented on July 19, 2024

This is a limitation of osm2pgrouting that has been there from the beginning. With additional swap space you can work around this limitation, though osm2pgrouting is definitely not doing well with large areas so far.

Instead of keeping everything in memory it would make sense to write to disk when running out of memory. Other tools that process OSM data do so as well. If someone would implement this, lot of users might appreciate.

from osm2pgrouting.

gplv2 avatar gplv2 commented on July 19, 2024

Tried with plenty of swapspace, unfortunately the machine became unresponsive, except for a ping reply. Too bad, Might be not such a bad idea to look at how Routino does it, really fast way of indexing and splitting the jobs up in parts. Wish I could help but I'm a bad C-coder since age of 12 :)

from osm2pgrouting.

vlasvlasvlas avatar vlasvlasvlas commented on July 19, 2024

here i do have the same problem..

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

Version 2.1, will also have the same problem, it will not be able to load in one call a continent, or a large coutry, but it will allow to make "incremental" additions to the database, so, for example
to load a continent, maybe do it by loading each country into the same database.

from osm2pgrouting.

vlasvlasvlas avatar vlasvlasvlas commented on July 19, 2024

loading by country works great.

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

Good to hear, it will remain as a feature request, because if the "incremental" works I need to figure out how to do "incremental" on one big file

from osm2pgrouting.

amcirillo avatar amcirillo commented on July 19, 2024

Is there any update on this issue? I was just trying to import North America on a machine that has 64GB of memory and ran out. My osm file is 168GB in size and it sure would be nice to not have to try to do this piecemeal.

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

No update, but loading Canada, United States of Mexico and and USA separately
or maybe by state/province

from osm2pgrouting.

cayetanobv avatar cayetanobv commented on July 19, 2024

@amcirillo You can read more about how to solve your problem here:

from osm2pgrouting.

cayetanobv avatar cayetanobv commented on July 19, 2024

MORE: @amcirillo You have 2 strategies:

  • Incremental additions, cutting your area in several files.
  • Increment your Swap space while your are importing if you don't have more RAM. It's slow but it works fine.

FUTURE: #245

from osm2pgrouting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.