I am trying to install nominatim using this guide. After one day of processing, I finaly get this message:
feature 895(k)
Killed
After a read in dmesg
I got:
[143978.925793] Out of memory: kill process 14456 (bash) score 204947 or a child
[143978.925796] Killed process 15081 (nominatim) vsz:4871228kB, anon-rss:2953272kB, file-rss:0kB
Using osm2pgsl you can use the -s (slim) option but how can I process using NPI ?
How can I upgrade without restarting the whole process?
I suspect you have an old version of nominatim that had a memory leak, this was fixed a few weeks back. Probably if you update the code from svn and rebuilt that will resolve the issue.
It sounds like the process scheduler or low memory killer is getting in your way. Your machine is likely under-powered for this job. You might try running this using
nice
with a higher priority than normal and making sure no extraneous things are running on the box, and don't do anything else that would try to use up memory while that is running. Hopefully when it gets through the initial process, the updates should be easier to deal with in the future.Edit: Per discussion in comments, it looks like the job is crashing when it runs out of memory and then eats through the swap space. I recommend two things. First, increase the swap space. It should be at least 2x the size of your RAM, but going 10x isn't going to hurt. Second, try not to swap at all because it's going to be slower than drying mud. Figure out if there are ways to limit the process to working on smaller chunks at a time so that RAM is not used up.