Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
What kind of RAM/other resources do you have on this system? –  Caleb Apr 14 '11 at 8:12
    
It is a Intel i5 with 4GB of ram and 2GB of swap. –  Natim Apr 14 '11 at 11:28
    
Swap should generally be at least twice the size of your RAM. Out of curiosity, is the system swapping? If so that will take a long time. Perhaps you can look through documentation to see if there is a way to limit the process to even less RAM usage / smaller operations so that it doesn't run into conflicts on your system (although it might take longer, it will take less time than swapping) –  Caleb Apr 14 '11 at 11:33
    
Yes the system is swapping and when running out of swap space crashing. –  Natim Apr 14 '11 at 11:36
1  
Having swap be less than your RAM size is a bad idea, because sometimes what will happen is it wants to flush out RAM to make way for a big job, then fetch it back later from swap. You need to at least fit your RAM into swap, and some spare space is nice. See my edited answer below. –  Caleb Apr 14 '11 at 11:40

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer

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.

share|improve this answer
    
The process is taking 2 days or more so I still have to use my computer at the same time. –  Natim Apr 14 '11 at 11:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.