From: Bojan Belovic <bbelovic@usa.net>
To: pgsql-admin@postgresql.org
Subject: Re: Maximum Performance Follow-up Question
Date: 24 Jan 2002 15:27:55 EST
Message-ID: <20020124202755.22392.qmail@cpdvg100.netaddress.usa.net> (raw)
Related question regarding this config file and some other suggestions in this
thread. I have a similar configuration that I'm constantly tuning based on my
experience and comments I read in various places. So far, based on what I
"learned" these parameters would seem way to high for 1GB configuration - as I
read these settings, we give approx. 120MB of shared memory to pg and up to
32MB of RAM (for sort memory) to each of the backends - up to 128 here. Doing
the math gives us the max of 4GB if we had all the connections use all the
allowed sort memory (actually, we only need around 24 connections to take
advantage of all 32MB allowed and we will probably hit the physical memory
limit). I saw some suggestions that these numbers should be even higher.
Am I wrong in my thinking? Please correct me, since I may be tuning my server
completely wrong.
Thanks,
Bojan
> postgresql.conf:
>
> # Connection Parameters
> #
> tcpip_socket = true
> #ssl = false
>
> max_connections = 128 # 1-1024
>
> #port = 5432
> #hostname_lookup = false
> #show_source_port = false
>
> #unix_socket_directory = ''
> #unix_socket_group = ''
> #unix_socket_permissions = 0777
>
> #virtual_host = ''
>
> #krb_server_keyfile = ''
>
>
> #
> # Performance
> #
> sort_mem = 32168
> shared_buffers = 15200 # min 16
> fsync = true
>
____________________________________________________________________
Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bbelovic@usa.net
Subject: Re: Maximum Performance Follow-up Question
In-Reply-To: <20020124202755.22392.qmail@cpdvg100.netaddress.usa.net>
References: <20020124202755.22392.qmail@cpdvg100.netaddress.usa.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox