I am trying to import planet.osm on am Amazon EC2 machine. It is a a machine with 16 processors and 122GB RAM.
The parameters I use are: osm2pgsql -s -H aws.rds.host -d osm -U user -C 92000 --number-processes 16 --cache-strategy dense --hstore --hstore-add-index -K -G -W -p osm --extra-attributes -v planet.osm.pbf
However, after the processing phase I get the following error:
WARNING: Failed to fork helper process 1: Trying to recover.
WARNING: Failed to fork helper process 2: Trying to recover.
...
WARNING: Failed to fork helper process 15: Trying to recover.
There is another question here with a memory issue (https://gis.stackexchange.com/questions/78879/osm-problem-with-memory), but this is not the error I get. There is no mention of "Cannot allocate memory".
Does anyone know of these issues or have any experience importing on EC2 machines?