Home > Archive > PostgreSQL Administration > July 2005 > postgres optimization









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author postgres optimization
Kailash Vyas

2005-07-29, 7:24 am

hi


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 infinity

shared 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

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com