Planet import 2024 documentation update: -Xmx128g not enough
Hello,
I'm trying to set up my own instance of Graphhopper, and I desperately want to be able to import the whole planet file into the graph.
I'm using the 2024-08-26.pbf version, containing 77Gb of data.
The actual problem is that I'm on low-memory hardware, and that I'm also trying to have profile for car, car4wd, bike, mtb, racingbike, truck, bus, hike, foot, and I'm also preparing the CH graph for car, and also elevation profile.
I own (and trying to import) 96G of RAM, togheter with 98G of swap, on a Intel i5-11th.
I followed every suggestion to keep the ram low (datareader.dataaccess: MMAP, graph.elevation.dataaccess: MMAP, graph.dataaccess.default_type: MMAP), and run with -Xmx128g, but the import failed with RAM heap error before CH graph builing.
Now i'm running the same import with -Xmx140g and it imported the file (took 2 days) and it SEEMS to be able to arrive at the c.g.r.c.PrepareContractionHierarchies phase. Still, don't know how much time will it run again before finish.
This is the partial.log of the (still running) import and build. Anyone can try to estimate how much will it run?
So, if you like it, I could like to prepare a PR for adding some documentation and doing some small change (as soon as I have the feedback on RAM usage and time).
I think it could also be usefould to add some section like osm2pgsql/benchmark to prepare users in case of long import (or in case of suspected broken import)
Source: graphhopper/graphhopper