osm2pgsql error: Error allocating nodes

I try to import file americas.osm into PostGis. File I receive from cat two parts of archive from cloudmade (http://downloads.cloudmade.com/americas#downloads_breadcrumbs) by using “cat americas.osm.bz2.part.00
americas.osm.bz2.part.01|bzip2 -dc >americas.osm” (my OS - Ububntu 10.04). When I start import, always get error in the same place

./osm2pgsql -S default.style --slim -d gis_americas -C 8192 ~/osm/maps/americas.osm
osm2pgsql SVN version 0.80.0 (32bit id space)

Using projection SRS 900913 (Spherical Mercator)
Setting up table: planet_osm_point
NOTICE: table “planet_osm_point” does not exist, skipping
NOTICE: table “planet_osm_point_tmp” does not exist, skipping
Setting up table: planet_osm_line
NOTICE: table “planet_osm_line” does not exist, skipping
NOTICE: table “planet_osm_line_tmp” does not exist, skipping
Setting up table: planet_osm_polygon
NOTICE: table “planet_osm_polygon” does not exist, skipping
NOTICE: table “planet_osm_polygon_tmp” does not exist, skipping
Setting up table: planet_osm_roads
NOTICE: table “planet_osm_roads” does not exist, skipping
NOTICE: table “planet_osm_roads_tmp” does not exist, skipping
Mid: pgsql, scale=100, cache=8192MB, maxblocks=1048577*8192
Setting up table: planet_osm_nodes
NOTICE: table “planet_osm_nodes” does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index “planet_osm_nodes_pkey” for table “planet_osm_nodes”
Setting up table: planet_osm_ways
NOTICE: table “planet_osm_ways” does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index “planet_osm_ways_pkey” for table “planet_osm_ways”
Setting up table: planet_osm_rels
NOTICE: table “planet_osm_rels” does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index “planet_osm_rels_pkey” for table “planet_osm_rels”

Reading in file: /home/kaktus/osm/maps/americas.osm
Processing: Node(205710k) Way(0k) Relation(0)Error allocating nodes
Error occurred, cleaning up

Where is the problem?

You don’t need to worry about the “NOTICE: table “planet_osm_point” does not exist, skipping”. Seems like an unhelpful message to me, but apparently according to this it’s normal.

So… all you have to go on is “Error allocating nodes” . I don’t know what that means. Does it happen immediately, or after some time? Do you see anything if you go into your gis database and do SELECT * FROM planet_osm_point LIMIT 100; ?

Maybe running with --verbose option will give you something more helpful

Error occurs not in the same node, but approximately when Node is 200000k, like that

Reading in file: /home/kaktus/osm/maps/americas.osm
Processing: Node(206050k) Way(0k) Relation(0)Error allocating nodes
Error occurred, cleaning up

I have CPU-i7-2630QM, 2,0 Hz, RAM-16GB and set kernel.shmmmax=4000000000 (avialable shmmemory is 8460845056)