I need some information to optimize the postgres database server (7.3.10).
I have 2 Gb RAM on the server.
I have set the /proc/sys/kernel/shmmax and /proc/sys/kernel/shmall to 536870912 (512 Mb)
should i set the shmmax and shmall to use 2 GB or it is better to keep it less.
also how does it affect the performance and stability of system
what would be the ideal shared buffer size and effective cache size to be set in conf file.
currently i am using this _expression_ to find out shared buffers parameter
max connections = 128
250kB + 8.2 kB *
shared_buffers
+ 14.2 kB * max_connections
or infinityshared buffers = 65277 (approx)
also regarding the effective cache size how much should i set that to ?
one of the article suggested this so which option would be more optimized
"there is 1.5GB RAM in your machine, shared buffers are set to 32MB and effective cache size is set to 800MB. So if a query needs 700MB of data set, PostgreSQL would estimate that all the data required should be available in memory and would opt for more aggressive plan in terms of optimization, involving heavier index usage and merge joins. But if effective cache is set to only 200MB, the query planner is liable to opt for the more I/O efficient sequential scan."
thanks,
kailash