<div><div>Hello,</div><div><br></div><div>I am experiencing the same problem with Debian, PostgreSQL 8.3.12, PostGIS 1.3.3 and 1.5.2, with a two months old osm2pgqsl version.</div><div>I have been testing it on two dedicated hardware configurations. The stronger one is a System x3650 M2 with 24GB Ram.</div>
<div><br></div><div>I am trying to load the Europe extract. The oom-killer kills the postgre process at 70% during the loaddata phase.</div><div>- With the weaker hardware config (with 4Gb Ram) it happened much earlier. </div>
<div>- Updating PostGIS didn't help. The process stopped nearly at the same percent.</div><div>- I have tried setting Debian's overcommit mode to strict (as was suggested<font class="Apple-style-span" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"> here: </font><a href="http://www.postgresql.org/docs/8.2/static/kernel-resources.html#AEN19382">http://www.postgresql.org/docs/8.2/static/kernel-resources.html#AEN19382</a>) but this only resulted that the postgresql stopped the process and not the oom-killer.</div>
<div><font class="Apple-style-span" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"></font></div><div>- I could process smaller extracts without any problems.</div><div><br></div><div>At first I thought that this was a pure pg issue. That is why I had asked for help at the<font class="Apple-style-span" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"> pg forum (</font><a href="http://www.pg-forum.de/konfiguration/4971-out-memory-linux.html">http://www.pg-forum.de/konfiguration/4971-out-memory-linux.html</a>), but then I have found this thread. I hope somebody can help me here to solve this issue.</div>
<div><font class="Apple-style-span" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"></font></div><div><br></div><div>Here are some further informations:</div><div>For the stronger hardware config with 24Gb Ram:</div>
<div>I've set Debian's SHMMAX to 8GB = 8*1024*1024*1024 = 8589934592, and SHMALL to SHMMAX/4096 = 2097152</div></div><div><br></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Fixedsys; "><font class="Apple-style-span" size="1">107,108c107<br>
< shared_buffers = 6GB<br>---<br>> shared_buffers = 32MB<br>115,116c114,115<br>< work_mem = 256MB<br>< maintenance_work_mem = 256MB<br>---<br>> #work_mem = 1MB <br>> #maintenance_work_mem = 16MB<br>121c120<br>
< max_fsm_pages = 1592000<br>---<br>> max_fsm_pages = 204800<br>153c152<br>< fsync = off<br>---<br>> #fsync = on<br>163c162<br>< wal_buffers = 24MB<br>---<br>> #wal_buffers = 64kB<br>172c171<br>< checkpoint_segments = 20<br>
---<br>> #checkpoint_segments = 3<br>174c173<br>< checkpoint_completion_target = 0.9<br>---<br>> #checkpoint_completion_target = 0.5<br>205c204<br>< random_page_cost = 1.5 <br>---<br>> #random_page_cost = 4.0<br>
209c208<br>< effective_cache_size = 20GB<br>---<br>> #effective_cache_size = 128MB<br>383c381<br>< autovacuum = off<br>---<br>> #autovacuum = on</font></span></div><div><font class="Apple-style-span" color="#333333" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"><br>
</font></div><div><font class="Apple-style-span" color="#333333" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif">Regards,</font></div><div><font class="Apple-style-span" color="#333333" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif">Gergõ</font></div>
<div><font class="Apple-style-span" color="#333333" face="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"><br></font></div>