Code Monkey home page Code Monkey logo

Comments (2)

joto avatar joto commented on June 3, 2024

Segmentation faults are almost always a sign of not having enough memory. Especially with this happening later in the process when you used a bigger machine. Figuring out how much memory something will use or is using is not straightforward. It might well be that everything looks fine and the next thing the program needs twice as much memory as before. So I`d recommend testing with a larger machine.

You can also try with --disable-parallel-indexing --number-processes=1. This will make osm2pgsql do less stuff at the same time possibly reducing its memory footprint somewhat. (But processing will take longer.)

That being said, of course there could be a different problem there. If you want to pursue this, create a debug build and look at the core dump created by the segmentation fault, specifically we need to backtrace do diagnose further.

from osm2pgsql.

goncalo-oliveira avatar goncalo-oliveira commented on June 3, 2024

Thanks for the feedback @joto.

I've tested with a different machine with 16 Gb of memory and I didn't get a segmentation fault. It's hard to know if this really was a memory issue or not, since the machines could have been entirely different, but as you say, segmentation faults are almost always a sign of not having enough memory.

It's weird though, that running on a machine (bare metal) that only had less than 4 Gb of memory available didn't raise any issues. Maybe because it used less memory from the start..

Anyway, closing this issue.

from osm2pgsql.

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.