# Installing Nominatim Pre-Indexed Data

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


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?

• 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
• 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

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.