i am optmizing postgres database and need some help on it. I currently have a server with 2 Gb RAM.
I have setup the /proc/sys/kernel/shmall and /proc/sys/kernel/shmmax to 536870912 i.e 512 Mb. should i change it to 2 Gb and how will it affect the perfomance and will there be any downsides to it or is it better to keep it less.
I then changed the shared buffers in config file according to this expression specifies in postgres manual
max connections=128 250kB + 8.2 kB * shared_buffers + 14.2 kB * max_connections or infinity