Rikard Stemland Skjelsvik rskjels@pogostick.net wrote:
Well, it seems to me that i have NAV up and running on a clean debian installation, and for once, i tried to document the process. It could be things that I have missed, but i hope that this perhaps can make life easier for someone. This small document assumes that you are running Debian (etch) and intend to install NAV with the debian packages.
Thanks to all those wonderfull people behind NAV!
Thank you for your contribution!
As someone said, this is a useful candidate for wikification. Registering a wiki user takes only a minute, if not less.
I'd link to it from http://metanav.uninett.no/navinstallation if you would add it.
Install NAV
# apt-get install nav-deps --fix-missing # This is
probably not necessary!
It's not.
The nav-deps package is a dummy package without contents, it just has the same dependencies as the normal nav package. It's useful for installing NAV from source on Debian, and having all its dependencies installed easily and properly.
5.Edit /etc/postgresql/8.1/main/postgresql.conf according to the "Debian README for NAV"
line 93: shared_buffers = 1000 # min 16or max_connections*2, 8KB each line 93: shared_buffers = 1024 # min 16or max_connections*2, 8KB each
Actually, I don't know where these numbers come from. From the head of one of the previous NAV developers, I know, but the "optimal" number of shared buffer can vary substantially with the the size and access patterns of your database.
1024 buffers do not make a substantial difference to 1000 buffers, which is the default. I had a marked improvement in PostgreSQL performance by increasing this number from 1000 to 15000 on our development server.
(Also, on PostgreSQL 8.3, I think this number is/can be specificed as an amount of (kilo/mega/giga)bytes )
Increasing the number to 15000 buffers may also require you to increase the maximum amount of allowed shared memory in your Linux kernel. The variable kernel.shmmax can be altered using the sysctl command, but to make it permanent, you need to edit /etc/sysctl.conf, which defines initial boot-time values for many kernel settings.
Any comments are most welcome!
Comments given. I might want to suggest some minor changes, but it would be easier to just edit a wiki page when the time comes.